Repository navigation
fix(ci): push-to-main runs get their own concurrency group (run_id) in 9 workflows #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,8 +38,16 @@ on: | |
| - "pkgs/mcpx/**" | ||
| - ".opencode/plugin/**" | ||
|
|
||
| # Push-to-main runs each get their own group (keyed by run_id), so a | ||
| # later merge can never cancel — or displace a pending — verification | ||
| # run for an earlier merge: every merged tree gets its own completed | ||
| # run. Pull-request runs keep sharing a per-ref group, so a new push | ||
| # to a PR still supersedes its stale run (#392). A conditional | ||
| # cancel-in-progress (the mcpx-conformance pattern) would still let a | ||
| # third rapid merge displace the second merge's pending run, so push | ||
| # runs are keyed by run_id here, matching dezren39/nix PR #495. | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.run_id || github.ref }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When rapid Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a second Useful? React with 👍 / 👎. |
||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,8 +11,16 @@ on: | |
| - "pkgs/graph/**" | ||
| - ".github/workflows/mod-tidy.yml" | ||
|
|
||
| # Push-to-main runs each get their own group (keyed by run_id), so a | ||
| # later merge can never cancel — or displace a pending — verification | ||
| # run for an earlier merge: every merged tree gets its own completed | ||
| # run. Pull-request runs keep sharing a per-ref group, so a new push | ||
| # to a PR still supersedes its stale run (#392). A conditional | ||
| # cancel-in-progress (the mcpx-conformance pattern) would still let a | ||
| # third rapid merge displace the second merge's pending run, so push | ||
| # runs are keyed by run_id here, matching dezren39/nix PR #495. | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.run_id || github.ref }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When two Useful? React with 👍 / 👎. |
||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: developing-today/code
Length of output: 2172
🏁 Script executed:
Repository: developing-today/code
Length of output: 23919
🏁 Script executed:
Repository: developing-today/code
Length of output: 9023
Protect
MCPX_GO_TESTSupdates from concurrent push runs.mcpx.ymlreadsMCPX_GO_TESTSbefore runninggotest-report.py, then writes the generated record. With agithub.run_idgroup, two main runs can perform this read-modify-write concurrently. An earlier merge that finishes later can replace the record from a newer merge. The stored run and skipped-test set can then refer to the older tree.If last-writer-wins is not the intended contract, use a serialization or atomic update mechanism for this record. A fixed group with
cancel-in-progress: falseprevents overlapping writes but can replace a pending run, so use it only if losing pending push runs is acceptable.🤖 Prompt for AI Agents