Skip to content

ci: Cancel superseded merge-queue runs - #988

Merged
zackees merged 2 commits into
masterfrom
ci/986-cancel-superseded
Oct 16, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/986-cancel-superseded

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes #986. Part of #930.

A queue ref carries the base commit (gh-readonly-queue/master/pr-<N>-<sha>), so pr-pull.yaml's concurrency group never paired a PR's rebuilt queue run with its old one. After master moved, 2–3 runs per PR waited on the scarce ubuntu-26.04 runners; 21 were cancelled by hand on 2026-10-16.

  • cancel-superseded job, merge_group only, job-level actions: write, 5 min timeout. It runs ci/cancel_superseded.py, which cancels older in-flight queue runs for the same PR (the newest is the live one). CI Gate needs it (skipped on PRs counts as a pass).

RED be5cebb: ci/test_cancel_superseded.py, 3 failures and 5 errors.
GREEN f32178f: 10/10; test_merge_queue and the ci/ suite are green.

Live check: with a real queue run of #970 as the current run, --dry-run named exactly its two older queue runs (04:01 and 04:04 against the live 04:06), and a real run cancelled both (completed cancelled).

Fails: ci/cancel_superseded.py and the cancel-superseded job don't exist.
A queue ref carries the base commit, so the concurrency group never
paired a PR's rebuilt queue run with its old one; after master moved,
2-3 runs per PR waited on the scarce ubuntu-26.04 runners (21 cancelled
by hand on 2026-10-16). merge_group runs now start with a
cancel-superseded job (job-level actions: write) that cancels the older
in-flight queue runs for the same PR (ci/cancel_superseded.py).
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.

ci: Superseded merge-queue runs are not cancelled when master moves

1 participant