Skip to content

fix: make TestRunCapturesStderr resilient to bash startup noise on CI#90

Merged
blaspat merged 2 commits into
mainfrom
fix/flaky-stderr-test
Jun 23, 2026
Merged

fix: make TestRunCapturesStderr resilient to bash startup noise on CI#90
blaspat merged 2 commits into
mainfrom
fix/flaky-stderr-test

Conversation

@blaspat

@blaspat blaspat commented Jun 23, 2026

Copy link
Copy Markdown
Owner

On some CI runners, bash -i without a PTY prints startup warnings and echoes input commands to stderr. This bleeds into the first Run's stderr capture, masking the actual command output and causing an intermittent test failure.\n\nFix: Run a silent true command first to flush bash startup messages from the stderr buffer, giving the test a clean slate.\n\nPre-existing flaky test — not a regression from any PR.

blaspat added 2 commits June 23, 2026 21:53
On some CI runners, bash -i without a PTY prints startup warnings and
echoes input commands to stderr. This bleeds into the first Run's
stderr capture, masking the actual command output.

Fix: run a silent 'true' command first to flush bash startup messages
from the stderr buffer, giving the test a clean slate.

Signed-off-by: Blasius Patrick <blasius.patrick@gmail.com>
@blaspat blaspat merged commit e612d4f into main Jun 23, 2026
14 checks passed
@blaspat blaspat deleted the fix/flaky-stderr-test branch June 23, 2026 15:03
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