Repository navigation
test: skip unused compiler setup in routing fixtures - #147194
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 13, 2026, 1:08 PM ET / 17:08 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR avoids copying native compiler packages into routing-test fixtures while retaining local compiler installations for tests that execute lint or inspect native projects. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped optimization absent from current main. No actionable correctness findings remain; the compiler-dependent coverage is preserved, and exact-head CI passed. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s changed-file checker selects validation commands from changed paths. These fixtures verify command routing, excluded files, and real type-aware lint behavior. flowchart TD
A[Changed test paths] --> B[Shared fixture setup]
B --> C{Test needs compiler?}
C -->|No| D[Routing and exclusion checks]
C -->|Yes| E[Install fixture compiler]
E --> F[Real lint and project discovery]
D --> G[Existing assertions]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep compiler preparation explicit at the tests that consume it while preserving the existing routing and lint assertions. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug: source inspection confirms unnecessary compiler setup in routing fixtures, and the PR supplies setup measurements. Is this the best way to solve the issue? Yes. Moving preparation to the two compiler-consuming callers is a narrow solution that retains the existing helper, isolation boundary, and assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 47cd6033a1fd. LabelsLabel 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.
|
* commit '201f11afefdb19a9c75e9d3542bf7425c80df7a7': (141 commits) fix: keep catalog discovery scoped and execution lazy (#147159) fix: serialize reclamation worker shutdown with foreground writes (#147178) test(sessions): cover abrupt committed transcript recovery (#143984) fix: stop transcript storms during context overflow recovery (#147202) fix: reduce CPU overhead for small history and usage reads (#147205) fix: resume tasks after tools finish and the model times out (#147203) refactor(scripts): share SQLite reliability message waits (#146900) feat(exec): configure approval reviewer thinking and fastMode (#147192) test: remove redundant Bonjour module headers (#146981) refactor: share streaming media tail boundary update (#146989) refactor(tui): classify resume candidates once (#146983) improve: skip unused toast dismissal work (#147196) fix(linux): recover saved remote connections without replacing active sessions (#146047) fix: doctor stays silent when Windows state dir is under OneDrive (#123720) feat: announce successful Daybreak retries (#147146) feat(code-mode): reuse results across code cells (#147154) refactor(test): reuse CLI plugin fixture writer (#147186) test: skip unused compiler setup in routing fixtures (#147194) test: reuse LINE webhook runtime fixture (#146710) fix(code-mode): check automation and process result types (#147143) ...
What Problem This Solves
The changed-lane routing table creates a complete native compiler installation for each of its 16 cases, although those cases only inspect planned commands and verify excluded paths.
User Impact
Reduces unnecessary CI fixture copying while retaining all tests, assertions, CLI calls, and worker limits. Production behavior is unchanged.
Why This Change Was Made
The shared fixture now creates its ordinary tools directory. The real lint table and native discovery case explicitly prepare their own native compiler, preserving the checkout-local input boundary established in #138742 and the canonical lint coverage from #135123. Plan-only fixtures need no compiler installation; their planner resolves JavaScript TypeScript from the script's checkout.
Evidence
An original-source probe ran four existing cases in source order. The three routing fixtures spent 1.5235 seconds of 1.8051 seconds of setup copying unused native compiler packages. CLI execution and cleanup were measured separately; this is local setup attribution, not a prediction of total CI savings.
All 20 affected cases pass: three real lint failure/repair cases, one native discovery case, and all 16 routing cases. Targeted test-root types, lint, formatting, and diff checks pass. Independent P2 review found no actionable findings. The change adds three test lines and removes one; production LOC is unchanged.
Exact-head CI passed for 7f6c7c2, including the required startup corpus.