mirror of
https://github.com/openai/codex.git
synced 2026-10-26 18:38:47 +00:00
## Why The macOS startup symlink test applies its own Seatbelt policy, which cannot run inside Bazel's sandbox. ## What changed - Tag the TUI Bazel tests with `no-sandbox` so the startup test can install its policy. - Verify that the mocked write tool reports a successful exit before checking the file written through the symlink. GitOrigin-RevId: c12eb00f995985fccc053765399fbb0eb7ce70d9
26 lines
699 B
Python
26 lines
699 B
Python
load("//:defs.bzl", "MACOS_WEBRTC_RUSTC_LINK_FLAGS", "codex_rust_crate")
|
|
|
|
codex_rust_crate(
|
|
name = "tui",
|
|
compile_data = glob([
|
|
"assets/**",
|
|
"frames/**",
|
|
]),
|
|
crate_name = "codex_tui",
|
|
extra_binaries = [
|
|
"//codex-rs/cli:codex",
|
|
],
|
|
integration_compile_data_extra = ["src/test_backend.rs"],
|
|
rustc_flags_extra = MACOS_WEBRTC_RUSTC_LINK_FLAGS,
|
|
test_data_extra = glob([
|
|
"src/**/*.rs",
|
|
"src/**/snapshots/**",
|
|
"tests/fixtures/**",
|
|
]),
|
|
test_shard_counts = {
|
|
"tui-unit-tests": 8,
|
|
},
|
|
# The startup symlink test applies its own Seatbelt policy, which cannot be nested.
|
|
test_tags = ["no-sandbox"],
|
|
)
|