Files
codex/codex-rs/tui/BUILD.bazel
T
jif 9d253c885c Make the TUI symlink startup test Bazel-compatible (#42741)
## 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
2026-09-04 11:43:37 +00:00

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"],
)