Skip to content

Centralize executable fixture creation to avoid Linux ETXTBSY races - #48727

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/61624158190bb1e75c27d9eb9c87a2defc147fb7
Sep 27, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/61624158190bb1e75c27d9eb9c87a2defc147fb7

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Centralize executable fixture creation to avoid Linux ETXTBSY races

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.

…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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/61624158190bb1e75c27d9eb9c87a2defc147fb7 branch from a21249d to 18344a9 Compare September 27, 2026 15:25
@copyberry
copyberry Bot merged commit 18344a9 into main Sep 27, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/61624158190bb1e75c27d9eb9c87a2defc147fb7 branch September 27, 2026 15:25
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 27, 2026
@L0GYKAL
L0GYKAL deployed to issue-triage September 27, 2026 15:59 — with GitHub Actions Active
@L0GYKAL
L0GYKAL deployed to issue-triage September 27, 2026 15:59 — with GitHub Actions Active
@L0GYKAL
L0GYKAL deployed to issue-triage September 27, 2026 15:59 — with GitHub Actions Active
@L0GYKAL
L0GYKAL deployed to issue-triage September 27, 2026 16:00 — with GitHub Actions Active
@jordanovt
jordanovt deployed to issue-triage September 27, 2026 16:01 — with GitHub Actions Active
@kerimala
kerimala deployed to issue-triage September 27, 2026 16:30 — with GitHub Actions Active
@kerimala
kerimala deployed to issue-triage September 27, 2026 16:30 — with GitHub Actions Active
@kerimala
kerimala deployed to issue-triage September 27, 2026 16:30 — with GitHub Actions Active
@kerimala
kerimala deployed to issue-triage September 27, 2026 16:31 — with GitHub Actions Active
@AfshinKI
AfshinKI deployed to issue-triage September 27, 2026 16:39 — with GitHub Actions Active
@AfshinKI
AfshinKI deployed to issue-triage September 27, 2026 16:39 — with GitHub Actions Active
@AfshinKI
AfshinKI deployed to issue-triage September 27, 2026 16:39 — with GitHub Actions Active
@kmicklas
kmicklas deployed to issue-triage September 27, 2026 16:44 — with GitHub Actions Active
@kmicklas
kmicklas deployed to issue-triage September 27, 2026 16:44 — with GitHub Actions Active
@kmicklas
kmicklas deployed to issue-triage September 27, 2026 16:44 — with GitHub Actions Active
@kmicklas
kmicklas deployed to issue-triage September 27, 2026 16:45 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 18344a97 Deployed Sep 27, 2026 by Marcos020912 via Translate non-English issue #15665
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.