Skip to content

ci: isolate cache janitor to trusted merge queue - #1270

Merged
zackees merged 3 commits into
masterfrom
fix/1269-queue-janitor
Oct 17, 2026
Merged

zackees merged 3 commits into
masterfrom
fix/1269-queue-janitor

Conversation

@zackees

@zackees zackees commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Keep ci-pre.yml as 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 outside CI Gate ✅. Fork PRs cannot run the cache delete API, and queue work starts without waiting for maintenance.

RED → GREEN

  • RED 5f4eefe46: focused workflow regression failed because untrusted PRs could run the janitor and all jobs waited for it.
  • GREEN 9e3c03e4e, refined in 170469463 after 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 --check passed. The pinned ci-lint precheck on 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

@zackees
zackees marked this pull request as ready for review October 17, 2026 17:02
@zackees
zackees merged commit 8e729be into master Oct 17, 2026
29 checks passed
@zackees
zackees deleted the fix/1269-queue-janitor branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant