You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: Cancel stale merge-queue runs when the queue rebuilds a PR's group #974
When the merge queue rebuilds an entry (another entry fails or the base moves), GitHub starts a new merge_group run on a new gh-readonly-queue/master/pr-<N>-<sha> ref, but the old run for the same PR keeps going. pr-pull.yaml has concurrency: group: '${{ github.workflow }} @ ${{ ...github.ref }}', and the ref is unique per attempt, so nothing cancels the superseded run.
Seen on 2026-10-16 around 02:30 UTC: four merge_group runs were live for two queue entries (#934 x3, #936 x1) while about 10 PR runs sat queued for runners. I cancelled 38839685361 and 38839594604 by hand.
Options:
Key merge_group concurrency on the PR number. Expressions can't split the ref, so a small first job would need to compute the group, or a separate merge_group workflow would compute it and call build-project.yaml.
Add a cheap first job that checks the queue (GraphQL mergeQueue.entries) and cancels the run if its head_sha is no longer an entry's head.
Activity
zackees commentedon Oct 16, 2026
Fixed by #988 (Cancel Superseded Queue Runs 🧹 in pr-pull.yaml). #980 was a duplicate and is closed.