zulip/tools/lib
Steve Howell 51f74a7fd8 provision: Manage digests more rigorously.
We now have two functions related to digests
for processes:

    is_digest_obsolete
    write_digest_file

In most cases we now **wait** to write the
digest file until after we've successfully
run a process with its new inputs.

In one place, for database migrations, we
continue to write the digest optimistically.
We'll want to fix this, but it requires a
little more code cleanup.

Here is the typical sequence of events:

    NEVER RUN -
        is_digest_obsolete returns True
        quickly (we don't compute a hash)

        write_digest_file does a write (duh)

    AFTER NO CHANGES -
        is_digest_obsolete returns False
        after reading one file for old
        hash and multiple files to compute
        hash

        most callers skip write_digest_file

        (no files are changed)

    AFTER SOME CHANGES -
        is_digest_obsolete returns False
        after doing full checks

        most callers call write_digest_file
        *after* running a process
2020-04-20 15:06:47 -07:00
..
__init__.py
capitalization.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
git-tools.bash tools: Give `require_clean_work_tree` our nice UI touches. 2020-04-06 17:52:10 -07:00
gitlint-rules.py gitlint-rules: Fix bogus type annotations. 2020-04-19 13:36:58 -07:00
graph.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
html_branches.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
html_grep.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
pretty_print.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
provision.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
provision_inner.py provision: Manage digests more rigorously. 2020-04-20 15:06:47 -07:00
sanity_check.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
template_parser.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
test_script.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
test_server.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00