Skip to content

Fix the flaky spawn std test - #53

Merged
GrahamCampbell merged 1 commit into
mainfrom
fix-spawn-std-test
Nov 8, 2026
Merged

GrahamCampbell merged 1 commit into
mainfrom
fix-spawn-std-test

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 makes the child write "late" when its stdin closes, as the shouldCloseStdin test already does, and closes stdin once the listener is attached, so the second write can no longer arrive with the first. The same fix for osls is in oss-serverless/osls#507 and oss-serverless/osls#508.

@GrahamCampbell
GrahamCampbell merged commit b397ca7 into main Nov 8, 2026
4 checks passed
@GrahamCampbell
GrahamCampbell deleted the fix-spawn-std-test 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