Skip to content

perf(ci): overlap independent npm source checks - #199836

Merged
RomneyDa merged 2 commits into
mainfrom
openclaw/frv-npm-source-stages-20261115
Nov 15, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
openclaw/frv-npm-source-stages-20261115

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

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 exact Check npm release source aggregate 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

  • Real pnpm check --stage lint --help: rejected on base, accepted with the patch.
  • Managed-command traces prove the exact full command union, canonical order, flag/base preservation, deduplication, invalid input rejection and failure status.
  • Extracted production worker/reducer shells prove supported and historical target routing, harness restoration, no fallback after failures, and success-only evidence.
  • Combined touched workflow/receipt suite: 687 passed; the sole failure was missing zip in 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.
  • Both new partition cases fail on base production, and pass with the stage selector.
  • Canonical scripts/root-tooling TypeScript, targeted production and test lint, formatting, pinned actionlint/zizmor, full docs checks and git diff --check passed. Net +237 test lines stays within the unchanged 400-line allowance.
  • No receipt schema or npm-prepared-bundle production changes; existing verification tests retained.
  • The first exact-head CI exposed TS2488 in the new check trace: managed-runner arguments are optional in its public type. Reproduced with 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).
  • ClawSweeper completed the original f8da26a review 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M labels Nov 15, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The command rejects --stage as an unknown argument.
  • After: The command runs the canonical lint and formatting checks.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch preserves the relevant contracts and has no actionable findings; confidence is supported by harness evidence while hosted performance remains unmeasured and exact-head CI continues.
Proof confidence 🦐 gold shrimp (3/6) This developer-tooling and CI change has scheduler trace and extracted-shell coverage for partitioning, historical targets, failures, restoration, and sealing; a complete hosted overlap measurement is not claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Release operators wait for independent npm source-check stages to finish serially.
Reason: Maintainer authorship supplies direction approval, and the measured serial workload supports a bounded partition while its extra setup and unmeasured queue effects are explicitly acknowledged.

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
Reviewed head: 5b70b7b47de41a8d5cbd6d5bbd0f97c54cf1482f

Before merge

None.

Findings

None.

Agent review details

How this fits together

Npm 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +242, Docs +14, Config +41, Other +25. Total +322 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 250 8 +242
Docs 1 14 0 +14
Config 1 46 5 +41
Generated 0 0 0 0
Other 1 33 8 +25
Total 9 343 21 +322

Preflight source

Source 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

Metric Value Why it matters
CLI selection 1 new repeatable flag --stage selects four existing canonical stages without introducing a second command inventory.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a useful release-validation throughput improvement with no installed-product behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-15T22:56:36.921Z sha f8da26a :: needs maintainer review before merge. :: none

Reviewed November 15, 2026, 6:07 PM ET / 23:07 UTC (Revision 2).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 15, 2026
@RomneyDa
RomneyDa merged commit 7de4434 into main Nov 15, 2026
109 of 110 checks passed
@RomneyDa
RomneyDa deleted the openclaw/frv-npm-source-stages-20261115 branch November 15, 2026 23:48
RomneyDa added a commit that referenced this pull request Nov 16, 2026
* 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]>
RomneyDa added a commit that referenced this pull request Nov 16, 2026
…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]>
RomneyDa added a commit that referenced this pull request Nov 16, 2026
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]>
RomneyDa added a commit that referenced this pull request Nov 16, 2026
* 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.
RomneyDa added a commit that referenced this pull request Nov 16, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
* perf(ci): overlap independent npm source checks

* test(ci): require arguments in check stage traces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant