Skip to content

test: avoid detached exec subprocesses under vitest - #12

Merged
DeanoC merged 1 commit into
mainfrom
fix/vitest-exec-detach-timeout
Feb 7, 2026
Merged

DeanoC merged 1 commit into
mainfrom
fix/vitest-exec-detach-timeout

Conversation

@DeanoC

@DeanoC DeanoC commented Feb 7, 2026

Copy link
Copy Markdown
Owner

Fixes a flaky timeout in src/agents/pi-tools.safe-bins.test.ts by ensuring exec subprocesses are not spawned detached when running under test runners (vitest/jest/NODE_ENV=test). This keeps child process lifecycle tied to the test process and prevents hangs/timeouts.\n\n- Scope: only affects runExecProcess spawn options; normal detached behavior remains in non-test environments.\n- Motivation: nightly build was failing due to a 120s test timeout in pi-tools.safe-bins.test.ts.

@DeanoC
DeanoC merged commit 701b65c into main Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant