Repository navigation
ci: isolate cache janitor to trusted merge queue - #1270
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
October 17, 2026 17:02
This was referenced Oct 17, 2026
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.
Summary
Keep
ci-pre.ymlas the pre-work entry point on every PR and merge-group run, and call it on master pushes. Its cache-janitor job runs only for trusted merge-group or master-push events. Remove janitor prerequisites from queue cancellation and build jobs, while keeping housekeeping outsideCI Gate ✅. Fork PRs cannot run the cache delete API, and queue work starts without waiting for maintenance.RED → GREEN
5f4eefe46: focused workflow regression failed because untrusted PRs could run the janitor and all jobs waited for it.9e3c03e4e, refined in170469463after review:uv run python -m unittest ci/test_ci_pre.py ci/test_ci_toml.py ci/test_merge_queue.py— 16 passed. Tests assert that pre-work is called on PRs and master pushes, that only trusted events run janitor, and that no build or queue-cancellation job depends on it.git diff --checkpassed. The pinnedci-lint precheckon the prior commit had only the existing repository-wide violation baseline; no violation concerned the changed janitor graph.CI configuration only; Rust port tiers do not apply. No new workflow file. Follow-up cache policy and scheduled cleanup work is tracked in #1269.
Refs #1269