Repository navigation
fix: keep UI fixture types within the existing test-root budget - #160368
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 28, 2026, 6:33 AM ET / 10:33 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch assigns Control UI end-to-end fixture tests to the E2E TypeScript graph and registers a hot-reload agent test with the SQLite worker test project. Merge readiness✅ Ready for maintainer review Keep open. Current main still has the reported UI type-graph ownership, while the linked merged PR resolves only the overlapping SQLite test routing. The remaining change is focused, and this review found no actionable defect. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's test tooling assigns UI test files to TypeScript graphs, then checks that each test root has one owner. A separate Vitest registry routes database-dependent tests to the SQLite worker project. flowchart TD
A[UI fixture tests] --> B[Type graph rules]
B --> C[E2E type graph]
B --> D[Other UI type graph]
C --> E[Root ownership guard]
D --> E
E --> F[Type check results]
G[Hot reload test] --> H[SQLite worker project]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the eleven fixture tests in the E2E type graph while preserving the existing budget and exactly-once ownership guard. Do we have a high-confidence way to reproduce the issue? Yes, from source and the reported boundary run: current main assigns the eleven fixtures to the broad other-UI graph, and the strict local guard fails when that graph exceeds 720 roots. This review did not rerun the check. Is this the best way to solve the issue? Yes. Matching graph patterns move the existing tests to their E2E owner without raising the limit or weakening the exactly-once guard. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6dd3011e9f56. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash auto-merge.
|
What Problem This Solves
Local changed-file validation stops because the
ui-otherTypeScript graph has 721 test roots against its existing 720-root budget.User Impact
Developers can complete validation through the appropriate existing test shards. There is no user-visible runtime change, migration, or required operator action.
Why This Change Was Made
The eleven tests for the Control UI E2E fixtures belong with the E2E type graph that already contains their fixture owners. Matching include/exclude patterns transfer them from
ui-othertoui-e2e, preserving every root and the existing budgets. This changes type-check ownership only; UI runtime test selection is unchanged.The branch also contains the identical hot-reload SQLite test registration already landed through #160349. That hunk contributes no additional change at merge; the remaining change on current main is the two UI type configurations. Runtime guards, assertions, pools, and timeouts remain unchanged.
Evidence
4dbabc40f6fdc5e78d38f787525b14a582137c1cfails withui-other: 721 > 720(1.506 s). The candidate passes the full canonical graph boundary (124.177 s):ui-otherdrops from 721 to 710,ui-e2emoves from 657 to 668, all eleven roots are retained once, and the other UI root sets are unchanged.node scripts/run-tsgo-core-test-shards.mjs --ci-graphs-json '["core-test-ui-e2e","core-test-ui-other"]'(175.111 s overall; E2E 90.4 s and other 83.9 s).pnpm test src/agents/prepared-model-runtime.hot-reload-dispatch.test.ts --maxWorkers=1selects infra and passes the remaining 8 cases (46.519 s including fresh worker preparation; Vitest 21.92 s). All original 560 cases remain covered. No new or changed test assertions were added.Proof environment and infrastructure qualifications
Proof used isolated Testboxes with Node 24.19.0, pnpm 12.5.1, and frozen dependencies. The UI boundary ran without
GITHUB_ACTIONS, retaining the strict local budget policy. The inspected main CI run succeeded: hosted CI intentionally treats this size limit as advisory, so the local budget failure is not evidence of red hosted main.The final selected gate was:
Preparation failures were resolved separately from product results: an inventory-probe quoting error, a JSON-only formatter invocation that matched repository ignores, a source-sync timeout, and a synthetic checkout missing the requested Git base. The runtime proof likewise needed a fresh lease after capsule verification rejected stale source. No failed preparation was counted as passing proof, and checks, assertions, budgets, and execution settings stayed intact.
Hosted timeout investigation
CI run
36408810863hit its existing 15-minute deadline in core test-type stripe 4. Its four completed graphs all returned exit 0 without type diagnostics, but took 279–353 seconds each. The same runner was already unusually slow before compilation: extracting the identical dependency archive took 22.7 seconds, versus 5.3 seconds on another runner in that run. Both UI graphs changed here passed on their separate stripes.A cold reproduction of the exact executed merge
42deaf2dc40e, on fresh four-CPU capacity with the same five graphs, two compiler children, Node/compiler versions and native compiler policy, passed all five graphs in 196.80 seconds. All 18 bound source inputs matched before and after execution. This fits the original 813.52-second compiler window; no timeout, concurrency, assertion, coverage, or source changes were made. The isolated reproduction is complete and its lease is stopped. These results support one retry of the cancelled job as infrastructure recovery; they do not establish a specific unmeasured host fault.