Repository navigation
ci: give the agents-root and gateway-root tsgo test shards headroom below the 720-root cap - #145461
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 11:02 PM ET / September 12, 2026, 03:02 UTC (Revision 6). ClawSweeper reviewWhat this changesRedistributes tests among existing compiler projects and adds an inventory check that reserves headroom below the runner’s test-file limit. Merge readiness✅ Ready for maintainer review This remains useful preventive CI work, with no actionable defects found. The rebalancing is absent from current main, and GitHub confirms successful validation for the reviewed head. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s CI divides test typechecking among bounded compiler projects. Their configuration determines test ownership, while compiler-resolved dependencies determine which projects must run for changed tests. flowchart TD
A[Repository tests] --> B[Compiler project configuration]
B --> C[Ownership and size checks]
D[Changed test paths] --> E[Compiler consumer selection]
B --> E
C --> F[Bounded compiler processes]
E --> F
F --> G[CI typecheck result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +40, Docs 0. Total +40 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep complete test-family ownership in the existing compiler projects, with an earlier inventory warning and unchanged compiler execution limits. Do we have a high-confidence way to reproduce the issue? Not applicable as a runtime bug: this is preventive CI maintenance. The recorded before/after inventory demonstrates the capacity problem; no target code was executed during this read-only review. Is this the best way to solve the issue? Yes. Rebalancing complete families through existing configurations preserves the established compiler owner and consumer-selection path, and the new guard catches exhaustion before the hard limit. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 884b0ee61eec. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Merged via squash.
|
Restore room for new tests in the existing compiler graphs by moving complete shell/tool, sandbox, Gateway session, and media test families. Preserve exact single ownership, all 17 graph identities, cache paths, stripe assignments, and compiler concurrency. Add an inventory regression that requires at most 700 roots per graph before the runner's unchanged 720-root cap is reached. Compiler-resolved root counts on the original base: | Shard | Before | After | | --- | ---: | ---: | | agents-root | 720 | 644 | | agents-other | 717 | 677 | | agents-tools | 210 | 326 | | gateway-root | 720 | 642 | | gateway-other | 601 | 679 | | infra | 641 | 685 | | state-logging | 349 | 349 | | commands | 661 | 661 | | plugins-platform | 687 | 687 | | config-cli | 579 | 579 | | messaging | 709 | 665 | | services | 692 | 692 | | other | 663 | 663 | | ui-pages | 556 | 556 | | ui-e2e | 451 | 451 | | ui-other | 528 | 528 | | packages | 430 | 430 | The inventory regression fails before rebalancing and passes afterward. The 24-test owner suite, all 17 compiler graphs, and representative changed-file selection passed. This is developer CI maintenance with no runtime behavior change. Refs openclaw#145431
Restore Gateway test typecheck headroom by moving the complete nested server test subtree into the existing gateway-server compiler graph. Matching include/exclude patterns preserve exact root coverage, compiler concurrency, and the 700-root headroom guard and 720-root hard cap. Update the CI ownership documentation. The existing inventory regression failed before at 701 gateway-other roots and passed all 24 tests afterward. Both affected compiler graphs and changed-file checks passed. Hosted CI run 34706250754 is green on ce1965c, reconfirmed by the exact-head watcher. No runtime behavior changes. Refs #145602, #145461, #145431.
Restore Gateway test typecheck headroom by moving the complete nested server test subtree into the existing gateway-server compiler graph. Matching include/exclude patterns preserve exact root coverage, compiler concurrency, and the 700-root headroom guard and 720-root hard cap. Update the CI ownership documentation. The existing inventory regression failed before at 701 gateway-other roots and passed all 24 tests afterward. Both affected compiler graphs and changed-file checks passed. Hosted CI run 34706250754 is green on ce1965c, reconfirmed by the exact-head watcher. No runtime behavior changes. Refs openclaw#145602, openclaw#145461, openclaw#145431.
Refs #145431
Additional instructions
Maintainers can edit this same-repository branch.
What Problem This Solves
Resolves a problem where adding a single agents-root or gateway-root test would make the shared test-type boundary fail across otherwise unrelated pull requests. Both shards already contain 720 test roots, exactly the runner's hard limit. This is a maintainer-requested preventive follow-up to #145431; agents-other and messaging also need room before reaching the same limit.
Why This Change Was Made
Move complete test families between existing graphs: shell/tool tests and nested sandbox tests into agents-tools, Gateway session tests into gateway-other, and media tests into infra. A compiler-config inventory regression requires exact single ownership and at most 700 roots per graph, while the runner retains its 720-root hard cap.
All 17 graph identities, build-cache paths, stripe assignments, compiler concurrency, and compiler-resolved changed-test selection remain unchanged. No test roots are removed from the canonical inventory.
User Impact
Developers can add tests in the previously full agents and Gateway root partitions without immediately blocking unrelated landings. The inventory test prompts rebalancing before the hard compiler budget is exhausted. There is no runtime behavior change.
Evidence
Compiler-resolved roots on base db26660:
The new test was run before changing the tsconfigs:
After rebalancing, the complete owner suite passes all 24 tests, including stripe partitioning and real-compiler consumer selection. Native tsgo enumeration reports no ownership or 700-root budget violations. Fresh P1 autoreview returned scoped-clean with no accepted/actionable findings.
Passed locally:
The full runner compiled all 17 graphs. The changed-file runner selected exactly
agents-tools,gateway-other, andinfrafor the representative moved tests.pnpm lint:scriptsalso passed.node scripts/check-changed.mjspassed formatting, core graph ownership, test-root typechecking, and its early guards, then failed at the repository-wide dead-export scan on two unchanged UI exports:renderCloudConfigurationandrenderConnectMachineMenuIteminui/src/pages/new-session/cloud-target.ts. Both findings were independently reproduced withnode --import tsx scripts/check-deadcode-exports.mtson clean main revision 34cdbaf; the affected UI file and scan configuration are unchanged in this candidate. The remaining script and focused test lint commands were run separately and passed.Initial validation encountered unrelated UI dead exports; those baseline failures were resolved on main before final CI validation. Root counts bound individual compiler processes; this change makes no wall-time performance claim.
Exact-head CI for
f60b476ded48737d61b29406c2f4d5c9a8a73713, run 34663116166, passedcheck-test-types,check-test-types-core-1, andcheck-test-types-core-2.CI also reported three unrelated UI failures:
check-lint-core-2:
ui/src/pages/new-session/where-chip.test.ts:1080exceedseslint(max-lines)at 1,020 lines. The file has the same Git blob in the base and candidate (4b82719a8a5cfe09a8b663ebb3d59b179b27751c).check-dependencies: the same
renderCloudConfigurationandrenderConnectMachineMenuItemdead exports described above.checks-node-compact-large-5:
ui/src/styles/cursor-policy.node.test.ts:83rejects the unconditional pointer on.new-session-page__touch-detailsinnew-session.css. Both the test and CSS are byte-identical to the base revision. This job does not run the new shard inventory test.The original bounded watch completed with all three test-type jobs successful; that original CI rollup failed on the unrelated baseline UI problems above.
Final validation: after the baseline fixes reached main, the PR was cycled once without changing its head. The refreshed merge ref contains the required main fixes. The exact-head watcher returned
GREENfor run 34668005793 onf60b476ded48737d61b29406c2f4d5c9a8a73713, with zero pending checks; older failing checks were superseded.ClawSweeper review
The completed review of
f60b476ded48737d61b29406c2f4d5c9a8a73713found no actionable defects and listed no Rank-up moves or before-merge requests. No items required a fixup or were skipped. No code changed during landing preparation.