Repository navigation
fix(test): prevent native worker startup timeouts in extension batches - #150360
Conversation
Reuse the existing compiled-worker invocation, private bootstrap and IPC borrower in the batch runner. Verify and dispose artifacts before reporting completion or propagating signals; preserve live-source watch behavior. Keep native flags, HOME admission, failure outcomes, and all memory/voice provider choices and deadlines unchanged. Cover successful and failed native batches with two projects sharing one prepared generation. Related: #146353 Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 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 16, 2026, 7:19 PM ET / 23:19 UTC (Revision 2). ClawSweeper reviewWhat this changesThe extension test batch runner reuses prepared native workers and finishes artifact cleanup before reporting results, with regression coverage for passing and failing batches. Merge readiness✅ Ready for maintainer review This remains a useful, focused repair: current main still bypasses prepared workers for extension batches. No actionable correctness or security findings remain, and the prior review supplied no unresolved findings. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's extension test runner groups selected plugin tests into Vitest processes. Its worker lifecycle owner prepares shared compiled code, lends it to those processes, and verifies cleanup before returning their results. flowchart TD
A[Selected extension tests] --> B[Batch runner]
B --> C{Watch mode?}
C -->|Yes| D[Live source execution]
C -->|No| E[Prepared worker owner]
E --> F[Vitest batch and native workers]
F --> G[Join and verify cleanup]
G --> H[Report result or signal]
D --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +73, Other +29. Total +102 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the existing compiled-worker lifecycle consistently for finite extension batches while preserving live-source watch behavior and cleanup-before-completion ordering. Do we have a high-confidence way to reproduce the issue? Yes at the source level: current main's batch entrypoint omits the bootstrap required to borrow prepared workers. The reported timing failures were not rerun during this read-only review. Is this the best way to solve the issue? Yes. Connecting the missing caller to the existing worker owner is a narrow repair that preserves assertions and deadlines without duplicating compilation or lifecycle policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cea9c9cb7695. 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.
|
openclaw#150360) Reuse the existing compiled-worker invocation, private bootstrap and IPC borrower in the batch runner. Verify and dispose artifacts before reporting completion or propagating signals; preserve live-source watch behavior. Keep native flags, HOME admission, failure outcomes, and all memory/voice provider choices and deadlines unchanged. Cover successful and failed native batches with two projects sharing one prepared generation. Related: openclaw#146353 Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Related: #146353
What Problem This Solves
Fixes native-worker startup timeouts in grouped extension tests, whose batch runner bypassed the compiled-worker preparation used by ordinary Vitest invocations.
User Impact
No user-facing runtime behavior changes. Extension-batch tests use the existing prepared worker generation without relaxing memory/voice assertions, changing providers, or extending deadlines.
Why This Change Was Made
The batch runner now reuses the existing invocation owner, private bootstrap, and IPC borrower. It joins borrowers and verifies/disposes artifacts before reporting completion or re-raising signals. Native flags, HOME admission, failure outcomes, and source-based watch behavior are preserved. No compiler, memory-store, broker, or lease implementation is duplicated or changed.
This is a maintainer-requested follow-up to the compiled-worker ownership introduced in #146353. The fix and its relevant caller/ownership files were still unchanged on the pinned Main snapshot
6f08e4ea3c560d456f4ae1a02b0ca275bd24936e.Evidence
Matching-implementation proof on Node 24.20.0 was retained rather than replaying finished native batches or full package builds:
createBridgezero-call failure. The repaired actual owner passes those unchanged assertions.Fresh P0 autoreview of this exact Main port is scoped-clean (0.98) with no findings. Exact-head CI run 35159679177 completed successfully for
0dfaf8228cce9e43f850662adfc008aa1c9f4917; the canonical required-check rollup is green. Normal native review-artifact validation and hosted-evidenceprepare-runboth passed without changing the head or repeating full local builds. Normal commit hooks and all three human co-author trailers are preserved. Merge remains with the requesting maintainer.The historical recall-persistence timeout and three watch timeout/reset outcomes were not independently reproduced under the full hosted 135-target/22-extension load. Their unchanged tests pass locally, but no flakiness or qualification waiver is claimed. No full release qualification, live telephony/provider calls, or macOS/Windows proof was performed.