Skip to content

[3.x] Fix the flaky spawn std test - #508

Merged
GrahamCampbell merged 1 commit into
3.xfrom
fix-spawn-std-test-3.x
Nov 8, 2026
Merged

GrahamCampbell merged 1 commit into
3.xfrom
fix-spawn-std-test-3.x

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Contributor

The treats std as live while stdBuffer preserves history test starts a child that writes "early" and then writes "late" from a 25ms timer, and expects a std listener attached once "early" has arrived to receive only "late". When the test process reads the pipe late, for example on a busy runner, both writes arrive as a single chunk, so the listener receives nothing and the test fails. This mirrors the 4.x change in #507 on the 3.x branch, making the child write "late" when its stdin closes and closing stdin once the listener is attached.

@GrahamCampbell
GrahamCampbell merged commit 8425f75 into 3.x Nov 8, 2026
8 checks passed
@GrahamCampbell
GrahamCampbell deleted the fix-spawn-std-test-3.x branch November 8, 2026 18:54
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