Skip to content

[codex] Add hermetic Wine exec-server test - #27937

Merged
anp-oai merged 8 commits into
mainfrom
codex/wine-exec-server-test
Jun 13, 2026
Merged

[codex] Add hermetic Wine exec-server test#27937
anp-oai merged 8 commits into
mainfrom
codex/wine-exec-server-test

Conversation

@anp-oai

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

Copy link
Copy Markdown
Contributor

Why

We want to make it possible for an app-server orchestrator on one OS to control an exec-server on another host running a different OS. In practice this kinda already works if you get lucky and the two hosts have the same path format, but we mangle quite a lot of operations if either end is Windows.

This test starts exercising that interaction, although right now the initial bootstrap fails. Future changes will expand the test's assertions to match improved support.

What

Stacked on #27964. This adds a small Windows exec-server fixture and a Linux protocol smoke test using the reusable Wine harness, covering Windows environment discovery, non-TTY cmd.exe execution, output, exit status, and working directory.

Once we've got the full codex binary cross-building under Bazel we could consider moving to the real binary instead of the stripped down exec-server-only binary used here.

Comment thread bazel/rules/testing/wine/BUILD.bazel Outdated
Comment thread codex-rs/exec-server/tests/foreign-os/BUILD.bazel Outdated
Comment thread codex-rs/exec-server/tests/foreign-os/wine_windows_exec_server_test.rs Outdated
Comment thread codex-rs/exec-server/tests/foreign-os/wine_windows_exec_server_test.rs Outdated
Comment thread bazel/rules/testing/wine/src/lib.rs
Comment thread bazel/rules/testing/wine/src/lib.rs
Comment thread bazel/rules/testing/wine/src/lib.rs Outdated
Comment thread .gitignore Outdated
Comment thread bazel/rules/testing/wine/src/lib_tests.rs
Comment thread bazel/rules/testing/wine/src/lib_tests.rs
Comment thread bazel/rules/testing/wine/src/lib_tests.rs
Comment thread bazel/rules/testing/wine/src/lib_tests.rs
Comment thread bazel/rules/testing/wine.bzl Outdated
Comment thread codex-rs/exec-server/tests/foreign-os/BUILD.bazel Outdated
@anp-oai
anp-oai marked this pull request as ready for review June 12, 2026 20:56
@anp-oai

anp-oai commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89c7b9d95b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread MODULE.bazel
Comment thread MODULE.bazel
Comment thread bazel/rules/testing/wine/src/lib_tests.rs Outdated
@anp-oai
anp-oai force-pushed the codex/wine-exec-server-test branch from 89c7b9d to 78b64c6 Compare June 12, 2026 22:21
@anp-oai
anp-oai changed the base branch from main to codex/wine-test-support June 12, 2026 22:21
@anp-oai
anp-oai force-pushed the codex/wine-exec-server-test branch from 78b64c6 to 695cc3a Compare June 12, 2026 23:00
Comment thread codex-rs/exec-server/tests/foreign-os/wine_windows_exec_server_test.rs Outdated
anp-oai added a commit that referenced this pull request Jun 12, 2026
Comment thread codex-rs/exec-server/tests/foreign-os/README.md Outdated
Comment thread codex-rs/exec-server/tests/foreign-os/README.md Outdated
Comment thread codex-rs/exec-server/tests/foreign-os/README.md Outdated
Comment thread codex-rs/exec-server/tests/foreign-os/wine_windows_exec_server_test.rs Outdated
Comment thread codex-rs/exec-server/tests/foreign-os/wine_windows_exec_server_test.rs Outdated
anp-oai added a commit that referenced this pull request Jun 12, 2026
@anp-oai
anp-oai requested a review from a team as a code owner June 13, 2026 01:05
Base automatically changed from codex/wine-test-support to main June 13, 2026 01:24
@anp-oai
anp-oai force-pushed the codex/wine-exec-server-test branch from 8d9b1a1 to 573477f Compare June 13, 2026 01:34
Comment thread codex-rs/core/tests/suite/mod.rs Outdated
Comment thread codex-rs/exec-server/testing/BUILD.bazel
Comment thread codex-rs/core/tests/remote_env_windows/README.md Outdated
@anp-oai
anp-oai merged commit 9d938a4 into main Jun 13, 2026
31 checks passed
@anp-oai
anp-oai deleted the codex/wine-exec-server-test branch June 13, 2026 03:20
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 13, 2026
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.

2 participants