Repository navigation
perf: streamline check pipeline - #769
Conversation
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: perf: streamline check pipeline This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: perf: streamline check pipeline This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
* perf: streamline check pipeline * fix: forward post-separator help options
Goal
Make the full validation gate materially faster without weakening coverage, duplicating test facts, or increasing cross-machine concurrency pressure.
The current gate rebuilds TypeScript outputs ten times and runs overlapping unit/repair suites four times. The repeated test processes dominate wall time and amplify Git fixture/subprocess contention; build and lint repetition is real but much smaller.
Changes
scripts/run-node-tests.mjstarget runner usingnode:fsglob expansion and sorted file listsmin(availableParallelism(), 16), with an explicit CLI override and visible selected value*:no-buildentries for the composed gatefix-prompt-buildertestcheckNo runtime behavior, dependency, coverage threshold, or CI architecture changes are included.
Local benchmark
Merge base:
550316892d107815a36260356f623301393b4be0Candidate:
ab98f927bcb31a88caf27b17b267316b3890de68Machine: Linux x64, AMD EPYC 7K62, 32 available logical CPUs, 62 GiB RAM
Toolchain: Node v24.15.0, pnpm 11.10.0, Git 2.52.0
Method: two detached/worktree checkouts, identical frozen dependency state, GNU
/usr/bin/time -v, serialized samples with reversed ordering across rounds. Install time was measured separately (~0.7s) and excluded.pnpm run checkpnpm run checkMedian wall time improved 66.5%. Median user CPU fell from 1194.91s to 581.48s; median system CPU fell from 765.64s to 317.40s. Max RSS stayed comparable (baseline 369–384 MiB, candidate 371–374 MiB).
Final candidate phase sample:
build:allOne extra baseline attempt was excluded after the third redundant repair-suite execution hit the existing state-lease ref race. The raw failure is retained locally; it did not affect either successful baseline sample. A pre-freeze candidate diagnostic run hit an existing apply-comment timing assertion; the focused test passed immediately, and the final two candidate gates plus the autoreview gate and phase full-coverage run all succeeded.
Coverage and test proof
Autoreview
Command:
Result:
autoreview clean: no accepted/actionable findings reportedParallel test result: exit 0, 2541 tests. No findings were accepted or rejected because the reviewer reported no actionable defects.
An independent local-range regression review later found one P3 parser-contract issue: wrapper help detection also consumed
--help/-hafter the documented--forwarding separator. The finding was accepted and fixed inab98f927bc; a focused parser/CLI proof, fullpnpm run check, and the final autoreview all passed. The final review result was againautoreview clean: no accepted/actionable findings reportedwith no remaining findings.CI result
The PR CI is green: https://github.com/openclaw/clawsweeper/actions/runs/29887858197
Run checkstep: 4m26s (job total 4m39s)Run checkstep: 11m25s in https://github.com/openclaw/clawsweeper/actions/runs/29881719295 (job total 11m37s)Latest green main before the branch was https://github.com/openclaw/clawsweeper/actions/runs/29884056249.