ci: cancel superseded pull-request workflow runs #1163

Closed
tedin7 wants to merge 1 commit from upstream-pr/1170 into main
tedin7 commented 2026-11-24 02:23:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:23:26Z.


Change

Adds a top-level concurrency block 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) and cancel-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-coverage are untouched. A push to main, a workflow_dispatch run and the publish-coverage job (which only runs for those events) are never cancelled. No job depends on a PR run through needs or if other 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 concurrency or cancelling runs.

This PR was AI-assisted.

Verification

  • Commit: this branch on top of origin/main 4edb6dc3.
  • 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.
  • Read the workflow by hand: no existing concurrency; publish-coverage has needs only on the two build jobs and runs only on push or dispatch to main.
  • Not run: the cancel effect itself, which needs a second push to a PR. It is visible on any PR that gets a follow-up commit while a run is in progress.

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

  • One behavior, no unrelated changes
  • No game files, dumps, distribution links or secrets
  • MIT-licensed original contribution
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6573183456 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1170). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T02:23:26Z. --- ## Change Adds a top-level `concurrency` block 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`) and `cancel-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-coverage` are untouched. A push to `main`, a `workflow_dispatch` run and the `publish-coverage` job (which only runs for those events) are never cancelled. No job depends on a PR run through `needs` or `if` other 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 `concurrency` or cancelling runs. This PR was AI-assisted. ## Verification - Commit: this branch on top of `origin/main` 4edb6dc3. - `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. - Read the workflow by hand: no existing `concurrency`; `publish-coverage` has `needs` only on the two build jobs and runs only on push or dispatch to main. - Not run: the cancel effect itself, which needs a second push to a PR. It is visible on any PR that gets a follow-up commit while a run is in progress. ## 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 - [x] One behavior, no unrelated changes - [x] No game files, dumps, distribution links or secrets - [x] MIT-licensed original contribution
upstream-sync closed this pull request 2026-11-24 06:46:40 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:50:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T02:57:32Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T02:59:33.231097Z 7f3a496 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120638499 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1170#issuecomment-7120638499). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T02:57:32Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"7f3a496a152a78a47c771f89cd1222efe5e18b94","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T02:59:33.231097Z">2026-11-24T02:59:33.231097Z</relative-time> | `7f3a496` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
tedin7 commented 2026-11-24 06:50:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:16:55Z.


Superseded by #1185 which landed pull_request concurrency cancellation on main. Thanks!

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120942113 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1170#issuecomment-7120942113). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T03:16:55Z. --- Superseded by #1185 which landed pull_request concurrency cancellation on main. Thanks!

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1163
No description provided.