Repository navigation
Tests: start a just-copied program again while Linux says it is busy - #7
Merged
Merged
Conversation
codex_sessions_beside_claude_code copies the fake program into place as codex and starts it at once. On Linux a process another test starts during the copy holds the new file open for writing until it runs its own program, and starting the copy then fails with "Text file busy". It did on Ubuntu CI after #6 was merged. The test now tries again for up to two seconds while the file is busy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o
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.
CI on main failed on Ubuntu after #6 was merged (run 45153565877):
codex_sessions_beside_claude_codepanicked attests/e2e.rs:521withText file busy(ETXTBSY).Cause: the test copies the fake program into place as
codexand starts it straight away. Tests run in parallel threads; a process another test starts during the copy inherits the new file's write handle until it runs its own program, and Linux refuses to run a file open for writing. A test-only race, there since 2.8.0.Fix: a
spawn_copiedhelper tries again for up to two seconds while the file is busy, and that test uses it. The other copies of the fake program (claude,zed) are only run later, by Paddock, well after the copy.Checked: clippy clean; all tests pass; the Codex test 5 times in a row.
🤖 Generated with Claude Code
https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o