diff --git a/.github/workflows/go-modules-build.yml b/.github/workflows/go-modules-build.yml index 801f251167..11a49023cc 100644 --- a/.github/workflows/go-modules-build.yml +++ b/.github/workflows/go-modules-build.yml @@ -47,8 +47,16 @@ on: permissions: contents: read +# 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 }} cancel-in-progress: true jobs: diff --git a/.github/workflows/id-check.yml b/.github/workflows/id-check.yml index 82455aaed4..ca36d574a0 100644 --- a/.github/workflows/id-check.yml +++ b/.github/workflows/id-check.yml @@ -37,9 +37,16 @@ on: permissions: contents: read -# Cancel in-progress runs for the same branch/PR +# 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 }} cancel-in-progress: true jobs: diff --git a/.github/workflows/identity-build.yml b/.github/workflows/identity-build.yml index 5337864a27..350473ffe1 100644 --- a/.github/workflows/identity-build.yml +++ b/.github/workflows/identity-build.yml @@ -23,8 +23,16 @@ on: permissions: contents: read +# 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 }} cancel-in-progress: true jobs: diff --git a/.github/workflows/map-build.yml b/.github/workflows/map-build.yml index 290a2a62c1..cbe5631bb9 100644 --- a/.github/workflows/map-build.yml +++ b/.github/workflows/map-build.yml @@ -23,8 +23,16 @@ on: permissions: contents: read +# 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 }} cancel-in-progress: true jobs: diff --git a/.github/workflows/mcpx-nixbuild.yml b/.github/workflows/mcpx-nixbuild.yml index 20f9c0531f..1f311ba847 100644 --- a/.github/workflows/mcpx-nixbuild.yml +++ b/.github/workflows/mcpx-nixbuild.yml @@ -33,8 +33,16 @@ on: permissions: contents: read +# 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 }} cancel-in-progress: true jobs: diff --git a/.github/workflows/mcpx.yml b/.github/workflows/mcpx.yml index e5eefa962b..13eb372ae5 100644 --- a/.github/workflows/mcpx.yml +++ b/.github/workflows/mcpx.yml @@ -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 }} cancel-in-progress: true permissions: diff --git a/.github/workflows/mod-tidy.yml b/.github/workflows/mod-tidy.yml index 04991ca420..2f0f02c4ec 100644 --- a/.github/workflows/mod-tidy.yml +++ b/.github/workflows/mod-tidy.yml @@ -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 }} cancel-in-progress: true permissions: diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml index ff2793e799..b9abe85d21 100644 --- a/.github/workflows/nix-ci.yml +++ b/.github/workflows/nix-ci.yml @@ -8,8 +8,16 @@ on: permissions: contents: read +# 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 }} cancel-in-progress: true jobs: diff --git a/.github/workflows/research-workflow.yml b/.github/workflows/research-workflow.yml index a1bcd35ee9..35b80bc22d 100644 --- a/.github/workflows/research-workflow.yml +++ b/.github/workflows/research-workflow.yml @@ -40,8 +40,16 @@ on: permissions: contents: read +# 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: research-workflow-${{ github.ref }} + group: research-workflow-${{ github.event_name == 'push' && github.run_id || github.ref }} cancel-in-progress: true jobs: