-
Notifications
You must be signed in to change notification settings - Fork 256
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
cargo test sometimes fails with Broken pipe (os error 32)
under aarch64
#1820
Comments
13 tasks
alexcrichton
added a commit
to alexcrichton/wasm-tools
that referenced
this issue
Sep 25, 2024
Some tests were modeled as "do a thing piped into another thing" but the second command didn't actually take any input. That meant that writing the stdout of the previous command into the next command might sometimes fail if the second command finishes before the write finishes. This commit fixes the various affected tests with the now-added ability to run multiple separate commands in a single file. These failures were detected by inserting a `sleep` before writing stdin and then fixing all tests. Closes bytecodealliance#1820
Thanks for the report, and sorry for the breakage! This should be fixed in #1821 |
Oh wow, lightning fast; thanks a ton @alexcrichton! |
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 25, 2024
Some tests were modeled as "do a thing piped into another thing" but the second command didn't actually take any input. That meant that writing the stdout of the previous command into the next command might sometimes fail if the second command finishes before the write finishes. This commit fixes the various affected tests with the now-added ability to run multiple separate commands in a single file. These failures were detected by inserting a `sleep` before writing stdin and then fixing all tests. Closes #1820
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
This bug is not always reproducible, but in my environment happens around ~60% of the runs. One example of the failure:
Sometimes it's this test, sometimes it's others. Another example: NixOS/nixpkgs#341059 (comment)
What all failing tests have in common though, is that they use the tmpdir and pipe feature of the tests.
I can confirm that I could not reproduce the issue after setting
--test-threads=1
during thecargo test
execution, like:The text was updated successfully, but these errors were encountered: