Repository navigation
ci: reduce Doctor test startup and core lint jobs - #138796
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 4, 2026, 11:04 PM ET / September 5, 2026, 03:04 UTC. ClawSweeper reviewWhat this changesReuses a compiled CLI fixture for Doctor process tests and groups ordinary hybrid CI’s five core lint programs into two hosted jobs. Merge readiness✅ Ready for maintainer review Keep open as a useful, bounded optimization absent from current main. No blocking correctness or security findings. Priority: P3 Review scores
Verification
How this fits togetherDoctor process tests exercise OpenClaw’s diagnostic command against isolated configurations and databases. CI separately assigns core lint programs to hosted runners and collects their results into the merge checks. flowchart TD
A[Doctor test scenarios] --> B[Shared isolated package fixture]
B --> C[Compiled CLI or live source]
C --> D[Separate scenario state and output checks]
E[CI event and runner profile] --> F{Ordinary hybrid run?}
F -->|Yes| G[Two jobs covering five lint programs]
F -->|No| H[Existing alternate allocation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +13, Docs +4, Config +1. Total +18 across 6 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one compiled subprocess generation, fixture-owned package assets, independent scenario state and complete lint coverage without adding another build or cache path. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug: this is a CI optimization with supplied before/after timings; no benchmark was rerun during this read-only review. Is this the best way to solve the issue? Yes. Reusing the existing subprocess generation and package fixture removes repeated preparation without dropping assertions, increasing sharding or introducing a competing runtime path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 790fbf0304a6. 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)
|
a65c9b4 to
b0e4b2f
Compare
|
Merged via squash.
|
* refs/remotes/origin/main: (602 commits) fix(plugins): trace trust refusals and repair legacy provenance (openclaw#138746) perf(sqlite): reuse compiled plugin state point reads (openclaw#138758) refactor: type chat prefetch dependencies and clean loading tests (openclaw#138793) ci: reduce Doctor test startup and core lint jobs (openclaw#138796) feat(update): retain run history and share outcome reports (openclaw#138690) chore(deps): update @openclaw/fs-safe to 0.8.1 (openclaw#138500) fix: preserve global board ownership from pinning to notifications (openclaw#138675) fix(gateway): deliver session catalog updates from slow hosts (openclaw#138674) perf(sessions): index pending conversation replies (openclaw#127182) perf(auth): reuse ordered provider alias entries (openclaw#138805) docs(diagnostics): clarify whole-process CPU metrics (openclaw#138804) perf(memory): narrow source reads and stream embedding cache rows (openclaw#138766) fix: allow older source on newer Testbox checkouts (openclaw#138782) fix(agents): preserve recovered task progress and lifecycle ownership (openclaw#138785) perf(codex): reduce rollout tail scan CPU (openclaw#138784) perf(gateway): stop projecting history deltas at the byte budget (openclaw#138655) fix(build): bound native declaration inputs to checkout (openclaw#138742) fix(cli): preserve foreground Gateway argument handling (openclaw#138765) fix(ui): align task toolbar with side-panel tabs (openclaw#138769) fix(logbook): drain accepted work before closing SQLite (openclaw#138754) ... # Conflicts: # src/agents/embedded-agent-runner/compact.queued.ts
Closes #138795
What Problem This Solves
Resolves repeated CLI startup work in Doctor process tests and an extra hosted runner allocation for ordinary hybrid core lint. The Doctor tests paid to prepare the shared compiled CLI, then launched TypeScript source for every repair and preview.
Why This Change Was Made
The plugin-disabled Doctor scenarios now use that existing compiled CLI inside one lazily created, isolated package fixture. Each scenario retains fresh home, configuration and database state, and each invocation remains a separate process. The source/watch path uses the same fixture; the plugin-enabled workspace test keeps its original launch. This removes the synthetic UI module loader while exercising the real UI owner against fixture assets.
Ordinary hybrid core lint runs its five existing compiler programs in two jobs, grouped 1+2 and 3+4+5. Programs remain sequential and isolated with their existing resource limits. Other runner profiles and frozen/manual/release routes retain their existing allocation.
User Impact
Faster Doctor test execution and one fewer hosted setup per ordinary hybrid run. All seven Doctor cases, their existing assertions, and all five lint programs remain. Product behavior is unchanged.
Evidence
Native core lint completed in 4:22 and 4:30 of execution, with all five programs accounted for across the two jobs.
Refreshed native CI passed on
b0e4b2f95c7081c220992b7dbd7df60b0b2985b4: 96 successful jobs and nine existing scope skips, including both Windows rows and all seven UI shards. Doctor retained all seven cases and took 36.994s in case clocks, following 37.797s in the first candidate run. Whole-row timing varies with the other CLI tests, so these case timings are not a matched whole-CI speedup claim. Broader non-Windows completion remains 8:51, led by real-Gateway build/tests; that remaining optimization is separate from this reduction.The first run exposed a dashboard-gallery fixture regression already fixed on main by #138769. This PR was mechanically refreshed onto that fix, with an identical introduced patch. The gallery case then passed in 1.769s. No assertions or timeouts were relaxed. A separate setup-validation check hit a connection reset while downloading TruffleHog; its failed-job retry passed in 1:38.
Doctor proof used Node 24.19.0. Local commands are shown below with JSON reporter/output-path arguments omitted: