mirror of https://github.com/zulip/zulip.git
refactor: Convert `clean-unused-caches` to`clean_unused_caches.py`.
We convert the `clean-unused-caches` script to a python file so we can run it in provision by importing it instead of running the script, hence saving some time.
This commit is contained in:
parent
405073d590
commit
4f54e15993
|
@ -115,7 +115,7 @@ jobs:
|
|||
|
||||
# Cleaning caches is mostly unnecessary in GitHub Actions, because
|
||||
# most builds don't get to write to the cache.
|
||||
# scripts/lib/clean-unused-caches --verbose --threshold 0
|
||||
# scripts/lib/clean_unused_caches.py --verbose --threshold 0
|
||||
|
||||
- name: Run tools test
|
||||
run: |
|
||||
|
|
|
@ -85,9 +85,9 @@ def main() -> None:
|
|||
print("Deployments cleaned successfully...")
|
||||
print("Cleaning orphaned/unused caches...")
|
||||
|
||||
# Call 'clean-unused-caches' script to clean any orphaned/unused caches.
|
||||
# Call 'clean_unused_caches.py' script to clean any orphaned/unused caches.
|
||||
subprocess.check_call(
|
||||
[os.path.join(ZULIP_PATH, "scripts/lib/clean-unused-caches"), *sys.argv[1:]]
|
||||
[os.path.join(ZULIP_PATH, "scripts/lib/clean_unused_caches.py"), *sys.argv[1:]]
|
||||
)
|
||||
print("Done!")
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@
|
|||
"failed": null,
|
||||
"infrastructure_fail": null,
|
||||
"name": "install dependencies",
|
||||
"bash_command": "#!/bin/bash -eo pipefail\nsudo apt-get update\n# Install moreutils so we can use `ts` and `mispipe` in the following.\nsudo apt-get install -y moreutils\n\n# CircleCI sets the following in Git config at clone time:\n# url.ssh://git@github.com.insteadOf https://github.com\n# This breaks the Git clones in the NVM `install.sh` we run\n# in `install-node`.\n# TODO: figure out why that breaks, and whether we want it.\n# (Is it an optimization?)\nrm -f /home/circleci/.gitconfig\n\n# This is the main setup job for the test suite\nmispipe \"tools/ci/setup-backend\" ts\n\n# Cleaning caches is mostly unnecessary in Circle, because\n# most builds don't get to write to the cache.\n# mispipe \"scripts/lib/clean-unused-caches --verbose --threshold 0\" ts\n",
|
||||
"bash_command": "#!/bin/bash -eo pipefail\nsudo apt-get update\n# Install moreutils so we can use `ts` and `mispipe` in the following.\nsudo apt-get install -y moreutils\n\n# CircleCI sets the following in Git config at clone time:\n# url.ssh://git@github.com.insteadOf https://github.com\n# This breaks the Git clones in the NVM `install.sh` we run\n# in `install-node`.\n# TODO: figure out why that breaks, and whether we want it.\n# (Is it an optimization?)\nrm -f /home/circleci/.gitconfig\n\n# This is the main setup job for the test suite\nmispipe \"tools/ci/setup-backend\" ts\n\n# Cleaning caches is mostly unnecessary in Circle, because\n# most builds don't get to write to the cache.\n# mispipe \"scripts/lib/clean_unused_caches.py --verbose --threshold 0\" ts\n",
|
||||
"status": "success",
|
||||
"timedout": null,
|
||||
"continue": null,
|
||||
|
|
Loading…
Reference in New Issue