Skip to content

Linux tests: wait for a busy executable instead of failing - #83

Merged
everettjf merged 1 commit into
mainfrom
fix-busy-executable-test
Nov 19, 2026
Merged

everettjf merged 1 commit into
mainfrom
fix-busy-executable-test

Conversation

@everettjf

Copy link
Copy Markdown
Owner

What this fixes

The archive job started by the linux-v0.1.4 tag failed once in the_installed_layout_needs_no_settings_and_no_repository with ExecutableFileBusy ("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.

finish in Linux/crates/sw-cli/tests/cli.rs now 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 cli on 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

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>
@everettjf
everettjf merged commit 27c3e30 into main Nov 19, 2026
3 of 4 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