mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## 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
16 lines
374 B
Python
16 lines
374 B
Python
load("//:defs.bzl", "codex_rust_crate")
|
|
|
|
SCHEMA_FIXTURES = glob(
|
|
["schema/generated/*.json"],
|
|
allow_empty = False,
|
|
)
|
|
|
|
codex_rust_crate(
|
|
name = "hooks",
|
|
compile_data = SCHEMA_FIXTURES,
|
|
crate_name = "codex_hooks",
|
|
integration_compile_data_extra = SCHEMA_FIXTURES,
|
|
linux_python_tests = ["hooks-unit-tests"],
|
|
test_data_extra = SCHEMA_FIXTURES,
|
|
)
|