Repository navigation
fix(test): preserve subprocess runtime identity - #173446
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThe PR resolves a real Node executable for npm lifecycle coverage and preserves the parent runtime in nested MCP retention tests. Example: Run the subprocess tests under Bun 1.4.3-canary.1+94f8f5ffe.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it corrects two concrete test-fixture runtime mistakes still present on main, with no introduced correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThese developer tests exercise the process execution wrapper and an ordered pair of MCP lifecycle tests; runtime selection enters through executable paths and environment variables, and subprocess results establish the assertions. flowchart TD
A[Parent test runtime] --> B[Npm lifecycle fixture]
A --> C[MCP retention fixture]
B --> D[Existing Node executable resolver]
D --> E[Real npm lifecycle child]
C --> F[Existing Vitest runtime selector]
F --> G[Ordered shared worker tests]
Technical reviewBest possible solution: Retain this focused fixture repair through the normal merge workflow. Do we have a high-confidence way to reproduce the issue? Source inspection establishes both runtime-selection mistakes; no target code was executed, and the PR explicitly avoids attributing unrelated census timeouts to them. Is this the best way to solve the issue? The patch repairs fixture inputs at their owners, reuses existing runtime helpers, strengthens executable identity checking, and preserves the original regression contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6e7781b5968f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +6. Total +6 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 Reviewed October 15, 2026, 4:30 PM ET / 20:30 UTC. |
d9f49cc to
d7e2ef6
Compare
|
Merged via squash.
|
* commit '56c315156f4542f197a2b7f727681ba3f41c21b5': (23 commits) fix(ui): remove stale Lit cleanup from model catalog tests refactor(tests): consolidate iMessage discovery checks (#173624) fix(auto-reply): retire older collect cancellation after admission fix(memory): avoid rebuilding initially empty indexes after restart (#173622) fix(test): preserve subprocess runtime identity (#173446) perf(sessions): batch transcript index reconciliation (#173620) fix(gateway): share GitHub options preparation during reconnects (#173589) perf(control-ui): open the composer model picker without list-wide work (#173275) fix: finish compile-cache cleanup after short CLI commands exit (#173603) refactor(ui): finish native shell rendering (#171554) fix: preserve standalone CLI profiles and settle Doctor shutdown (#173154) refactor: centralize agent memory host typing (#173619) fix: camera fallback picker opens away from the attachment button (#173618) refactor: deduplicate existing CI runner routing with YAML anchors (#172670) fix(ai): preserve multiline Google replies and report malformed streams (#173612) refactor(tests): remove duplicate speech policy test (#173606) refactor(ui): simplify page rendering and derivations (#173608) fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615) fix(update): wait for native Gateway ownership before restarting (#173588) test(sessions): admit schema probe fixture writes behind maintenance ...
* fix(ci): share the iOS screenshot build * fix(ci): preserve the screenshot artifact container on download * merge: integrate main for iOS screenshot workflow conflicts * style(ci): format the combined screenshot evidence changes * docs(ci): name the combined screenshot capture * fix(ios): expose screenshot simulator creation errors * Merge main at 56c3151 to include the UI test cleanup fix * commit '56c315156f4542f197a2b7f727681ba3f41c21b5': (23 commits) fix(ui): remove stale Lit cleanup from model catalog tests refactor(tests): consolidate iMessage discovery checks (#173624) fix(auto-reply): retire older collect cancellation after admission fix(memory): avoid rebuilding initially empty indexes after restart (#173622) fix(test): preserve subprocess runtime identity (#173446) perf(sessions): batch transcript index reconciliation (#173620) fix(gateway): share GitHub options preparation during reconnects (#173589) perf(control-ui): open the composer model picker without list-wide work (#173275) fix: finish compile-cache cleanup after short CLI commands exit (#173603) refactor(ui): finish native shell rendering (#171554) fix: preserve standalone CLI profiles and settle Doctor shutdown (#173154) refactor: centralize agent memory host typing (#173619) fix: camera fallback picker opens away from the attachment button (#173618) refactor: deduplicate existing CI runner routing with YAML anchors (#172670) fix(ai): preserve multiline Google replies and report malformed streams (#173612) refactor(tests): remove duplicate speech policy test (#173606) refactor(ui): simplify page rendering and derivations (#173608) fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615) fix(update): wait for native Gateway ownership before restarting (#173588) test(sessions): admit schema probe fixture writes behind maintenance ... Co-authored-by: Vincent Koc <[email protected]>
* fix(ci): share the iOS screenshot build * fix(ci): preserve the screenshot artifact container on download * merge: integrate main for iOS screenshot workflow conflicts * style(ci): format the combined screenshot evidence changes * docs(ci): name the combined screenshot capture * fix(ios): expose screenshot simulator creation errors * Merge main at a11e38b to include the UI test cleanup fix * commit 'a11e38b8bb1eb58aaf392a0eab458dbb47aad30f': (23 commits) fix(ui): remove stale Lit cleanup from model catalog tests refactor(tests): consolidate iMessage discovery checks (openclaw#173624) fix(auto-reply): retire older collect cancellation after admission fix(memory): avoid rebuilding initially empty indexes after restart (openclaw#173622) fix(test): preserve subprocess runtime identity (openclaw#173446) perf(sessions): batch transcript index reconciliation (openclaw#173620) fix(gateway): share GitHub options preparation during reconnects (openclaw#173589) perf(control-ui): open the composer model picker without list-wide work (openclaw#173275) fix: finish compile-cache cleanup after short CLI commands exit (openclaw#173603) refactor(ui): finish native shell rendering (openclaw#171554) fix: preserve standalone CLI profiles and settle Doctor shutdown (openclaw#173154) refactor: centralize agent memory host typing (openclaw#173619) fix: camera fallback picker opens away from the attachment button (openclaw#173618) refactor: deduplicate existing CI runner routing with YAML anchors (openclaw#172670) fix(ai): preserve multiline Google replies and report malformed streams (openclaw#173612) refactor(tests): remove duplicate speech policy test (openclaw#173606) refactor(ui): simplify page rendering and derivations (openclaw#173608) fix(release): Linux channel promotion fails after a withdrawn Windows companion (openclaw#173615) fix(update): wait for native Gateway ownership before restarting (openclaw#173588) test(sessions): admit schema probe fixture writes behind maintenance ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Subprocess tests lose the runtime they intend to exercise when the development suite runs on Bun.
User Impact
Developers running tests on Bun retain real Node coverage for npm lifecycle handoff, and the nested MCP retention test follows its parent runtime.
Why This Change Was Made
Both changes address test runtime assumptions (bucket 2):
src/process/exec.test.tsusedprocess.execPathas a fixture namednodeand compared the child's version to its parent. Under Bun, that tested Bun while claiming to test Node. Resolve a real Node executable with the existing test helper and assert that npm's lifecycle child uses its canonical executable path. Keep the conflicting PATH sentinel assertion.src/agents/agent-bundle-mcp-retention.test.tsremoved everyOPENCLAW_VITEST*variable. A Node parent consequently launched default Bun, and an isolated Bun child could stage another runtime. Restore the actual parent runtime and pass its exact Bun executable to the nested run. Keep the shared-worker retention and ordering assertions unchanged.The npm census timeout did not reproduce in isolation; the incorrect executable fixture was established directly from its setup. The original retention Node comparison visibly selected and staged Bun before its nested watchdog failure. These changes correct those fixtures without asserting that every census timeout had the same cause.
Production LOC: +0 / -0. Test LOC: +9 / -3 (net +6). No timeout increases or runtime skips.
Evidence
Both touched files pass together, with all 34 outer tests passing on each runtime. The retention test also verifies both nested files and their ordering.
1.4.3-canary.1+94f8f5ffev26.11.1The retention file needs a real nested two-file run to prove shared-worker lifetime; its command wall includes compilation and process startup on a loaded host.
Also passed:
oxfmt --check, scopedrun-oxlint, test typechecks foragents-rootandservices, and independent Codex autoreview through P2.The separate untargeted census ended after 4h29m32s with infrastructure exit 2: 29 of 610 outer shards completed (1,878 passed / 42 failed / 31 skipped files). A tooling fixture timed out and retained an unverified cleanup claim; 581 planned shards were not run. This PR does not claim a green full suite. Other census failures, including the standalone
node:vmfork repro, are tracked separately.Exact-head CI: run 38800328083 completed successfully (8m41s total wall).
checks-node-changedpassed in 263s andchecks-node-changed-boundaryin 136s. The native exact-head watcher reported green; superseded check records were excluded.