Repository navigation
Linux tests: wait for a busy executable instead of failing - #83
Merged
Merged
Conversation
The archive job of the linux-v0.1.4 tag failed once with ETXTBSY: a test ran the program it had just copied while a child of another test still held the copy open for writing. The run started by hand on the same commit passed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
The archive job started by the
linux-v0.1.4tag failed once inthe_installed_layout_needs_no_settings_and_no_repositorywithExecutableFileBusy("Text file busy"): the test ran the program it had just copied while a child of another test still held the copy open for writing. The run started by hand on the same commit passed, and the published archive came from that run.finishinLinux/crates/sw-cli/tests/cli.rsnow waits up to two seconds for the file to be free. Test code only; no product code changes.Run locally
cargo test --locked -p sw-cli --test clion the Mac: 28 passed, twice.Not run
The race itself was not reproduced locally; the fix follows from the error the CI job printed.
🤖 Generated with Claude Code