Repository navigation
fix(test): select Node for built runtime recovery fixtures - #152162
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 18, 2026, 5:29 PM ET / 21:29 UTC (Revision 2). ClawSweeper reviewWhat this changesThe recovery tests explicitly select Node under Bun, using an optional executable override that preserves the shared test helper’s existing default. Merge readiness✅ Ready for maintainer review The fix remains useful: current main and the latest release still use the affected launch paths. No actionable correctness or security findings were identified, and this maintainer-authored PR is protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s built-CLI recovery tests launch isolated processes to check runtime admission and recovery. Executable selection determines whether their Node-specific preload instrumentation runs and produces meaningful assertions. flowchart TD
A[Node or Bun test runner] --> B[Existing Node resolver]
B --> C[Verified Node executable]
C --> D[Managed CLI fixture]
C --> E[Direct CLI subprocess]
D --> F[Recovery preload and assertions]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +4. Total +4 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the existing Node resolver for these Node-specific fixtures while retaining the shared helper’s default and managed process lifecycle. Do we have a high-confidence way to reproduce the issue? Yes, from source: under a Bun-hosted runner, current main’s process.execPath selects Bun for fixtures that require Node instrumentation. The body reports matching failures and successful after-fix runs; this review did not execute them. Is this the best way to solve the issue? Yes. Reusing the existing resolver at both launch boundaries fixes the fixture mismatch without duplicating discovery logic or changing other callers’ defaults. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e73121691a63. 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.
|
…n-20260918-v4 * origin/main: (81 commits) fix: retire failed setup plugins without replaying facade initialization (#152026) fix(test): select Node for built runtime recovery fixtures (#152162) refactor(auth): reuse privately assembled choice groups (#152166) fix: preserve chat media delivery and session boundaries (#152079) fix: keep stale Stop messages from canceling replacement sessions (#152116) improve(plugins): reduce mutable argument handling overhead (#152154) fix(scripts): prevent host tooling drift from blocking PR workflows (#152078) improve: reduce model capability preparation work (#152128) fix: stop marking delivered scheduled reports as failed (#152165) fix: start background context maintenance after durable turns (#151936) fix(models): avoid ambient state reads during prepared selection (#152119) feat: recover abandoned Crabbox source staging (#152006) chore(ui): refresh control ui locales (#152098) fix(ui): keep cloud startup prompts and progress in chat (#152024) fix: report completed subprocess cleanup after cancellation (#152107) perf(reply): reuse normalized inbound text (#152110) fix(cron): paused future one-shots disappear after Run now (#152126) perf(sessions): reuse rows and skip discarded terminal labels (#152109) fix(ui): keep keyboard-focused automation controls clear of sticky actions (#152135) fix(ui): load remote images in compact activity previews (#152045) ...
What Problem This Solves
Built CLI Node-recovery tests launch Bun under a Bun-hosted runner, so spoofing a Node version cannot exercise the intended Node admission and recovery paths.
User Impact
No production behavior changes. The recovery fixture now selects verified Node, while the shared instance helper keeps its existing bare
nodedefault for every caller that does not request an executable.Why This Change Was Made
Add a narrow optional executable to the existing managed CLI test operation and use the existing Node resolver at both recovery-fixture process boundaries. Keep the legacy preload, reexec arguments, environment, deadlines, and cleanup unchanged.
Evidence