Skip to content

test: wait until the copied binary can be run - #11

Merged
kevin1024 merged 1 commit into
mainfrom
fix/flaky-update-test
Nov 13, 2026
Merged

kevin1024 merged 1 commit into
mainfrom
fix/flaky-update-test

Conversation

@kevin1024

Copy link
Copy Markdown
Member

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_binary now retries --version on 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

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>
@kevin1024
kevin1024 merged commit 5e010ea into main Nov 13, 2026
10 checks passed
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