mirror of
https://github.com/openai/codex.git
synced 2026-11-18 07:00:27 +00:00
## Why Binaries that do not consume build identity should not have their cached compilations invalidated by Git revisions or build timestamps. ## What changed Add `stamped_binaries` to `codex_rust_crate`, defaulting to an empty list. Only listed binaries enable stamping and receive `STABLE_GIT_COMMIT`. Opt in `codex`, `codex-tui`, and `codex-voice-host`. GitOrigin-RevId: 9bcac29f98f20129c988f696ce5b98057be7a158
27 lines
737 B
Python
27 lines
737 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,
|
|
stamped_binaries = ["codex-tui"],
|
|
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"],
|
|
)
|