Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around Bash buffering bug causing test failures #766

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

dzuelke
Copy link
Contributor

@dzuelke dzuelke commented Nov 22, 2024

The boot tests run several iterations inside a single heroku run, as this drastically reduces the overall time taken for tests.

Some Bash 5.0 bug (it seems to happen only on heroku-20) causes output from a command (that is still running through a tee process substitution) to arrive a bit after the next echo statement, and as a result, sometimes, the last line of a delimited chunk is not the exit status, but output from the program, causing the test to fail.

So we just write outputs to files, and cat them together at the end.

GUS-W-17294876

The boot tests run several iterations inside a single 'heroku run', as rthis drastically reduces the overall time taken for tests.

Some Bash 5.0 bug (it seems to happen only on heroku-20) causes output from a command (that is still running through a tee process substitution) to arrive a bit after the next echo statement, and as a result, sometimes, the last line of a delimited chunk is not the exit status, but output from the program, causing the test to fail.

So we just write outputs to files, and cat them together at the end.
@dzuelke dzuelke requested a review from a team as a code owner November 22, 2024 03:10
@dzuelke dzuelke merged commit ba38c2a into main Nov 22, 2024
7 checks passed
@dzuelke dzuelke deleted the boot-test-race-workaround branch November 22, 2024 04:36
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.

2 participants