Repository navigation
test: wait until the copied binary can be run - #11
Merged
Merged
Conversation
On Linux a test on another thread can start a process while the copy is still open for writing, and running it then fails with "Text file busy". This failed CI on the 0.3.0 release commit and passed on a rerun. 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.
The update tests copy the built binary and run the copy. On Linux, a test on another thread can start a process while that copy is still open for writing; the new process holds it open until it execs, and running the copy in that window fails with "Text file busy".
This failed the Linux test job on the 0.3.0 release commit (
install::an_attestation_for_another_archive_is_not_accepted) and passed on a rerun.copy_of_binarynow retries--versionon the copy until it runs. Nothing opens the copy for writing after that, so the later runs in each test are safe.I could not reproduce the failure on macOS, where this error does not occur, so the evidence that it is fixed is the reasoning above plus Linux CI staying green.
🤖 Generated with Claude Code