Skip to content

[codex] Add hermetic Wine test support - #27964

Merged
anp-oai merged 2 commits into
mainfrom
codex/wine-test-support
Jun 13, 2026
Merged

[codex] Add hermetic Wine test support#27964
anp-oai merged 2 commits into
mainfrom
codex/wine-test-support

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.

We should be able to test the cross-platform interactions for exec-server, but we want to do this fairly soon and need a lightweight option for testing. Using Wine to run the Windows side is far from perfect, but it should give us a decent measure of how well we're handling the basics of paths, process spawning, shell interaction, etc.

Future changes will add actual exec-server tests and possibly extensions to the Wine testing environment.

What

To make the cross-target-triple build easy, these tests are added only to the Bazel build. This change adds an x86_64 Wine prebuilt managed by Bazel and some build rules that can set up the needed toolchain transition.

The support library for running Wine in a test environment created by the Bazel rules comes with its own basic unit and integration tests. Their primary priority is to make sure we don't leak child processes on developer machines and that we can build and launch a basic hello world binary.

Validation

Confirmed these new tests are running on the x86_64 bazel ubuntu jobs:

//bazel/rules/testing/wine:wine-smoke-test                      (cached) PASSED in 3.7s
//bazel/rules/testing/wine:wine-test-support-unit-tests         (cached) PASSED in 15.8s

@anp-oai
anp-oai marked this pull request as ready for review June 12, 2026 22:34
@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: 25d5679c78

ℹ️ 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 bazel/rules/testing/foreign_platform_binary.bzl
Comment thread bazel/rules/testing/wine/src/lib.rs Outdated
Comment thread bazel/rules/testing/wine/src/lib.rs
@anp-oai
anp-oai merged commit 5c8136f into main Jun 13, 2026
60 of 61 checks passed
@anp-oai
anp-oai deleted the codex/wine-test-support branch June 13, 2026 01:24
@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