Skip to content

ci: let every main push finish its checks - #1920

Merged
zerob13 merged 3 commits into
mainfrom
dimagent/ci-main-complete
Nov 20, 2026
Merged

zerob13 merged 3 commits into
mainfrom
dimagent/ci-main-complete

Conversation

@zerob13

@zerob13 zerob13 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

A push to main no longer cancels the build and test jobs of the previous push, and the README shows the latest finished main result. Refs #1919.

The jobs of a main push shared one concurrency group with cancel-in-progress. Of 20 full main runs 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

  • No accepted ADR is modified or deleted.
  • No other module's design is changed.
  • Delivery status is not added to an ADR, index or roadmap.

GitHub workflows states that every main push runs to completion.

Verification

  • actionlint on ci.yml, node scripts/adr-check.mjs --base origin/main and git diff --check passed.
  • node --test scripts/tui-tmux.test.mjs scripts/ci-changes.test.mjs — 14 passed; these are the script tests that read ci.yml.
  • The badge URL renders main CI: passing for the current main.
  • Not exercised before merge: the main behaviour itself only shows on pushes to main. After merging, two consecutive Rust merges should both finish verify.

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 yyhhyyyyyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
  • actionlint is not installed locally; removing the blocks leaves valid YAML (Ruby YAML parse passed). The PR body reports actionlint passed.
  • CI at 3510429d: changes, dependencies and web pass; verify and windows-cli in progress; acp-registry skipped. 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 eric8810 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 codoggy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 codoggy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 eric8810 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 yyhhyyyyyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:10 keys a pull request run by its PR number and a main push by github.run_id; .github/workflows/ci.yml:11 keeps cancel-in-progress: true.
  • On a main push, github.event.pull_request.number is empty and github.ref == 'refs/heads/main' selects github.run_id, which is unique for every run. No two main pushes share a group, so a later push cannot cancel an earlier one. No job-level concurrency remains: dependencies at .github/workflows/ci.yml:53, windows-cli at :73, web at :91, verify at :140 and acp-registry at :283. changes at .github/workflows/ci.yml:16 and ci-ok at :336 use the same unique main group.
  • On a pull request, the group is the PR number, so a newer revision still cancels the superseded run. Manual dispatch on main uses its own run_id; dispatch on another ref keys by that ref. No unrelated refs share a group.

Merge check:

  • b4cf2fd1 has parents cd17f331 and 44af122ca. Current origin/main is b623ac69, one commit later (#1925). git merge-tree --write-tree origin/main HEAD is clean (tree e7717c07). git diff --stat origin/main HEAD shows the three PR files plus #1925's not-yet-merged additions in scripts/ci-changes.mjs, scripts/ci-changes.test.mjs and docs/release/README.md; the merge keeps those additions, and .github/workflows/ci.yml differs from origin/main only by the 16 deleted lines. main's ci.yml is unchanged through b623ac69. The README keeps #1948's content and adds the badge at README.md:9. docs/release/README.md:181 has 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:123 that main pushes run to completion without cancelling earlier ones. This change follows the proposed ADR rather than conflicting with it.

Badge:

  • With the newest main push run (b623ac69) still queued, the shields URL returned main CI: passing and the GitHub badge it reads returned PR check - passing. That matches the latest completed push run, 44af122c (success), and confirms the "latest finished one" wording at docs/release/README.md:181. The badge link returns HTTP 200.

Prior review:

  • The optional P3 about manual dispatch on main is withdrawn. A manual run and a push no longer cancel each other, which matches the PR's goal, docs/release/README.md:181 scopes completion to pushes, and explicit cancellation is still available. Scoping the unique group to github.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 merging origin/main before 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) against b623ac69.
  • actionlint v1.7.12 on .github/workflows/ci.yml and on all workflows: clean. The prior review could not run it locally.
  • Ruby YAML parse: seven jobs, only the workflow-level concurrency block, no job-level block.
  • node --test scripts/ci-changes.test.mjs: 8 passed. node --test scripts/tui-tmux.test.mjs: 6 passed. Both read ci.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, web and windows-cli passed; verify was queued when checked; acp-registry was skipped on the pull request. The main push behavior cannot be exercised before merge; after merging, two consecutive Rust merges should both finish verify.
  • Cross-PR: #1941 edits comments in a ci.yml step and #1921 is stacked on this branch for the Linux verify trial; neither touches the concurrency lines.

Verdict: APPROVE.

@codoggy codoggy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants