Repository navigation
perf(ci): overlap independent npm source checks - #199836
Conversation
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR adds repeatable check-stage selection and runs npm source validation on two isolated workers before sealing the existing aggregate receipt. Example: Run pnpm check --stage lint.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the parallelization preserves check coverage and receipt ownership, with no actionable code or security findings; exact-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherNpm release preflight consumes a frozen source revision and trusted workflow tooling, validates source checks, and emits a source receipt consumed by package qualification. flowchart TD
A[Validate release request] --> B[Nonlint source worker]
A --> C[Lint and format worker]
B --> D[Aggregate source gate]
C --> D
D --> E[Seal existing source receipt]
E --> F[Qualify prepared package]
Technical reviewBest possible solution: Retain the canonical stage selector, two isolated workers, and existing success-only aggregate receipt without duplicating check inventories. Do we have a high-confidence way to reproduce the issue? Current main executes the four canonical stages serially, and the linked successful release job independently confirms the long source-check path; no target code was executed during this review. Is this the best way to solve the issue? The change uses the existing scheduler and receipt owner, preserves historical targets and resource limits, and describes the additional setup cost without claiming a measured release speedup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 025a0525f992. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +242, Docs +14, Config +41, Other +25. Total +322 across 9 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 15, 2026, 6:07 PM ET / 23:07 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* improve(ci): shorten release candidate evidence binding * test(ci): preserve binder restore ordering without setup Release adaptation: exact canonical patch. The candidate-owned evidence binder needs only scripts and retains trusted-workflow identity and manifest validation; no lane or proof removed. Companion #199785 and #199836 tracked separately. (cherry picked from commit 319a142) Co-authored-by: RomneyDa <[email protected]>
…199785) Release adaptation: retain baseline inline runner routing and existing timeout-test layout. Port evidence-lookup scheduling and strict summary readiness logic plus the owning regression; the absent newer dependency-table test framework is not imported. Later #199836 remains selected independently. (cherry picked from commit a237e95) Co-authored-by: RomneyDa <[email protected]>
Adapt the canonical stage selector and source receipt reducer to the historical inline-admission workflow, preserving its runner routing and checks. Align the remaining package consumer with the already-ported #199785 readiness dependency. (cherry picked from commit 7de4434) Co-authored-by: RomneyDa <[email protected]>
* perf(ci): overlap independent npm source checks * test(ci): require arguments in check stage traces (cherry picked from commit 7de4434) Co-authored-by: RomneyDa <[email protected]> Release-adaptation: Preserve beta.4 inline request validation, 32-vCPU runner routing, and smaller docs/test inventory; both stage workers must succeed before the aggregate receipt.
Honor the explicit hosted runner choice in the aggregate source check introduced by #199836 after #199785. Verify refreshed workspace instructions in history while preserving the pinned prompt required by the approved prompt fixes. Drop a main-only diagnostic option from the #199564 regression fixture instead of importing its unrelated prerequisite. Proof: hosted/workflow and prompt boundary suites pass (109 executions); access preparation passes 23 tests; all core test-type shards and touched lint pass. Local autoreview unavailable and skipped under release authorization. Co-authored-by: RomneyDa <[email protected]>
* perf(ci): overlap independent npm source checks * test(ci): require arguments in check stage traces
Problem
FRV npm source validation runs the full canonical check graph serially. The latest completed successful FRV (https://github.com/openclaw/openclaw/actions/runs/43757970051, target
2c173a37a48f850246ae2133aa5c02df2ae35953) spent 70m55s in this check. Its npm producer was https://github.com/openclaw/openclaw/actions/runs/43758536481, source job 132947975817.Change
Select existing canonical check stages with repeatable
--stage; no second command inventory. Run preflight/typecheck/policy and lint/format on two isolated source workers, retaining each runner’s current memory/concurrency limits. Preserve the exactCheck npm release sourceaggregate receipt owner and require both workers to succeed before sealing. Source/tooling SHA identity, ancestry, plugin compatibility, all validation coverage and downstream phase contracts remain unchanged.The target’s own CLI must successfully advertise support; frozen pre-selector targets run their original full check exactly once, with an explicit no-op sibling. Probe or selected-check failure cannot fall back to a clean result. No target inventory is replaced by current harness code.
Timing evidence and limits
Measured stage spans: preflight 16m06.842s, types 12m00.796s, lint plus format 38m01.373s, policy about 4m45s. Non-lint work totals about 32m53s. Ideal same-capacity overlap changes the compute tail from 70m55s to about 38m01s, roughly 32m53s shorter before setup, queue and reducer overhead; around 30 minutes is a hypothesis, not a measured gain.
The latest FRV was CI-dominated: npm finished 25m10s before its CI receipt. This change does not claim to shorten that particular parent by 30 minutes. It removes a substantial latent critical path and helps source/candidate validation when npm is critical. The extra checkout/setup and reducer can increase aggregate runner work; old frozen targets gain no overlap and retain that bounded overhead. Queue effects and whole-FRV wall time still need hosted measurement.
Proof
pnpm check --stage lint --help: rejected on base, accepted with the patch.zipin PATH, not an assertion. Reused the existing isolated Info-ZIP installation and reran that exact test successfully (688 cases covered). The 12-test check suite also passed after test-only lint corrections; 226 workflow guards passed.git diff --checkpassed. Net +237 test lines stays within the unchanged 400-line allowance.test/tsconfig/tsconfig.test.root.scripts.json; the test now asserts the required arguments before tracing rather than casting or widening. That owning typecheck, all 12 check tests, lint and formatting pass. Current head:5b70b7b47de41a8d5cbd6d5bbd0f97c54cf1482f(test-only follow-up; production unchanged).f8da26areview with no findings. Local independent review waived by requester November 15, 2026. Current-head hosted ClawSweeper and CI remain required; no RFR claim while pending.Simplification
One stage selector over the existing owner, two coarse workers, one existing receipt identity. No cache, new dispatcher, per-lint-stripe command copy, dependency/config change, or weakened guard.