Repository navigation
ci: let every main push finish its checks - #1920
Conversation
The build and test jobs of a main push shared one concurrency group with cancel-in-progress, so the next merge cancelled them. Of 20 full main runs since 2026-11-19, 8 ended that way and reported nothing about their commit. Each push now keeps its own jobs; on 2026-11-19 that would have cost about 55 more macOS minutes out of 1788. The README shows the latest finished main result. Refs #1919
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Review at 3510429d (origin/main 574861f3).
The PR removes the per-job concurrency groups from .github/workflows/ci.yml, so a push to main cannot cancel an earlier push's build and test jobs; the workflow-level group already keys main runs by github.run_id. It also adds a main CI badge and updates the release workflow description.
Verdict: APPROVE.
The concurrency expression at .github/workflows/ci.yml:9-11 is correct for main pushes: github.event.pull_request.number is absent, github.ref == 'refs/heads/main' makes the second operand github.run_id, and cancel-in-progress cannot match another main run. Pull request runs still use the PR number and cancel superseded runs. The removed job-level groups were the only place a main push could cancel another main push's jobs; changes and ci-ok remain on the same unique main group. Documentation-only main pushes select only changes and ci-ok, which is unchanged.
The badge URL and link resolve. At review time the badge reported failing because the latest completed main run (8882453) was cancelled, while 574861f3 was still running; that is the condition this PR removes, so the next completed main run should verify the intended state.
Verification:
git diff --check origin/main...HEAD: clean.git merge-tree --write-tree HEAD origin/main: clean (ae3e1067).node scripts/adr-check.mjs --base origin/main: passed (3 changed files).node --test scripts/tui-tmux.test.mjs scripts/ci-changes.test.mjs: 14 passed.actionlintis not installed locally; removing the blocks leaves valid YAML (Ruby YAML parse passed). The PR body reports actionlint passed.- CI at
3510429d:changes,dependenciesandwebpass;verifyandwindows-cliin progress;acp-registryskipped. The main-push behavior cannot be exercised before merge.
Optional P3: the workflow-level group at .github/workflows/ci.yml:10 also makes a manual dispatch on main use a unique run_id, so manual runs no longer join the removed job-level groups. docs/release/README.md:181 says manual dispatch selects every group, but not whether concurrent manual runs are intended. Scope the unique group to github.event_name == 'push' if only pushes should be independent; otherwise document the manual behavior.
Verdict: APPROVE.
eric8810
left a comment
There was a problem hiding this comment.
Reviewed at head 3510429.
The change is a subtraction, which is the right shape: five per-job concurrency blocks with cancel-in-progress: true disappear, each main push keeps its own jobs, and pull requests keep their cancellation through the workflow-level group. Removing five copies of a group expression whose only purpose was to serialise main also removes the thing that made 8 of 20 main runs unreadable — a cancelled run reports as failing, so "did this commit pass" had no answer for the pushes that were superseded. The cost is stated rather than assumed (about 55 more macOS minutes, 3% of the day), and the badge reading only the newest completed push run is the part that makes the badge honest once cancellations stop being the norm.
verify and ci-ok failed on this head, and not because of anything this PR changes:
Error: "web/src/chat-ui/WebChatTimeline.vue:34: `"main"` names neither the root nor the
default branch; write `ROOT_BRANCH_ID` or `DEFAULT_BRANCH_ID`, or name the use in `UNRELATED`
web/src/chat-ui/WebChatTimeline.vue:328: …"
This PR touches .github/workflows/ci.yml, README.md and docs/release/README.md. The named file is on main (fc460807), and the hit at line 34 is variant?: "main" | "panel" — a render variant, not a branch. The literal scanner added with the default-branch work cannot tell the two apart, and this is exactly what its UNRELATED list exists for.
So the repository is red for every branch that includes main until that file is handled: either list the two uses in UNRELATED with the reason, or rename the variant ("inline" / "panel") so no UNRELATED entry is needed — the second is smaller and keeps the list for real borderline cases. I say this knowing one of the two hits came in through the chat-ui Web timeline I approved at dde0db2e: the check that now flags it landed later, so nothing in that review was skipped; the file simply arrived before the rule could see it.
Not approving while a required check is red.
codoggy
left a comment
There was a problem hiding this comment.
Review summary
I reviewed the merge-base diff for 3510429d83e38c8693b592bcc54492f8f23af23a, focusing on which pushes can cancel each other, PR run cancellation, and the README badge and release guide. I found no blocking issues in that scope.
Checks: Static inspection: the five jobs no longer share cancellation groups across main pushes. The workflow-level group still uses run_id on main and the PR number on pull requests; path selection and the ci-ok job are unchanged. CI: changes, dependencies, windows-cli, and web passed; acp-registry was skipped. verify failed on two "main" literals in web/src/chat-ui/WebChatTimeline.vue, and ci-ok failed as a result. That file came from the base branch, not this diff. The PR run does not exercise consecutive pushes to main. Tests not run locally.
codoggy
left a comment
There was a problem hiding this comment.
Review summary
I reviewed the merge-base diff for cd17f331e028aeb941c1a42fd9ceb478078ab10e, focusing on which CI runs may cancel one another after the main update. I found no blocking issues in that scope.
Checks: Static inspection: the three-file patch matches my previous review. Removing the five shared job groups lets separate main pushes run to completion; workflow concurrency still keys main by run ID and a pull request by PR number, so a newer run of the same PR can supersede the older one. Path selection and ci-ok are unchanged. CI: changes, dependencies, windows-cli, and web passed; verify was queued when checked. A single PR run does not demonstrate the behavior of two consecutive pushes to main. Tests not run locally.
eric8810
left a comment
There was a problem hiding this comment.
Reviewed at head cd17f33.
The change is as I read it at 3510429d: five per-job concurrency blocks removed so each main push keeps its own jobs, pull requests still cancelling through the workflow-level group, and the badge reading only the newest completed push run. The delta since then is main merged in; nothing of the workflow change itself moved, so that review stands.
verify and ci-ok failed on this head, in the workspace tests, and again not in this PR's files:
crates/dim-agent-capabilities/tests/branch_flow.rs:42
a_roster_and_an_identity_replay_separately_after_a_compaction
branch flow completed: Elapsed(())
That is a timeout, not an assertion: the roster-and-identity replay after a compaction did not finish inside the flow's own wait. The test belongs to the roster work (#1914/#1923), which this branch only contains through main. I also saw scenario_eval::tests::eval_server_child panics in the same job; those are the failing-child hook panicking on purpose and the surrounding tests report ok, so I did not count them as failures.
Separately, main is red again, and for a different test: PR check on 68043df9 failed at crates/dimcode/tests/cli_flow.rs:3942, staged_update::tui_update::update_now_stops_an_idle_daemon_and_restarts_or_refuses_a_busy_or_old_one — the Update-now path from #1865's area. So the repository has two independent red spots now, neither of which this CI-only change can fix.
Not approving while a required check is red.
Non-blocking: none.
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Review at b4cf2fd1 (origin/main b623ac69).
The PR stops a push to main from cancelling an earlier push's build and test jobs, and adds a main CI badge that reads the latest completed main push run. Scope is .github/workflows/ci.yml, README.md and docs/release/README.md. No blocking findings.
Verdict: APPROVE.
Concurrency on this head:
.github/workflows/ci.yml:10keys a pull request run by its PR number and amainpush bygithub.run_id;.github/workflows/ci.yml:11keepscancel-in-progress: true.- On a
mainpush,github.event.pull_request.numberis empty andgithub.ref == 'refs/heads/main'selectsgithub.run_id, which is unique for every run. No twomainpushes share a group, so a later push cannot cancel an earlier one. No job-levelconcurrencyremains:dependenciesat.github/workflows/ci.yml:53,windows-cliat:73,webat:91,verifyat:140andacp-registryat:283.changesat.github/workflows/ci.yml:16andci-okat:336use the same uniquemaingroup. - On a pull request, the group is the PR number, so a newer revision still cancels the superseded run. Manual dispatch on
mainuses its ownrun_id; dispatch on another ref keys by that ref. No unrelated refs share a group.
Merge check:
b4cf2fd1has parentscd17f331and44af122ca. Currentorigin/mainisb623ac69, one commit later (#1925).git merge-tree --write-tree origin/main HEADis clean (treee7717c07).git diff --stat origin/main HEADshows the three PR files plus #1925's not-yet-merged additions inscripts/ci-changes.mjs,scripts/ci-changes.test.mjsanddocs/release/README.md; the merge keeps those additions, and.github/workflows/ci.ymldiffers fromorigin/mainonly by the 16 deleted lines.main'sci.ymlis unchanged throughb623ac69. The README keeps #1948's content and adds the badge atREADME.md:9.docs/release/README.md:181has the new sentence and no longer has the old documentation-only sentence.- ADR 026, which arrived with the merge, states at
docs/adr/026-verification-tiers-and-ci-governance.md:123thatmainpushes run to completion without cancelling earlier ones. This change follows the proposed ADR rather than conflicting with it.
Badge:
- With the newest
mainpush run (b623ac69) still queued, the shields URL returnedmain CI: passingand the GitHub badge it reads returnedPR check - passing. That matches the latest completed push run,44af122c(success), and confirms the "latest finished one" wording atdocs/release/README.md:181. The badge link returns HTTP 200.
Prior review:
- The optional P3 about manual dispatch on
mainis withdrawn. A manual run and a push no longer cancel each other, which matches the PR's goal,docs/release/README.md:181scopes completion to pushes, and explicit cancellation is still available. Scoping the unique group togithub.event_name == 'push'would reintroduce the implicit cancellation this PR removes. - Optional P3: the head is one main commit behind (
b623ac69, #1925). The merge-tree is clean and the concurrency behavior is unaffected, but mergingorigin/mainbefore the final run would exercise the combined tree.
Verification:
git diff --check origin/main...HEAD: clean.git merge-tree --write-tree origin/main HEAD: clean (e7717c07) againstb623ac69.actionlintv1.7.12 on.github/workflows/ci.ymland on all workflows: clean. The prior review could not run it locally.- Ruby YAML parse: seven jobs, only the workflow-level
concurrencyblock, no job-level block. node --test scripts/ci-changes.test.mjs: 8 passed.node --test scripts/tui-tmux.test.mjs: 6 passed. Both readci.yml.node --test scripts/release.test.mjs: 42 passed for the workflow action pins.node scripts/adr-check.mjs --base origin/main: passed, 3 changed files.- CI at
b4cf2fd1(run 44711032018):changes,dependencies,webandwindows-clipassed;verifywas queued when checked;acp-registrywas skipped on the pull request. Themainpush behavior cannot be exercised before merge; after merging, two consecutive Rust merges should both finishverify. - Cross-PR: #1941 edits comments in a
ci.ymlstep and #1921 is stacked on this branch for the Linux verify trial; neither touches the concurrency lines.
Verdict: APPROVE.
codoggy
left a comment
There was a problem hiding this comment.
Review summary
I reviewed the merge-base diff for b4cf2fd1294164385283b8cfe2f8efcc00ef8968, focusing on the workflow cancellation groups, path selection, and the ci-ok gate. I found no blocking issues in that scope.
Checks: CI for this exact head shows changes, dependencies, windows-cli, and web passed; acp-registry was skipped, and verify was still queued when checked. The README badge and release documentation changes were checked by static inspection. Tests not run locally. This review does not claim that two overlapping pushes to main were exercised; that behavior should be checked after merge.
Summary
A push to
mainno longer cancels the build and test jobs of the previous push, and the README shows the latest finishedmainresult. Refs #1919.The jobs of a
mainpush shared one concurrency group withcancel-in-progress. Of 20 fullmainruns since 2026-11-19, 8 were cancelled by the next merge, so those commits have no result. Each push now keeps its own jobs. Pull requests still cancel their superseded runs through the workflow-level group.Cost: running all 14 full pushes of 2026-11-19 to completion would have used about 55 more macOS minutes, 3% of the 1788 used that day.
The badge reads the newest completed push run on
main. GitHub reports a cancelled run as failing, which is why the cancellation has to go first.Design rule checklist
All plugin design rules are n/a: the change is confined to CI scheduling, a README badge and the workflow documentation.
Documentation
GitHub workflows states that every
mainpush runs to completion.Verification
actionlintonci.yml,node scripts/adr-check.mjs --base origin/mainandgit diff --checkpassed.node --test scripts/tui-tmux.test.mjs scripts/ci-changes.test.mjs— 14 passed; these are the script tests that readci.yml.main CI: passingfor the currentmain.mainbehaviour itself only shows on pushes tomain. After merging, two consecutive Rust merges should both finishverify.