Skip to content

bun test --parallel: act on SIGINT/SIGTERM immediately instead of at the next housekeeping timer - #39039

Closed
robobun wants to merge 4 commits into
mainfrom
farm/8e65a50c/parallel-coordinator-signal-wakeup
Closed

robobun wants to merge 4 commits into
mainfrom
farm/8e65a50c/parallel-coordinator-signal-wakeup

bun test --parallel: wake the coordinator's loop from the SIGINT/SIGT…

c41dd61
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Aug 15, 2026 in 16m 56s

Code review found 1 potential issue

Found 1 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 0
🟡 Nit 1
🟣 Pre-existing 0
Severity File:Line Issue
🟡 Nit test/cli/test/parallel.test.ts:1244-1246 New signal-latency test has no per-test timeout; may flake under debug+ASAN CI

Annotations

Check warning on line 1246 in test/cli/test/parallel.test.ts

See this annotation in the file changed.

@claude claude / Claude Code Review

New signal-latency test has no per-test timeout; may flake under debug+ASAN CI

This test has no per-test timeout, so it runs under the 5000ms default; under debug+ASAN Linux CI it plausibly exceeds that (spawn coordinator + 2 workers + poll PIDs ~1-2s, `waitForCoordinatorToPark` ~1.1-3s, kill/read/exit up to ~350ms — and `.concurrent` runs both SIGTERM/SIGINT variants at once, doubling process load). The immediately-preceding sibling test does a near-identical setup and needed `15000`; consider adding a matching explicit timeout here (e.g. `isASAN || isDebug ? 60_000 : 20_