mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
Make Bazel Rust tests portable across Linux environments (#63773)
## Why Some test fixtures depend on `python3` being on the host's `PATH` or on reading Rust's process arguments from a constructor. Bazel workers need a declared Python runtime, and musl does not provide those arguments to constructors. ## What changed - Put Bazel's Python 3.12 runtime on `PATH` for Linux test suites that invoke `python3`, including their Wine launchers. - Use standalone helper binaries for exec-server and sandbox fixtures on musl, and read `/proc/self/cmdline` for the MCP hook fixture. - Add launcher options for test execution tags and for routing selected Linux cases to a local companion target that shares the test binary. - Adjust test fixtures for platform differences in file creation timestamps and shell script execution. Keep cloud-config error tests pointed at their mock server after startup falls back to defaults. ## Testing Exercise marketplace upgrade negotiation at Git 2.20 and check whether the installed Git supports limiting the refs advertised by the clone. GitOrigin-RevId: 3a83cde954d52ca29d346d67488c9a25c0790614
This commit is contained in:
committed by
copyberry
parent
e1492bd86d
commit
17b00277cc
@@ -5,4 +5,6 @@ codex_rust_crate(
|
||||
compile_data = glob(["tests/fixtures/**"]),
|
||||
crate_name = "codex_http_client",
|
||||
integration_compile_data_extra = glob(["tests/fixtures/*.pem"]),
|
||||
# The scoped tracing subscribers share a process-wide callsite registry.
|
||||
unit_test_args = ["--test-threads=1"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user