Repository navigation
ci: sweep caches at the end of the merge queue under the 10 GB budget (#1854) - #1867
Merged
Merged
Conversation
…budget (#1854) ci.yml's final cache-janitor job needs every other job, runs on always() for merge_group only, and holds the non-cancelling cache-janitor group. At the forge-ci/ci.yml#405 pin it evicts least recently used caches down to [cache].budget, so GitHub's eviction never picks. ci-pre.yml's sweep now runs on master pushes only. CI Gate never waits on the sweep.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1854. Refs #1269, #1723, forge-ci/ci.yml#405.
Change
ci.ymlnow ends with acache-janitorjob:needs: [ci-pre, ci-gate](so every other job, transitively),if: always() && github.event_name == 'merge_group', and the repo-widecache-janitorgroup withcancel-in-progress: false. The merge queue serializes master's cache writes, so this sweep has the cache to itself and sees what the run just saved.1a970f0toa1917ce(feat(cache): merge queue policy; end-of-queue janitor enforces [cache].budget by LRU (#405) forge-ci/ci.yml#407). At that version the janitor runs a final repo-wide pass that evicts the least recently accessed caches until the total fits[cache].budget(10 GB). It keeps each family's newest entry and anything younger than 10 minutes, so GitHub's own LRU eviction never picks.ci-pre.yml's janitor now sweeps master pushes only, not the start of queue runs.uvxat the pin, not barepython3, perci/test_uv_run.py.docs/ci-tooling.mddescribe the new placement.This is what makes #1723's over-budget family declarations safe: live usage is held under 10 GB by our own sweep, not by GitHub.
RED → GREEN
c8368a363:ci/test_ci_pre.py+ci/test_ci_toml.pyfail 4 (no final janitor, ci-pre still sweeps the queue, old pin).ci/test_merge_queue.pypass; full./lintpasses.ci-lint precheck --localat the new pin: GEN-022 reports nothing. The only difference from master is one more CACHE-013 for the janitor'ssetup-uvstep, the same pattern as three existingci.ymlsetup-uv steps that also have no exception.The first real check is the first merge-group run after this lands; the janitor's before/after table will be in its log.