Skip to content

ci: GEN-022 cancel-superseded and end-of-queue cache janitor - #776

Merged
zackees merged 3 commits into
mainfrom
gen022-mq
Oct 26, 2026
Merged

zackees merged 3 commits into
mainfrom
gen022-mq

Conversation

@zackees

@zackees zackees commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Adds the GEN-022 merge-queue wiring (forge-ci/ci.yml#405/#409), following forge-ci/soldr#3923 and forge-ci/zccache#1998.

  • cancel-superseded (merge_group only, no needs:) plus ci/cancel_superseded.py: it cancels older in-flight queue runs for the same PR.
  • queue-cache-janitor: the final job on merge_group. It needs every other job, runs on always(), and holds the non-cancelling cache-janitor group. Main pushes still sweep through ci-pre's cache-maint.
  • ci.toml grants actions: write to both jobs. local-gate.toml exempts cancel-superseded from verify.
  • tests/test_ci_tiers.py: the janitor is the one allowed always() job. It is not a required check (ci: a superseded PR run leaves FAILURE required checks that block merging (if: always() under a cancelled tier select) #373).

ci-lint precheck --local: the GEN-022 finding is gone. One new CT-004 finding: the janitor pins ci.yml 41fcbca, the same pin as cache-maint, which already has the same finding. It is newer than the linter pin and knows setup-soldr's ancestor-build family.

Local gate passed (rust + tests).

Adds the forge-ci/ci.yml#409 cancel-superseded job (ci/cancel_superseded.py,
ported from forge-ci/soldr#3923) and a final queue-cache-janitor job on
merge_group that needs every other job, runs on always() and holds the
non-cancelling cache-janitor group. Grants actions: write in ci.toml and
exempts cancel-superseded from verify in local-gate.toml.
… candidate

Local-Gate: v1 tree=fafda1865754f8729f0e8288e40469a6fe5d513a secs=268 lanes=rust:run,tests:run
Ci-Attestation: {"at":1793015296,"gate":"rust/all/fmt","host":"linux-x86_64","key":"64aa1bff3be7ef738eeedc14476acc40b5fafa13c24ff6e72d4981482bc3a0f4","lane":"rust","parents":["778dce9fa6c2dc47590ee69bc889232ecfdd3ea6"],"secs":268,"stamp":"5e547def8cb7baa6de9d2feb048dd2e6","tree":"fafda1865754f8729f0e8288e40469a6fe5d513a","v":1,"via":"run"}
Ci-Attestation: {"at":1793015296,"gate":"rust/all/boundary","host":"linux-x86_64","key":"64aa1bff3be7ef738eeedc14476acc40b5fafa13c24ff6e72d4981482bc3a0f4","lane":"rust","parents":["778dce9fa6c2dc47590ee69bc889232ecfdd3ea6"],"secs":268,"stamp":"4fb8f3e26087959b802bc1fca3001e6f","tree":"fafda1865754f8729f0e8288e40469a6fe5d513a","v":1,"via":"run"}
Ci-Attestation: {"at":1793015296,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"64aa1bff3be7ef738eeedc14476acc40b5fafa13c24ff6e72d4981482bc3a0f4","lane":"rust","parents":["778dce9fa6c2dc47590ee69bc889232ecfdd3ea6"],"secs":268,"stamp":"ed45f9e3e22f048bc879753e8734693a","tree":"fafda1865754f8729f0e8288e40469a6fe5d513a","v":1,"via":"run"}
Ci-Attestation: {"at":1793015296,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"64aa1bff3be7ef738eeedc14476acc40b5fafa13c24ff6e72d4981482bc3a0f4","lane":"rust","parents":["778dce9fa6c2dc47590ee69bc889232ecfdd3ea6"],"secs":268,"stamp":"730f72774a58f4489359dcd3eddddfd7","tree":"fafda1865754f8729f0e8288e40469a6fe5d513a","v":1,"via":"run"}
Ci-Attestation: {"at":1793015296,"gate":"python/all/static","host":"linux-x86_64","key":"2649cd6a0809fabab38d0482e148ff428869e4b3276ded368edf0852ee1aa76b","lane":"tests","parents":["778dce9fa6c2dc47590ee69bc889232ecfdd3ea6"],"secs":193,"stamp":"2bab686e2cb236ffe6c0ce986275c594","tree":"fafda1865754f8729f0e8288e40469a6fe5d513a","v":1,"via":"run"}
Ci-Attestation: {"at":1793015296,"gate":"general/all/ci-policy","host":"linux-x86_64","key":"2649cd6a0809fabab38d0482e148ff428869e4b3276ded368edf0852ee1aa76b","lane":"tests","parents":["778dce9fa6c2dc47590ee69bc889232ecfdd3ea6"],"secs":193,"stamp":"d9a46d6b4e0cdfbc2e0852ce966f3028","tree":"fafda1865754f8729f0e8288e40469a6fe5d513a","v":1,"via":"run"}
Ci-Attestation: {"at":1793015296,"gate":"python/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"2649cd6a0809fabab38d0482e148ff428869e4b3276ded368edf0852ee1aa76b","lane":"tests","parents":["778dce9fa6c2dc47590ee69bc889232ecfdd3ea6"],"secs":193,"stamp":"41816a14955c01ea0518c41355e9970b","tree":"fafda1865754f8729f0e8288e40469a6fe5d513a","v":1,"via":"run"}
@zackees
zackees added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 1d895af Oct 26, 2026
19 checks passed
@zackees
zackees deleted the gen022-mq branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant