Repository navigation
Centralize executable fixture creation to avoid Linux ETXTBSY races - #48727
Merged
copyberry[bot] merged 1 commit intoSep 27, 2026
Conversation
…48727) ## Why Concurrent tests can inherit writable descriptors for executable fixtures, causing `ETXTBSY` when those fixtures launch on Linux. ## What changed Expose shared `write_executable` and `copy_executable` helpers from `codex_utils_cargo_bin` and adopt them in CLI, exec-server, and MCP tests. On Linux, writes and copies complete in separate processes so sibling test spawns cannot inherit the writable descriptors. Script fixtures receive mode `0o755`, and copied executables retain their source permissions. Remove the executable-busy retry loop from the program resolver test now that its script uses the shared helper. GitOrigin-RevId: 61624158190bb1e75c27d9eb9c87a2defc147fb7
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/61624158190bb1e75c27d9eb9c87a2defc147fb7
branch
from
September 27, 2026 15:25
a21249d to
18344a9
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/61624158190bb1e75c27d9eb9c87a2defc147fb7
branch
September 27, 2026 15:25
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Centralize executable fixture creation to avoid Linux ETXTBSY races
Why
Concurrent tests can inherit writable descriptors for executable fixtures, causing
ETXTBSYwhen those fixtures launch on Linux.What changed
Expose shared
write_executableandcopy_executablehelpers fromcodex_utils_cargo_binand adopt them in CLI, exec-server, and MCP tests. On Linux, writes and copies complete in separate processes so sibling test spawns cannot inherit the writable descriptors. Script fixtures receive mode0o755, and copied executables retain their source permissions.Remove the executable-busy retry loop from the program resolver test now that its script uses the shared helper.