Skip to content

[codex] Fix Windows BuildBuddy Bazel wrapper execution#25915

Merged
anp-oai merged 4 commits into
mainfrom
codex/fix-buildbuddy-bazel-wrapper-windows
Jun 2, 2026
Merged

[codex] Fix Windows BuildBuddy Bazel wrapper execution#25915
anp-oai merged 4 commits into
mainfrom
codex/fix-buildbuddy-bazel-wrapper-windows

Conversation

@anp-oai

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

Copy link
Copy Markdown
Collaborator

Why

#25156 moved Bazel CI launches into a shared Python wrapper. On Windows, launching Bazel with os.execvp can split the spaced --test_env=PATH=... argument and fail to propagate the eventual Bazel exit status, allowing jobs to pass without running tests. This reapplies the wrapper after #25909 with a Windows-safe launch path.

What changed

Use a waited subprocess.run launch on Windows while preserving os.execvp on Unix. Add a process-level regression test for spaced arguments and child exit status, and run it on Windows Bazel shard 1.

Experiment

To confirm Bazel was actually invoking tests, patch 87b61d0be6 temporarily added an intentionally failing codex-core unit test. Bazel failed on that sentinel on all three major platforms:

The sentinel was removed after collecting this evidence. Windows Bazel clippy and release verification also passed.

Validation

After removing the sentinel, just test -p codex-core no longer reported it. The local run retained two unrelated environment-specific failures.

@anp-oai anp-oai force-pushed the codex/fix-buildbuddy-bazel-wrapper-windows branch from e10633e to 87b61d0 Compare June 2, 2026 18:52
@anp-oai anp-oai force-pushed the codex/fix-buildbuddy-bazel-wrapper-windows branch from 6af0501 to 0f35529 Compare June 2, 2026 21:11
@anp-oai anp-oai marked this pull request as ready for review June 2, 2026 21:25
@anp-oai anp-oai requested a review from bolinfest June 2, 2026 21:25
@anp-oai anp-oai merged commit 6471f8b into main Jun 2, 2026
46 checks passed
@anp-oai anp-oai deleted the codex/fix-buildbuddy-bazel-wrapper-windows branch June 2, 2026 23:22
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 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