Skip to content

bun test --parallel: do not let an import-only worker mark an executed function as uncovered - #39934

Merged
Jarred-Sumner merged 2 commits into
mainfrom
farm/5fa2b3de/parallel-coverage-merge
Aug 22, 2026
Merged

Jarred-Sumner merged 2 commits into
mainfrom
farm/5fa2b3de/parallel-coverage-merge

bun test --parallel: keep a zero-hit line only when every worker repo…

4cab3b7
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Aug 21, 2026 in 14m 6s

Code review found 1 potential issue

Found 4 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/coverage.test.ts:626-632 Test does not drain stdout pipe from spawned subprocess

Annotations

Check warning on line 632 in test/cli/test/coverage.test.ts

See this annotation in the file changed.

@claude claude / Claude Code Review

Test does not drain stdout pipe from spawned subprocess

`Bun.spawn` defaults `stdout` to `"pipe"`, but this test only drains `stderr` — either add `stdout: "ignore"` to the spawn options or include `proc.stdout.text()` in the `Promise.all`. `bun test` writes almost nothing to stdout so it won't deadlock here, but REVIEW.md's "drain pipes concurrently" rule and the CLAUDE.md test template call for draining every piped stream.