Repository navigation
test(tooling): preserve Node and terminal fixture ownership under Bun - #152187
Conversation
Keep simulated workflow and preload workers on verified Node while the test runner remains on its selected runtime. Reuse the existing PTY owner for real pnpm signal and cleanup coverage.
|
🦞👀 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, 6:04 PM ET / 22:04 UTC. ClawSweeper reviewWhat this changesThe PR makes simulated workflow workers select verified Node and routes terminal cancellation tests through OpenClaw’s shared terminal helper when tests run under Bun. Merge readiness✅ Ready for maintainer review The fixture repair remains useful on current main. No introduced correctness or security defect was found, and the maintainer-owned PR should proceed through normal review. Priority: P2 Review scores
Verification
How this fits togetherThese tooling tests exercise remote-runner cleanup and release-admission checks using isolated fixtures. Their runtime selection determines whether preloads, terminal signals, and cleanup receipts behave as intended. flowchart TD
A[Node or Bun test runner] --> B[Isolated tooling fixtures]
B --> C[Fake commands first on PATH]
C --> D[Verified Node workflow workers]
B --> E[Shared terminal helper]
E --> F[Node-owned terminal under Bun]
D --> G[Admission and cleanup assertions]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +15. Total +15 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep fixture commands ahead of verified Node on PATH and use the existing terminal owner while preserving cancellation and cleanup assertions. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the affected path: Bun-hosted fixtures inherit shim-sensitive PATH values and bypass the existing Bun-aware terminal owner. Tests were not executed during this read-only review. Is this the best way to solve the issue? Yes. Reusing the verified Node resolver and shared terminal owner fixes fixture runtime selection without adding another implementation or relaxing assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dc2b976b5b70. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…pr-149099-main-20260918 * commit '795e460278d4f8f41545dc8b4a66da1d12defd90': (1902 commits) refactor(slack): share Markdown preparation (#149129) fix(tooling): release completed PR operations with exited loaders (#152209) fix(release): allow stable npm bootstrap under an operator soak waiver (#152206) fix(daemon): avoid false restart timeouts during slow startup (#151387) feat: read agent documents from a host-owned workspace (#150584) improve(startup): skip redundant single-agent directory checks (#152192) test(ui): await board widget readiness before size reports (#152198) perf(browser): move dashboard event discovery to SQLite worker (#151952) improve(auth): reduce pauses during concurrent credential reads (#152140) improve(ui): load older chat history in smaller pages (#152093) fix(release): reject incomplete legacy npm install trees (#152186) refactor: share current-conversation binding row serialization (#152134) test(tooling): preserve Node and terminal fixture ownership under Bun (#152187) fix(sqlite): service worker admission through retained path aliases (#152190) improve: reduce CPU work for long CLI reasoning streams (#152191) chore(ui): refresh control ui locales (#152196) test(subagents): align lifecycle retries with durable completion owners (#152184) perf(gateway): defer participant maps for owned sessions (#152097) refactor(stream): share auxiliary queue overflow handling (#149282) fix(test): execute CLI fixture preloads on Node and Bun (#152076) ...
…openclaw#152187) Keep simulated workflow and preload workers on verified Node while the test runner remains on its selected runtime. Reuse the existing PTY owner for real pnpm signal and cleanup coverage.
What Problem This Solves
Bun-hosted release-admission and remote-runner fixtures inherit Bun's
nodeshim where the simulated workflow expects Node. Required preloads then do not execute, breaking cancellation receipts and receiver checks. Three terminal cases also call the native PTY package directly instead of OpenClaw's existing terminal owner.Why This Change Was Made
Put the existing verified Node directory after each fixture's fake command directory in four PATH values. Keep the outer Bun process on Bun. Route the pnpm terminal cases through the existing
spawnTerminalPtyowner, retaining real terminal input, process IDs, cancellation signals, exit results, and cleanup.No production, workflow, dependency, authorization, deadline, or assertion changes. No release is performed by these simulated workflow tests.
Evidence