Title: CI: push-to-main verification runs share one cancellable group — 11 of the last 18 id-check main runs were cancelled by the next merge · Issue #392 · developing-today/code · GitHub
Open Graph Title: CI: push-to-main verification runs share one cancellable group — 11 of the last 18 id-check main runs were cancelled by the next merge · Issue #392 · developing-today/code
X Title: CI: push-to-main verification runs share one cancellable group — 11 of the last 18 id-check main runs were cancelled by the next merge · Issue #392 · developing-today/code
Description: Problem Workflows that verify merged code on main put their push runs in the same concurrency group as every other run on that ref, with cancel-in-progress: true. A second merge to main therefore cancels the first merge's post-merge veri...
Open Graph Description: Problem Workflows that verify merged code on main put their push runs in the same concurrency group as every other run on that ref, with cancel-in-progress: true. A second merge to main therefore c...
X Description: Problem Workflows that verify merged code on main put their push runs in the same concurrency group as every other run on that ref, with cancel-in-progress: true. A second merge to main therefore c...
Opengraph URL: https://github.com/developing-today/code/issues/392
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CI: push-to-main verification runs share one cancellable group — 11 of the last 18 id-check main runs were cancelled by the next merge","articleBody":"## Problem\n\nWorkflows that verify merged code on `main` put their push runs in the same concurrency group as every other run on that ref, with `cancel-in-progress: true`. A second merge to main therefore cancels the first merge's post-merge verification run while it is still running. The cancelled merge's exact tree never gets a completed verification run, and when the surviving run fails there is no per-merge attribution.\n\nThis is not theoretical for the longest-running gate:\n\n- `.github/workflows/id-check.yml:41-43` — `group: ${{ github.workflow }}-${{ github.ref }}`, `cancel-in-progress: true`; the job's `timeout-minutes` is 60 (`id-check.yml:49`), and the gate historically takes far longer than the interval between merges.\n- Run history (last 60 `id` workflow runs, counted this run): 18 were `push` events on main — **11 cancelled, 5 failed, only 2 succeeded**. Sample: push run for `fc34ab91` (2026-10-19T23:48Z) cancelled; push run for `1b2ed38d` (2026-10-18T18:12Z) cancelled.\n\n## Affected workflows (same template: push-to-main trigger + ref-keyed group + `cancel-in-progress: true`)\n\nIn this repo:\n\n- `.github/workflows/id-check.yml:41-43` (proven harm, above)\n- `.github/workflows/mcpx.yml:41-43`\n- `.github/workflows/nix-ci.yml:11-13`\n- `.github/workflows/mod-tidy.yml:14-16` — sharper here: its push job **commits and pushes tidy changes back to main** (`mod-tidy.yml`, 'Commit tidy changes on main' step), so a cancellation can also drop that commit step mid-run\n- `.github/workflows/go-modules-build.yml:50-52`, `identity-build.yml:26-28`, `map-build.yml:26-28`, `mcpx-nixbuild.yml:36-38`, `research-workflow.yml:43-45` (no cancellations observed yet in their shorter runs — same latent flaw)\n\nIn dezren39/nix (one issue for the set, per the cross-repo rule):\n\n- `.github/workflows/mcpx-nixbuild.yml:36-38` — identical template and push-to-main trigger; its runs are short (~6 min) and the last 8 push runs all succeeded, so the flaw is latent there, but the next slow build or rapid merge pair exposes it the same way.\n\ndeveloping-today/opencode and developing-today/openchamber are **not** affected: their main-verification workflows already key push runs by `github.run_id` (opencode `test.yml`/`check.yml`, openchamber pr-checks via its #95 fix).\n\n## In-repo precedent for the fix\n\n`.github/workflows/mcpx-conformance.yml:35-37` already opts out for main, with the reason in a comment: `cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}`. The openchamber fix for the same flaw (its #95) instead keys the group by `github.event.pull_request.number || github.run_id`, so PR runs still supersede each other while every main run keeps its own group.\n\n## Acceptance criteria\n\n- Push-to-main runs of the workflows above are no longer cancelled by a later merge (conditional `cancel-in-progress`, a run_id-keyed group for push events, or `queue: max` — one consistent pattern, matching the mcpx-conformance precedent unless there is a reason to differ).\n- Pull-request runs keep superseding stale runs on the same PR (no regression to PR feedback time).\n- The same one-line pattern is applied to dezren39/nix's `mcpx-nixbuild.yml` in the same pass (downstream PR references this issue by URL).\n- After the fix, a pair of rapid merges to main both show completed (not cancelled) id-check push runs.\n\n## Why it matters\n\nThe id gate is the repo's heaviest verification (full `nix flake check` for pkgs/id). Right now its post-merge form is cancelled more often than it completes, so 'main is green' usually means 'some later tree was green' — and a broken merge can hide inside that gap indefinitely.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-20T06:15:05Z","url":"https://github.com/developing-today/code/issues/392"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:96d31dd6-8300-9817-f9fe-d580487e20c0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9330:34F10E:2A8254:395DF9:6B061668 |
| html-safe-nonce | 6339d3229cd57ee7ba55a21ab0f9e1fbd227382e47e8ad6b6d6a306900329870 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzMwOjM0RjEwRToyQTgyNTQ6Mzk1REY5OjZCMDYxNjY4IiwidmlzaXRvcl9pZCI6IjI2NTM0NDQwMTI4Nzg3MzA4NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 41d92c3e4c82d228ab8677b68d25ddc33614f8bfedb7c5a14a751d6439238d17 |
| hovercard-subject-tag | issue:5936909563 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/392/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a00d4ba2dce0070916df5ca78997bdaef7c315c8a8c3fb396cfc31913b679fab/developing-today/code/issues/392 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a00d4ba2dce0070916df5ca78997bdaef7c315c8a8c3fb396cfc31913b679fab/developing-today/code/issues/392 |
| og:image:alt | Problem Workflows that verify merged code on main put their push runs in the same concurrency group as every other run on that ref, with cancel-in-progress: true. A second merge to main therefore c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width