Repository navigation
ci: tighten path classification, isolate script checks, and remove dead steps - #1952
Conversation
8c36535 to
8f9a8a8
Compare
zerob13
left a comment
There was a problem hiding this comment.
Reviewed 8f9a8a81d3255f97367c9d95507bd5b4d0045559 against main at ffd3e11623267f15e11421aa419532e131da82cb. Two CI coverage regressions need fixes before merge.
- Keep Windows verification for the Windows client transport. A change confined to
crates/dim-client/src/lib.rsselectsrust,node. That file contains a Windows-only transport path anddim-clientis a direct dependency of the crate built bywindows-cli. The previous fullmainpush ran that Windows build. With path routing, the push runsverify (macos)and skipswindows-cli, so the affected code can go uncompiled on Windows until a sweep. Please route this Windows client path towindowsand add a regression case for a push changing onlycrates/dim-client/src/lib.rs. Selector · Windows transport · CLI dependency · Windows job - Route packaging checks when their Rust inputs change.
scripts/stage-web.mjsreads the protocol version directly fromcrates/dim-app-server/src/protocol.rs, but that path skipsweb.scripts/stage-release.mjsreads the SQLite format and upgrade table directly fromcrates/dim-app-server/src/storage/sqlite.rs, but that path skips bothscriptsandmacos_scripts. Please keep the Rust checks and add the corresponding packaging groups, with a single-path regression case for each exact file. Selector · Web staging · Native staging · macOS packaging job
Coordination for rollout. ADR 026 is marked Proposed at this base. Its D5 calls for an active full sweep before narrowing main. Stage the rollout so the scheduled sweep is active and verified before switching main pushes to path routing. Coordinate the shared workflow and selector edits with #1950, keeping both scripts and static-checks in ci-ok and preserving the runtime catalog route. ADR 026 status · D5
Local verification passed 39 ordinary regression tests, with one macOS-only case skipped on Linux. Exact-head CI run 44738764024 was queued at submission. changes success, dependencies success, verify (linux) queued, scripts success, web success, windows-cli success, macos-native success, acp-registry skipped, ci-ok pending. CI run
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Verdict: APPROVE.
Reviewed the full origin/main...HEAD diff at 8f9a8a8 (5 files, +86/-41). The PR does what it says: non-code metadata no longer falls through, dependencies follows manifests, lockfile and policy files, scripts/ routes only the web-packaging entry point to web, the script suite runs in its own Linux job, main pushes route by changed paths, and a daily full sweep covers them. No blocking defect found.
Verification: node --test scripts/ci-changes.test.mjs passes 10/10. The full node --test scripts/*.test.mjs suite is green except for one environment-only failure caused by the local mise cargo shim; with the toolchain cargo the same test passes (158 tests, 153 pass, 4 skipped). The PR's CI scripts job is green on a plain [self-hosted, linux, x64] runner; changes, macos-native, web, dependencies and windows-cli are green, and verify (linux) was still queued when I checked. I simulated representative paths: only Cargo.toml, Cargo.lock, toolchain, workflow and unknown paths select all groups; deny.toml and LICENSE select dependencies; nested Cargo.toml adds dependencies; scripts/stage-web.mjs is the only scripts path that selects web; test-macos-native selects rust,scripts; code-layout and release scripts select macos_scripts. Every group maps to a job and ci-ok.needs contains all eight non-gating jobs.
The schedule is safe on forks: it runs only the default branch, fork pull requests still skip changes, and every job depends on it, so the sweep never executes untrusted PR code or receives PR secrets. Its concurrency group uses github.run_id on main, so it neither cancels nor is cancelled by pushes.
P3 (non-blocking), docs/release/README.md:203: the ACP Registry paragraph still says the job runs for "full main push checks and manual CI runs". After this change, main pushes are path-routed and the job runs only when rust or scripts is selected, and the daily sweep also runs it. Failure scenario: a maintainer triaging a scheduled failure does not expect the registry job there, and a reader assumes every main push runs it. Fix: say "main pushes that select rust or scripts, scheduled sweeps, and manual CI runs".
P3 (non-blocking), inline on scripts/ci-changes.mjs:11: docs/architecture/tui-e2e.md is read by scripts/tui-tmux.test.mjs:8, and line 22 asserts every scenario name is documented, but the documentation rule still routes it to no group. Failure scenario: a doc-only edit that renames or removes a scenario name merges with the scripts job skipped; the broken assertion appears on the next scripts change or the next sweep. Fix: add a rule mapping docs/architecture/tui-e2e.md to scripts before the documentation rule and a case in the new documents that code reads keep their checks test. This predates the PR, but the new test states the policy and misses one of its inputs.
Optional follow-up: examples/, licenses/ and NOTICE still fall through to all groups, so a change to examples/ui-extensions/ui/panel.js still queues the full workspace. ADR 026 D5 asks for explicit classification of non-code assets; this predates the PR.
Conflicts: #1950 conflicts on .github/workflows/ci.yml, docs/release/README.md, scripts/ci-changes.mjs and xtask/Cargo.toml. Any resolution must keep its static group and its web/src and generated-docs rules alongside this PR's non-code, Cargo.toml and scripts rules, and combine ci-ok.needs (static-checks and scripts) with the Linux pin. #1951 conflicts on .github/workflows/ci.yml and docs/architecture/build.md; resolve with its renamed test targets plus this PR's routing, npm flags and scheduled-sweep wording. #1949, #1895 and #1958 merge cleanly.
No existing review threads exist, so no earlier finding is withdrawn. One provisioning assumption remains: the plain linux,x64 pool must keep Python 3 and a C compiler because scripts/code-layout.test.mjs:12 runs there; the current runner passed, so this is a note, not a defect.
|
|
||
| const rules=[ | ||
| [/^benchmarks\/baselines\/[^/]+\.json$/,[]], | ||
| [/^\.agents\/|^skills\/|^\.github\/(?:ISSUE_TEMPLATE\/|pull_request_template\.md$|PULL_REQUEST_TEMPLATE\.md$)/,[]], |
There was a problem hiding this comment.
P3, non-blocking. This new explicit list is the right place to finish the "documents that code reads keep their checks" policy, but docs/architecture/tui-e2e.md still selects no group even though scripts/tui-tmux.test.mjs:8 reads it and line 22 asserts every scenario name appears in it. A doc-only edit that renames or removes a scenario name merges with the scripts job skipped, and the broken assertion surfaces on the next scripts change or the next sweep. Add a rule mapping docs/architecture/tui-e2e.md to scripts before the documentation rule and a case in the new documents that code reads keep their checks test. Pre-existing, but the new test states the policy and misses one of its inputs.
There was a problem hiding this comment.
Still open at 5e20ef2. scripts/ci-changes.mjs:15 still maps docs/architecture/tui-e2e.md to [], with no rule before it, and scripts/ci-changes.test.mjs:41 still has no case for it. A doc-only edit that renames or removes a scenario name selects scripts false, and the docs-only merge push skips every job as well, so scripts/tui-tmux.test.mjs:22 fails only on the next scripts change or the daily sweep. Add [/^docs\/architecture\/tui-e2e\.md$/,['scripts']]/ before the documentation rule and a case in the policy test. The same policy test also misses docs/design/plugins/EventHub.md, which crates/dim-event-hub/tests/tool.rs:5-8 and entry.rs:4-7 read and compare against code strings.
…emove dead step Tighten CI routing and workflow topology per ADR 026 D4/D5: - Classify `.agents/**`, `skills/**`, `.github/ISSUE_TEMPLATE/**`, and `.github/pull_request_template.md` explicitly in `scripts/ci-changes.mjs` so non-code repository metadata runs no build/test groups (on both pull requests and `main` pushes). - Trigger `dependencies` (`cargo-deny`) only when Cargo manifests (`Cargo.toml` / `**/Cargo.toml`), `Cargo.lock`, `deny.toml`, or `LICENSE` change (plus full `main` pushes, scheduled sweeps and manual runs) instead of every Rust edit. - Move `scripts` tests into a dedicated `[self-hosted, linux, x64]` job, limit `scripts/` -> `web` routing to `scripts/stage-web.mjs`, keep `macos-native` running macOS script checks whenever `macos_scripts` is selected, and route Windows client/terminal crates (`crates/dim-client/`, `vendor/grok-build/`) to `windows` and Rust sources read by packaging scripts (`crates/dim-app-server/src/protocol.rs`, `storage/sqlite.rs`, `resources/`) to their owning packaging groups. - Pin `changes` and `ci-ok` to `[self-hosted, linux, x64]`. - Add the daily scheduled full cross-platform sweep (`0 19 * * *` UTC across Linux and macOS) while keeping code pushes on `main` full until the sweep is verified active per ADR 026 D5. - Remove the 0-test `migration_flow node_` invocation from `Verify public Node bindings` and add `--no-audit --no-fund` to the runtime `npm ci`/`npm install` commands in `Verify actual CLI profiles and line-mode flows`. Refs #1931
8f9a8a8 to
5e20ef2
Compare
|
Thanks for the detailed review @zerob13! Updated and pushed with all points addressed:
Verified locally with |
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Verdict: APPROVE.
Reviewed the full origin/main...HEAD diff at 5e20ef2 (5 files, +107/-39) against main ffd3e11. The delta since 8f9a8a8 addresses the blocking review: crates/dim-client/ and vendor/grok-build/ now select windows, and windows-cli compiles both through dim-cli (crates/dim-cli/Cargo.toml:9, crates/dim-cli/Cargo.toml:23-25, .github/workflows/ci.yml:77-94); crates/dim-app-server/src/protocol.rs, crates/dim-app-server/src/storage/sqlite.rs and crates/dim-app-server/resources/ select the groups that read them (scripts/stage-web.mjs:19, scripts/stage-release.mjs:33, scripts/provider-catalog.test.mjs:10-15). main code pushes stay full while the daily sweep is established, and only ranges selecting no group skip. That matches ADR 026 D5 staging and the updated docs.
P3, the inline thread from the previous round remains: docs/architecture/tui-e2e.md still selects no group. scripts/ci-changes.mjs:15 matches it to [], and the new "documents that code reads" test at scripts/ci-changes.test.mjs:41 still omits it. scripts/tui-tmux.test.mjs:8 reads it and line 22 asserts every scenario name is present. A doc-only edit that renames or removes a scenario name merges with scripts skipped; the docs-only merge push skips every job too, so the broken assertion appears on the next scripts change or the daily sweep. Fix: add [/^docs\/architecture\/tui-e2e\.md$/,['scripts']]/ before the documentation rule and a case in the policy test.
Optional, same policy: docs/design/plugins/EventHub.md is read by crates/dim-event-hub/tests/tool.rs:5-8 and crates/dim-event-hub/tests/entry.rs:4-7, which compare code strings to its A.4 and A.6 blocks (tool.rs:23, entry.rs:17). A docs-only edit to those blocks merges with rust skipped and fails on the next Rust run or sweep. Route it to rust as well. More broadly, xtask check validates Rust-comment links into any docs/ page (xtask/src/comment_links.rs:1-3, xtask/src/main.rs:73, .github/workflows/ci.yml:216-224), so a heading rename in a docs-only PR is still unchecked; that general case fits a follow-up or #1950's static checks.
Optional, docs: docs/release/README.md:203 still says acp-registry runs only on "full main push checks and manual CI runs". It now also runs on scheduled sweeps (.github/workflows/ci.yml:353). The main-push wording is accurate again after the staged rollback, so I withdraw the main-push half of my earlier note; add "scheduled sweeps" to the sentence.
Verification: node --test scripts/ci-changes.test.mjs 10/10 pass; full node --test scripts/*.test.mjs 158 tests, 154 pass, 4 platform skips, 0 fail; node scripts/adr-check.mjs --base origin/main pass. Exact-head CI run 44746166383: changes, dependencies, scripts, web, windows-cli and macos-native pass; verify (linux) was still queued when checked; acp-registry skipped for a PR. Worktree clean, no leftover processes.
Conflicts: #1950 conflicts on .github/workflows/ci.yml, docs/release/README.md and scripts/ci-changes.mjs; keep its static group, static-checks job and ci-ok entry alongside scripts, with this PR's runner pins. #1951 conflicts on .github/workflows/ci.yml and docs/architecture/build.md; keep its renamed test targets with this PR's routing, npm flags and sweep wording. #1953 conflicts on .github/workflows/ci.yml; its branch still carries the migration_flow node_ step this PR removes, so drop that line in resolution, and its new budget table needs a scripts row. #1949, #1958, #1910, #1913, #1907 and #1908 merge cleanly.
…routing-and-dead-steps
Route docs/architecture/tui-e2e.md to scripts and docs/design/plugins/EventHub.md to rust, and name scheduled sweeps in the acp-registry paragraph.
|
Merged
|
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Verdict: APPROVE.
Reviewed the full origin/main...HEAD diff at ba8b3f3 (5 files, +114/-40) against origin/main dbbd707. The rebase preserves the approved 5e20ef2 content: .github/workflows/ci.yml is identical to the approved head, and scripts/ci-changes.mjs and scripts/ci-changes.test.mjs differ only by the new commit's rules and cases. Main's #1895 rewrites in docs/architecture/build.md and docs/release/README.md merged without overlap. #1958's cli_flow and goal wait fixes are present, and nothing in this diff touches its files.
The new commit ba8b3f3 closes the inline thread. docs/architecture/tui-e2e.md now selects scripts (scripts/ci-changes.mjs:15, case at scripts/ci-changes.test.mjs:44), and scripts/tui-tmux.test.mjs:8 reads the page while line 22 asserts every scenario name. docs/design/plugins/EventHub.md now selects rust (scripts/ci-changes.mjs:17, case at scripts/ci-changes.test.mjs:45), and crates/dim-event-hub/tests/tool.rs:5-8 and entry.rs:4-7 read its A.4 and A.6 blocks.
Verified the rest of the full diff at file:line. The schedule trigger is at .github/workflows/ci.yml:4-6. dependencies runs only for the dependency group at line 59, with every Cargo.toml adding that group at scripts/ci-changes.mjs:7,50. The isolated Linux scripts job is at ci.yml:144-167; verify no longer selects scripts at line 170; macos-native keeps packaging on PRs, main pushes, sweeps and manual runs at lines 327 and 344; acp-registry is at line 353; ci-ok includes scripts at lines 406-408. The statements in docs/release/README.md:146,181,183,203,218-224 and docs/architecture/build.md:348 match those conditions. No defect found in the diff.
CI at ba8b3f3, run 44845410370: changes, dependencies, scripts, web, windows-cli and macos-native pass; acp-registry is skipped for a PR; verify (linux) and ci-ok fail. The failure is the runner, not this diff: 30 scenario_eval tests report bwrap: Can't mount proc on /newroot/proc: Operation not permitted, and 2 transport_flow plus 4 modality/OCR tests fail with the same bwrap error. git diff origin/main HEAD contains no Rust file. At 5e20ef2, verify (linux) failed on goal::tui_goal_shows_the_state_and_marks_the_status_area, repicking_the_current_model_keeps_the_effort and tui_models_picker_edits_only_the_subagent_model_policy, which #1958 fixed and this head contains. Rerun verify on a runner where bwrap can mount proc before merge.
Verification: node --test scripts/ci-changes.test.mjs 10/10 pass; full node --test scripts/*.test.mjs 158 tests, 154 pass, 4 platform skips, 0 fail; node scripts/adr-check.mjs --base origin/main pass. Worktree clean, no leftover processes.
Previous findings: the tui-e2e P3 thread is fixed, so withdraw it, and withdraw the round 2 EventHub routing note (fixed at ci-changes.mjs:17) and the acp-registry wording note (fixed at docs/release/README.md:203). The general xtask comment-link gap remains a follow-up, but no Rust comment links to tui-e2e.md, so this page is covered by the scripts job.
Conflicts: merge-tree at this head is clean against origin/main. #1949 (948591a) merges cleanly. #1950 (d50b2be) conflicts on .github/workflows/ci.yml, docs/release/README.md and scripts/ci-changes.mjs; keep its static group, static-checks job, changes output and ci-ok entry beside this PR's scripts job and Linux pins, take this PR's narrowed scripts/ rules and the new tui-e2e/EventHub rules, and combine its static-checks sentence with this PR's sweep wording in the README paragraph. #1951 (23ab958) conflicts on .github/workflows/ci.yml and docs/architecture/build.md; keep its renamed targets (integration_flow, app_server_flow mcp_http_flow::node_ and the split cli targets) with this PR's removal of the in-verify scripts step and the migration_flow line, and combine the build.md sweep wording with its test list. #1953 (3a1696f) conflicts on .github/workflows/ci.yml; its branch still carries the migration_flow node_ line at ci.yml:319 and the in-verify scripts step, drop both, and add a scripts row to its new budget table. #1900 is a draft on an old base and merges cleanly; it does not edit these files relative to ffd3e11.
…routing-and-dead-steps # Conflicts: # .github/workflows/ci.yml # docs/architecture/build.md
…routing-and-dead-steps
…steps # Conflicts: # .github/workflows/ci.yml # docs/release/README.md # scripts/ci-changes.mjs
…routing-and-dead-steps
|
Merged
|
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Verdict: APPROVE.
The PR tightens path classification, isolates the development and release script suite in a Linux x64 scripts job, pins the runner-agnostic control jobs, removes dead steps, and stages the daily full sweep from ADR 026 D5. This round reviewed the full origin/main...HEAD diff at a652768 (5 files, +114/-39) and the delta ba8b3f3..a652768.
Merge integrity
git diff origin/main HEAD(two-dot) changes exactly the same 5 files, andgit diff 9f7674e8 HEADis empty for all of them, so the a652768 merge of origin/main did not alter the PR content and the earlier 9f7674e merge left no duplicate content.ab9ea4c41b(#1950 branch head) and26ab50e23(main) are identical for.github/workflows/ci.yml,scripts/ci-changes.mjsandscripts/ci-changes.test.mjs, so merging both cannot double-apply #1950.- The delta outside these 5 files is exactly origin/main's new commits (#1949, #1950, #1951, #1961, #1923, #1962 and others); the two-dot diff proves none of it was hand-edited.
#1950 coherence (static-checks decoupling)
staticis in the group list (scripts/ci-changes.mjs:4), the changes outputs (ci.yml:29) andci-okneeds (ci.yml:424). Thestatic-checksjob is atci.yml:78-100, and its routes are intact:catalog.mdto xtask (ci-changes.mjs:12), plugin and generated pages (ci-changes.mjs:13), web sources (ci-changes.mjs:23) andxtask/check/**(ci-changes.mjs:42).xtask-checkstill carries the moved checks:xtask/check/src/lib.rs:27-33, plugin documents throughxtask/check/src/boundaries.rs:97, and the web branch-literal check atxtask/check/src/literal_main.rs:66.catalog.mdkeeps the runtimextaskcheck (xtask/src/main.rs:64-65).- Cross-check against the workflow: all 11 groups have a changes output (
ci.yml:26-37) and map to an existing job (rust, xtask, node, eval and execution to verify; windows to windows-cli; static to static-checks; web to web; scripts to scripts; macos_scripts to macos-native; dependencies to dependencies).ci-okneeds every other job exactly once (ci.yml:424), with no stale names and no duplicate job keys. The repeated step name "Configure Windows C/C++ toolchain" is in two different jobs (ci.yml:70,113), which is fine.
Approved content preserved
- The metadata classification, Cargo manifest scoping, scripts narrowing, packaging-script inputs, Windows crates, push staging and doc wording from ba8b3f3 are present (
ci-changes.mjs:11,16,18,26-30,33,36-38,41,52,75-81;ci.yml:168-191,194,345;docs/release/README.md:146,181,183,203,218-222;docs/architecture/build.md:348). - The one approved removal that did not survive the merges is the zero-match
migration_flow node_line; see finding 1. - The workflow matches the docs: schedule
0 19 * * *(ci.yml:4-6), dependencies gated on the dependency group (ci.yml:60) which every Cargo.toml adds (ci-changes.mjs:7,52), scripts isolated (ci.yml:168-191), verify gated on rust or xtask (ci.yml:194), macos-native script checks on non-PR events (ci.yml:345,362), and acp-registry off PRs when rust or scripts is selected (ci.yml:371).
Findings
- P3 (non-blocking; restore it or fix the description). The post-round-3 merges reintroduced the dead
migration_flow node_step atci.yml:308.crates/dim-migration/tests/migration_flow.rshas 18 tests (for examplelegacy_session_catalog_classifies_new_imports_and_keeps_children_inertat line 150) and contains nonode_substring, so the command runs zero tests and exits 0. The line is absent at 5e20ef2 and at the approved ba8b3f3 and returns in d1131a1 and every later merge. PR description point 6 still claims the removal, but the line is also on origin/main, so the PR diff itself cannot show it. Failure scenario: today only a wasted test spawn and a stale description; if the target is later renamed,scripts/run-rust-test.mjs:19asserts exactly one compiled target named migration_flow and the Node step fails for an unrelated change. Fix: deleteci.yml:308on the branch and keepapp_server_flow mcp_http_flow::node_in the #1951 resolution while dropping migration_flow; otherwise update the description. - P3 (optional, follow-up). The new policy test at
scripts/ci-changes.test.mjs:41still missesdocs/typescript-plugin-authoring.md.runtime/plugin-sdk.test.mjs:25-26reads every fencedtsblock from the guide and compiles them withtscatruntime/plugin-sdk.test.mjs:365; that check runs only in the Node step (ci.yml:290-312).classify(['docs/typescript-plugin-authoring.md'])returns no group because it falls to the documentation rule atscripts/ci-changes.mjs:20. Failure scenario: a PR edits a guide example so it no longer compiles; the Node step is skipped for that PR, and the failure surfaces on the next runtime or node change or on the daily sweep. This is pre-existing; it is raised now because the PR makes the policy explicit and fixed the same class for tui-e2e (ci-changes.mjs:16) and EventHub (ci-changes.mjs:18). Fix: add a rule before line 20 mapping the guide to['rust','node']and a case atci-changes.test.mjs:41; node alone is not enough because verify is gated on rust or xtask (ci.yml:194) and the Node step readstarget/test-artifacts.jsonlfrom the build step (ci.yml:228-239). Alternatively record the exclusion as a known limitation.
Checks
node --test scripts/ci-changes.test.mjs: 10/10 pass.node --test scripts/*.test.mjs: 159 tests, 155 pass, 4 platform skips, 0 fail.git diff --checkandgit diff --check origin/main...HEAD: clean.node scripts/adr-check.mjs --base origin/main: ADR freeze passed, 5 changed files.cargo run --locked -p xtask -- check: exit 0; module boundaries (743 modules, 4561 edges), 26 plugin documents, 99 comment links, literal main and service catalog passed.- Ruby YAML parse of
ci.yml: 10 jobs, schedule cron present; routing, outputs, jobs and needs cross-checked as above. - Direct classify checks: tui-e2e to scripts, EventHub to rust, protocol.rs to rust,node,web,scripts, sqlite.rs to rust,node,scripts,macos_scripts, resources to rust,node,scripts, dim-client and vendor/grok-build to rust,windows,node, xtask/check to static,xtask, metadata paths to none.
CI
Run 44869252736 at a652768: changes, dependencies, static-checks, windows-cli, web, scripts and macos-native pass; acp-registry is skipped for the PR; verify (linux) is still pending and ci-ok is not yet reported. I did not wait for it.
Conflicts
- origin/main:
git merge-tree --write-tree origin/main HEADis clean; HEAD already contains origin/main. - #1953 (head 923aa33, open): conflicts in
.github/workflows/ci.yml,docs/architecture/build.md,crates/dimcode/tests/cli_flow.rsandscripts/run-rust-test.mjs. In ci.yml, #1953 adds thread variables but still carries the pre-#1949 release-stamped step and the pre-#1951mcp_http_flow node_line; a later merge must take itscli_threadsandnode_threadsvariables, keep this head's removal of the release-stamped step and the splitapp_server_flow mcp_http_flow::node_andintegration_flowtargets (andmigration_flowonly if finding 1 is not fixed), and combine its parallelism budget text with this PR's sweep wording in build.md. - #1900 (draft, head ffb71ee): ci.yml auto-merges; the only conflict is
crates/dim-app-server/tests/mcp_session_flow.rs, unrelated to this PR.
Resolved and withdrawn
- Thread 4642894893 is fixed and still fixed at a652768:
scripts/ci-changes.mjs:16plusscripts/ci-changes.test.mjs:46; no further reply is needed. - Withdraw the round 3 note that #1950 conflicts with this PR: it is merged and coherent. The #1951 conflict resolved correctly except for finding 1. The #1953 note above supersedes the round 3 note for its new head.
Unverified
- A real main push through the new staging logic and a scheduled sweep cannot be exercised from this PR; they are covered by tests only (
scripts/ci-changes.test.mjs:147-175). - verify (linux) is pending at this head; local checks cover the diff but not the full suite.
- The local script suite ran on macOS with cargo 1.100.0 on PATH; the CI scripts job passed on Linux at this head, which covers the target platform. No leftover processes; the isolated target directory is under dim-pr1952-data.
…routing-and-dead-steps
|
Merged |
There was a problem hiding this comment.
Verdict: APPROVE.
The PR tightens path routing, isolates the development and release script suite in a Linux x64 scripts job, pins the control jobs off scarce pools, stages the daily full sweep, and claims to remove a dead step. This round reviewed the full origin/main...HEAD diff at 8744358 (5 files, +114/-39) and the delta a652768..8744358 (13 files, +328/-101, mostly main's #1953). The two round-4 P3 findings remain open; no blocking defect was found.
Merge integrity
git merge-base origin/main HEADis d0e74fc, the tip of origin/main, sogit diff origin/main...HEADis exactly the PR content:.github/workflows/ci.yml,docs/architecture/build.md,docs/release/README.md,scripts/ci-changes.mjsandscripts/ci-changes.test.mjs.- HEAD has parents a652768 and d0e74fc.
git merge-tree --write-tree a65276837 d0e74fcf5returns tree 660a651fd73fcf6713901a1bc9636160f278ad08, identical toHEAD^{tree}, so the merge of main into the branch is mechanical and no content was hand-edited. scripts/ci-changes.mjsandscripts/ci-changes.test.mjsare byte-identical to a652768, thescriptsjob block (ci.yml:197-220) is byte-identical, and the docs deltas from a652768 to head contain only #1953 lines. The approved routing, job isolation and wording survived.- #1953's physical-core scaling block is intact at
ci.yml:286-312: lscpu SMT width at 290-296,DIM_TEST_JOBS=clamp(physical/3,3,8)at 301-303,--test-threads=clamp(physical/4,2,6)at 304-306, macOS 3/3 at 308-309. Thecli_threads(ci.yml:334-335) andnode_threads(ci.yml:366-367) variables precede their uses at 349 and 368-374, so the merged thread variables are coherent. - Routing and gates: all 11 groups have outputs at
ci.yml:27-37and each maps to an existing job (rust, xtask, node, eval, execution toverify; windows towindows-cli; static tostatic-checks; web toweb; scripts toscripts; macos_scripts tomacos-native; dependencies todependencies).ci-ok(ci.yml:486) needs all nine other jobs exactly once, and everyneedsandneeds.changes.outputs.*reference resolves. Ruby's Psych AST found no duplicate mapping keys, and the file parses. Schedule (ci.yml:4-6), dependencies (:60), scripts (:199), verify (:223), macos-native (:407) and acp-registry (:433) matchdocs/release/README.md:183anddocs/architecture/build.md:321.
Findings
- P3, open from round 4. The dead
migration_flow node_command is still atci.yml:370, and PR description point 6 still says it was removed.crates/dim-migration/tests/migration_flow.rshas 18#[tokio::test(...)]functions and zeronode_occurrences, so the filter matches no test and the command exits 0. The line is also on origin/main, so the PR diff cannot show it unless the branch deletes it. Failure scenario: a wasted test spawn today; if the target is ever renamed,scripts/run-rust-test.mjs:36fails an unrelated change. Fix: deleteci.yml:370on the branch or update description point 6. - P3, open from round 4.
docs/typescript-plugin-authoring.mdstill selects no group through the documentation rule atscripts/ci-changes.mjs:20.runtime/plugin-sdk.test.mjs:25reads every fencedtsblock from it and compiles them withtscat 365-370, but that test runs only in thenodestep atci.yml:358(gated at:351). The new policy test atscripts/ci-changes.test.mjs:41-48coversdocs/architecture/tui-e2e.md(ci-changes.mjs:16) anddocs/design/plugins/EventHub.md(:18) but not this guide. Failure scenario: a guide-only PR breaks a fenced example, the Node step is skipped, and the failure surfaces on the next node change or the daily sweep. Fix: add a rule beforeci-changes.mjs:20mapping the guide to['rust','node'](rust becauseverifyis gated on rust or xtask atci.yml:223, node because the compile runs in the Node step) plus a case in the test, or record the limitation. - P3, optional, wording.
docs/release/README.md:183says "fromscripts/, onlyscripts/stage-web.mjstriggers thewebjob", butscripts/ci-changes.mjs:25mapsscripts/run-rust-test.mjsto all groups, so it also selectsweb. The over-selection is safe; the sentence is inaccurate. Fix: name therun-rust-test.mjsexception. This was present at a652768 and missed in round 4.
Resolved and withdrawn
- Thread 4642894893 (
scripts/ci-changes.mjs:11) is fixed at ba8b3f3 and still fixed at this head (scripts/ci-changes.mjs:16,scripts/ci-changes.test.mjs:46); reply 4649542717 already covers it, so no new reply is needed. - Nothing is withdrawn. The merge resolved none of the round-4 findings.
Checks
node --test scripts/ci-changes.test.mjs: 10/10 pass.node --test scripts/*.test.mjs: 159 tests, 155 pass, 4 platform skips, 0 fail (macOS, cargo 1.100.0 on PATH).git diff --check origin/main...HEAD: clean.node scripts/adr-check.mjs --base origin/main: passed, 5 changed files.cargo run --locked -p xtask -- check: exit 0 under the isolated target; module boundaries 743 modules/4561 edges, crate and module boundaries, 26 plugin documents, service declarations, plugin locks, 99 comment links, literal main and service catalog passed.- Ruby Psych parse of
ci.yml: parse ok, no duplicate keys, 10 jobs,ci-okneeds all nine gating jobs, allneedsand output references resolve. - classify probes: tui-e2e to scripts, EventHub to rust, native-storage-format to rust, protocol.rs to rust/node/web/scripts, sqlite.rs to rust/node/scripts/macos_scripts, resources to rust/node/scripts, dim-client and vendor/grok-build to rust/windows/node, run-rust-test.mjs to all groups, typescript-plugin-authoring.md to none.
- No processes were left running by these checks.
CI
- Run 44878291869 at 8744358 (pull_request):
changes,static-checks,windows-cli,web,scripts,macos-nativeanddependenciessucceeded;acp-registrywas skipped for the pull request;verify (linux)is still in progress andci-okhas not started. I did not wait. Because the PR changesci.yml, the router selected every group, so this run also exercises the newscriptsjob.
Conflicts
- origin/main:
git merge-tree --write-tree HEAD origin/mainis clean; main is an ancestor of HEAD. - PR 1900 (draft, head ffb71ee) shares all five files.
git merge-tree --write-tree HEAD ffb71eecreports no conflict in any of them; the only conflicted file iscrates/dim-app-server/tests/mcp_session_flow.rs, unrelated to this PR. PR 1900'sci.ymlhunk removes per-job concurrency blocks that main already removed, so that branch is stale. - No other open PR touches these five files.
Unverified
- A real push to main through the staging branch of
scripts/ci-changes.mjsand a scheduled sweep cannot be exercised from this PR; onlyscripts/ci-changes.test.mjs:125-176covers them. verify (linux)andci-okare pending at this head; local checks are targeted only, not the full workspace suite.
CI after publication
Head run 44878291869 completed after this review was posted: verify (linux) and ci-ok failed. The only failed test is staged_update::tui_update::update_now_refuses_a_busy_daemon_and_prints_manual_command, which panicked at crates/dimcode/tests/support/cli_harness.rs:893 on a dialog timeout; the other targets in the same job passed, including the workspace suite that ran 744 tests. The same test panicked at the same line in the run for origin/main d0e74fcf (run 44878237932, verify (macos)), so this is a pre-existing flake on main and is not caused by this PR's five-file diff. The verdict stands; the required check stays red until that flake is fixed or the run is retried.
|
@eric8810 status and one decision:
Should #1952 wait for zerob13, or will you dismiss the stale request / approve once its check is green? If merging with a known-flake red is acceptable, say so and I will merge after the flake PR lands. |
直接request review,记得有两票approve才能合并。已知的flake发现了应该先单独pr修复再来推进这个。 |
|
Thanks for the round-5 review and approval. The three P3s are accepted:
I am holding those edits until the two flake fixes (#1971, #1972) land, so this PR's next check runs once on the final head rather than twice. The required check is red only on the known update-dialog flake, which #1971 addresses. |
The plugin SDK test reads fenced TypeScript blocks from docs/typescript-plugin-authoring.md, so a guide-only change must select the Rust and Node groups. The migration_flow target has no node_ tests; its filter matched nothing and only spawned an extra test process. The release guide also named only stage-web.mjs as the scripts path that selects web.
…routing-and-dead-steps
|
Pushed
|
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Review: PR #1952 at 3cf23da
Verdict: APPROVE
Round 6 reviews head 3cf23da, the merge of origin/main 7b593c5 into 8c70416 (the single new branch commit, parent 8744358). All three round-5 P3s are resolved and no new P0-P2 issue was found.
Resolution of the three P3s
- Dead
migration_flow node_filter: resolved..github/workflows/ci.ymlno longer containsmigration_flow;Verify public Node bindingsruns the transport_flow, app_server_flow, hub_flow and conditional xtask filters only (ci.yml:368-373).crates/dim-migration/tests/migration_flow.rshas 18#[tokio::test(...)]functions, no#[ignore], and zeronode_occurrences, so the removed command could only spawn the binary and select zero tests. PR description point 6 now matches the tree: "Removed the 0-testmigration_flow node_line fromVerify public Node bindings." docs/typescript-plugin-authoring.mdrouting: resolved.scripts/ci-changes.mjs:20maps the guide to['rust','node']and is placed before the documentation catch-all atscripts/ci-changes.mjs:22, so first-match wins. The new case atscripts/ci-changes.test.mjs:48asserts exactlyrust,node, and the suite passes.runtime/plugin-sdk.test.mjs:25-30reads 11 fencedtsblocks from the guide and compiles them withtscatruntime/plugin-sdk.test.mjs:365-374; that test runs inVerify public Node bindings(ci.yml:350-358, gated onnode).rustis selected becauseverifyis gated on rust or xtask (ci.yml:223) and because the runtime npm install the Node step needs sits in the rust-gated step (ci.yml:317-327) before it, so a guide-only PR now reaches the compile.- Release guide wording: resolved.
docs/release/README.md:183now saysscripts/stage-web.mjsandscripts/run-rust-test.mjsselect thewebjob and notes that the latter selects every group. The classify probe returns all 11 groups forscripts/run-rust-test.mjs(scripts/ci-changes.mjs:27), so the sentence is accurate; no stale "only stage-web.mjs" claim remains anywhere in the tree.
Merge integrity
- Head 3cf23da has parents 8c70416 (first) and 7b593c5 (origin/main, second).
git rev-list --count 87443582..8c70416ais 1, so 8c70416 is the only new branch commit; it touches four files, +4/-2. git merge-tree --write-tree 8c70416a 7b593c539returns tree 2bc3acf0aa2e1d1c6ee6f56f6041207a618a7cb9, identical toHEAD^{tree}. The merge is mechanical, with no conflict resolution and no hand edits.git diff 8c70416a 3cf23dac -- <the five PR files>is empty, so the merge preserved the approved branch content. The 20 main-side commits it brings in change 17 unrelated files, including main's #1971 bounds incrates/dimcode/tests/cli_flow/staged_update.rsandcrates/dimcode/tests/support/cli_harness.rs, the test that failed round 5.- The PR diff against main is 5 files, +117/-40:
.github/workflows/ci.yml,docs/architecture/build.md,docs/release/README.md,scripts/ci-changes.mjs,scripts/ci-changes.test.mjs.
Routing and gates
- All 11 groups still have outputs at
ci.yml:27-37;scriptsis consumed by thescriptsjob atci.yml:197-220;ci-okneeds every gating job includingscriptsatci.yml:485. Everyneeds.changes.outputs.*reference resolves. - Ruby Psych parses
ci.yml: 10 jobs (changes, dependencies, static-checks, windows-cli, web, scripts, verify, macos-native, acp-registry, ci-ok) with no syntax error. - classify probes: guide to rust,node; tui-e2e to scripts; EventHub to rust; native-storage-format to rust; stage-web.mjs to scripts,web; run-rust-test.mjs to all 11 groups; test-macos-native.mjs to rust,scripts; docs/release/README.md to none.
- On this head the changes job selected every group because
ci.ymlis in the diff. That is why dependencies, scripts, static-checks, web and windows-cli all ran although no product code changed.
New findings
None. The new code is the routing rule, its test, the dead-line removal and the documentation wording, and each is consistent with the surrounding gates. The remaining cost is intentional over-selection: a guide-only PR selects rust, which also runs the Linux workspace suite and macos-native, and editing run-rust-test.mjs selects every group.
Checks
node --test scripts/ci-changes.test.mjs: 10/10 pass.node --test scripts/*.test.mjs: 159 tests, 154 pass, 4 platform skips, 1 environment-only failure because the Mach-O layout test could not findrustcunder the scrubbed PATH. Rerunningscripts/code-layout-darwin.test.mjswith rustc available: 2/2 pass.node --check scripts/check-acp-registry.mjsandnode --check scripts/ci-changes.mjs: pass.node scripts/adr-check.mjs --base 7b593c539: "ADR freeze passed: 5 changed files".git diff --check 7b593c539..3cf23dac: clean.git show --check 8c70416a: clean.- No processes were left running by these checks.
CI
- Run 44906284366 at 3cf23da (pull_request) completed as a failure. changes, dependencies, scripts, static-checks, macos-native, web and windows-cli passed. In
verify (linux), build and lint, crate boundaries and plugin pages, compiled workspace tests and the wall-clock handoff passed;Verify actual CLI profiles and line-mode flowsfailed onhooks::project_hooks_start_disabled_and_the_user_enables_thematcrates/dimcode/tests/cli_flow/hooks.rs:497with an empty marker instead ofuser-one(11 passed, 1 failed). The later Node, Python and downloaded Node runtime steps were skipped, andci-okfailed because verify failed. - The failure is a known main-side flake, not this diff. The same flow failed on the #1971 run, and open PR #1972 rewrites exactly this test to wait for the SessionStart hook at activation instead of racing the first turn. Neither
crates/dimcode/tests/cli_flow/hooks.rsnor any othercli_flowfile is touched by this PR's five-file diff. The red check needs a retry or #1972 and does not reflect the routing changes under review. - GitHub still reports
reviewDecision: CHANGES_REQUESTEDbecause zerob13's round-1 review at 8f9a8a8 remains undismissed. The latest submitted review is an APPROVE at 8744358; the stale decision is not a content finding.
Conflicts
- origin/main: 7b593c5 is an ancestor of HEAD, and
git merge-tree --write-tree HEAD origin/mainis clean. - Only open PR #1900 lists the same five files. Its base is the stacked branch eric/1292-domain-exec and the overlap is inherited from old-main content, not a direct edit.
git merge-tree --write-tree 3cf23dac ffb71eececonflicts only incrates/dim-app-server/tests/mcp_session_flow.rs, unrelated to these five files. No other open PR touches them.
Unverified
- The full workspace suite was not run locally; the CI run exercised it and passed that step.
- The real main-push staged rollout and the scheduled sweep are still covered only by unit cases in
scripts/ci-changes.test.mjs. - The guide compile in
runtime/plugin-sdk.test.mjswas not exercised locally because it needs the packed npm workspace and the rutis host, and at this head the Node step was skipped after the earlier CLI-profiles failure. The routing rule itself is verified by the passing scripts job and the classify unit test.
…routing-and-dead-steps
|
#1972 is merged, so this head now includes the hooks SessionStart fix that failed the last CLI-profile run. Merged main and pushed |
zerob13
left a comment
There was a problem hiding this comment.
Re-reviewed 776dca42059f702e721d90b06965bcaf62346e92 against main at d497a60c21196fed6999038f01951bf1c955379a. My earlier routing and workflow concerns are addressed. The PR still has only the five CI, script and documentation changes: it routes the TypeScript authoring guide to Rust and Node validation, removes the zero-match migration command, and preserves the independent script/static gates and daily full sweep. The update from the prior evaluated head only brings in the merged SessionStart fix. The exact Linux check passed workspace tests, wall-clock handoff, the previously failing production CLI Hook case, and Node bindings; ci-ok passed.
Tightens CI path routing, isolates lightweight script checks on Linux x64, pins runner-agnostic control jobs off scarce macOS/Windows pools, activates the daily scheduled full cross-platform sweep (ADR 026 D5, staged before narrowing
maincode pushes), and removes a dead 0-test CI step.Refs #1931
Summary of changes
scripts/ci-changes.mjs):.agents/**,skills/**,.github/ISSUE_TEMPLATE/**, and.github/pull_request_template.md(PULL_REQUEST_TEMPLATE.md) as[]so skill/template edits no longer fall through to full workspace builds on PRs ormainpushes.dependencies(cargo-deny) to manifest, lockfile and policy edits:.github/workflows/ci.ymldependencies.iftoneeds.changes.outputs.dependencies == 'true'.'dependencies'whenever anyCargo.toml(/(?:^|\/)Cargo\.toml$/) changes (rootCargo.toml/Cargo.lockcontinue to select all groups;deny.toml/LICENSEselectdependenciesonly).scriptsjob, narrowscripts/→web, and preserve cross-group Rust inputs:Test development and release scriptsout ofverifyinto its ownscriptsjob pinned to[self-hosted, linux, x64](with pinnedsetup-nodeandsetup-rust-toolchain) and wired it intoci-ok.scripts/→webtoscripts/stage-web.mjs.dim-cli(crates/dim-client/,vendor/grok-build/) to includewindows.crates/dim-app-server/src/protocol.rs→['rust', 'node', 'web', 'scripts'],crates/dim-app-server/src/storage/sqlite.rs→['rust', 'node', 'scripts', 'macos_scripts'],crates/dim-app-server/resources/→['rust', 'node', 'scripts'].macos-nativeso macOS packaging/code-layout script checks (macos_scripts == 'true') still run on PRs,mainpushes, scheduled sweeps, and manual runs now thatscriptsis no longer insideverify (macos), without duplicatingverify (macos)Rust tests.changesandci-okto[self-hosted, linux, x64]:schedule: - cron: '0 19 * * *'to.github/workflows/ci.yml(runs all groups across both Linux and macOS, plusacp-registry,dependencies,windows-cli,web,scripts,macos-native, andVerify downloaded Node runtime).mainrunning the full suite (skipping only pushes whose entire range selects no check group) until the scheduled sweep is verified active onmain, after which narrowingmaincode pushes can land in a small follow-up per ADR 026 D5.docs/release/README.mdanddocs/architecture/build.md.npm ciflags:migration_flow node_line fromVerify public Node bindings.--no-audit --no-fundto the threeruntimenpm ci/npm installcommands inVerify actual CLI profiles and line-mode flows(kept installingruntime+runtime/plugins/workflowfor allrust == 'true'runs becauseacp::andworkflow::in the 12-flowcli_flowstep require those packages even whennode == 'false').Verification
node --test scripts/ci-changes.test.mjs scripts/tui-tmux.test.mjs scripts/adr-check.test.mjs— passed (23/23)node --test scripts/test-macos-native.test.mjs scripts/development.test.mjs— passed (9/9)node --test --test-name-pattern='workflow actions use immutable commits' scripts/release.test.mjs— passednode --check scripts/check-acp-registry.mjs && node --check scripts/ci-changes.mjs— passednode scripts/adr-check.mjs --base origin/main— passedAblation review
npm ciforruntimeandruntime/plugins/workflowunconditionally in theVerify actual CLI profiles and line-mode flowsstep instead of gating it onnode == 'true':cli_flow/acp.rsandcli_flow/workflow.rsboth run in the 12-flowcli_flowselection onrust=true, node=falseCLI-only PRs.Cargo.tomlat repo root falling through to all groups while matching nested**/Cargo.tomladditively to'dependencies', avoiding duplicate rules per crate prefix.scripts/ci-changes.mjsand.github/workflows/ci.yml.