Skip to content

fix(hardware): drain stdin in subprocess test to prevent broken pipe flake#4161

Merged
theonlyhennygod merged 2 commits intomasterfrom
fix/flaky-subprocess-test
Mar 21, 2026
Merged

fix(hardware): drain stdin in subprocess test to prevent broken pipe flake#4161
theonlyhennygod merged 2 commits intomasterfrom
fix/flaky-subprocess-test

Conversation

@theonlyhennygod
Copy link
Copy Markdown
Collaborator

Summary

  • execute_successful_subprocess test was intermittently failing with "Broken pipe (os error 32)"
  • The test script didn't consume stdin, so SubprocessTool's stdin write raced against process exit
  • Added cat > /dev/null to drain stdin before producing output

Test plan

  • CI passes (this test specifically should no longer flake)

…flake

The test script did not consume stdin, so SubprocessTool's stdin write
raced against the process exit, causing intermittent EPIPE failures.
Add `cat > /dev/null` to drain stdin before producing output.
@theonlyhennygod theonlyhennygod merged commit a38a4d1 into master Mar 21, 2026
18 checks passed
@theonlyhennygod theonlyhennygod deleted the fix/flaky-subprocess-test branch March 21, 2026 16:19
webhive pushed a commit to webhive/zeroclaw that referenced this pull request Mar 24, 2026
…flake (zeroclaw-labs#4161)

* fix(hardware): drain stdin in subprocess test to prevent broken pipe flake

The test script did not consume stdin, so SubprocessTool's stdin write
raced against the process exit, causing intermittent EPIPE failures.
Add `cat > /dev/null` to drain stdin before producing output.

* style: format subprocess test
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