Skip to content

[codex] Test process ID cleanup after spawn failure#28130

Open
anp-oai wants to merge 2 commits into
codex/existing-invariant-integration-tests-02-foreign-cwdfrom
codex/existing-invariant-integration-tests-03-spawn-failure-cleanup
Open

[codex] Test process ID cleanup after spawn failure#28130
anp-oai wants to merge 2 commits into
codex/existing-invariant-integration-tests-02-foreign-cwdfrom
codex/existing-invariant-integration-tests-03-spawn-failure-cleanup

Conversation

@anp-oai

@anp-oai anp-oai commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Protect the invariant that a failed OS process spawn does not leave its process ID reserved.

Exercise both local and real WebSocket exec backends, force a missing-executable spawn failure, then reuse the same process ID for a successful command.

Validated with the focused test and the complete exec_process integration test binary.

Comment thread codex-rs/exec-server/tests/exec_process.rs Outdated
Comment thread codex-rs/exec-server/tests/exec_process.rs Outdated
@anp-oai anp-oai marked this pull request as ready for review June 13, 2026 23:32
anp-oai added a commit that referenced this pull request Jun 13, 2026
anp-oai added a commit that referenced this pull request Jun 13, 2026
@anp-oai anp-oai force-pushed the codex/existing-invariant-integration-tests-03-spawn-failure-cleanup branch from 2834401 to 121c408 Compare June 13, 2026 23:38
@anp-oai anp-oai force-pushed the codex/existing-invariant-integration-tests-02-foreign-cwd branch from 9124860 to 45ca00b Compare June 13, 2026 23:59
anp-oai added a commit that referenced this pull request Jun 14, 2026
@anp-oai anp-oai force-pushed the codex/existing-invariant-integration-tests-03-spawn-failure-cleanup branch from 121c408 to 3abaa51 Compare June 14, 2026 00:01
@anp-oai anp-oai force-pushed the codex/existing-invariant-integration-tests-02-foreign-cwd branch from 45ca00b to cac0d13 Compare June 14, 2026 00:05
@anp-oai anp-oai force-pushed the codex/existing-invariant-integration-tests-03-spawn-failure-cleanup branch from 3abaa51 to b82fa01 Compare June 14, 2026 00:05
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