clean-repo: Remove.

Unless this was working around a specific bug that has somehow
persisted for eight years, this was just pointlessly defeating
Python’s bytecode cache every time you started the dev server.

This reverts commits deffda072f,
59228f7458, and
ae45217671.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-11-04 18:57:06 -07:00 committed by Tim Abbott
parent a3445dac95
commit b54007d36c
3 changed files with 0 additions and 17 deletions

View File

@ -1,13 +0,0 @@
#!/usr/bin/env bash
set -e
# Remove .pyc files to prevent loading stale code.
#
# You can run it automatically on checkout:
#
# echo ./tools/clean-repo > .git/hooks/post-checkout
# chmod +x .git/hooks/post-checkout
cd "$(dirname "$0")/.."
find . -name "*.pyc" -exec rm -f {} \;
find . -name "__pycache__" -prune -exec rm -rf {} \;

View File

@ -99,9 +99,6 @@ webpack_port = base_port + 3
os.chdir(os.path.join(os.path.dirname(__file__), ".."))
# Clean up stale .pyc files etc.
subprocess.check_call("./tools/clean-repo")
if options.clear_memcached:
subprocess.check_call("./scripts/setup/flush-memcached")

View File

@ -46,7 +46,6 @@ echo
# prep
run ./tools/check-provision $FORCEARG
run ./tools/clean-repo
# ci/backend
run ./tools/lint --groups=backend $FORCEARG