ci: cancel superseded pull-request workflow runs #1170
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1170
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1170/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@tedin7 on GitHub · 2026-11-24 02:23 UTC · original
tedin7:x2w-ci-cancel-superseded→main· +7 −0 · 1 files · 1 commits · closed without mergingChange
Adds a top-level
concurrencyblock to.github/workflows/windows.yml. A new push to a pull request now cancels that pull request's older, superseded runs. Every other event gets a unique group (github.run_id) andcancel-in-progress: false, so it is never cancelled.This reduces the Windows runner queue: many contributors push follow-up commits to PRs, and each stale run currently occupies the Windows jobs until it finishes.
Main and
publish-coverageare untouched. A push tomain, aworkflow_dispatchrun and thepublish-coveragejob (which only runs for those events) are never cancelled. No job depends on a PR run throughneedsorifother than within the same run, and the!cancelled()steps simply skip when a run is cancelled. No permissions or secrets change.No related open or closed PR or issue found for
concurrencyor cancelling runs.This PR was AI-assisted.
Verification
origin/main4edb6dc3.python3 -B tests/docs_links_check.py: self-test passed, 15 Markdown files and 256 links checked.python3 -B tests/bidi_controls_check.py: self-test passed, 954 files, no bidirectional controls.concurrency;publish-coveragehasneedsonly on the two build jobs and runs only on push or dispatch to main.Evidence and follow-up
No new fixture. The group expression is the standard GitHub Actions pattern for cancelling only pull-request runs. No follow-up needed.
Checklist
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 02:57 UTC · original · edited 2026-11-24 02:59 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
7f3a496ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@tedin7 on GitHub · 2026-11-24 03:16 UTC · original
Superseded by #1185 which landed pull_request concurrency cancellation on main. Thanks!
Pull request closed