mirror of
https://github.com/openai/codex.git
synced 2026-11-18 07:00:27 +00:00
Isolate Bazel build commit metadata from Rust compilation inputs (#43304)
## Why Stamped Rust binaries consume workspace status files containing build user, host, and timestamp values. These unrelated values prevent remote cache reuse when building the same commit across developers and CI workers. ## What changed Generate a compiler environment file containing only `STABLE_GIT_COMMIT` through a small stamped template action. Use it for `codex`, `codex-tui`, and `codex-voice-host`, with Rust binary stamping disabled so their build metadata input changes only when the embedded commit changes. Rename the crate macro option from `stamped_binaries` to `binaries_with_build_commit` and add `bazel_lib` for template expansion. GitOrigin-RevId: 21d0f2e3df97670a4c2cdbc3d1972cd14cc5b439
This commit is contained in:
1 parent
52e12e0cb5
commit
a51da75131
6 files changed
+29
-10
No files matched your search
@@ -2,6 +2,7 @@ load("//:defs.bzl", "MACOS_WEBRTC_RUSTC_LINK_FLAGS", "codex_rust_crate")
|
||||
|
||||
codex_rust_crate(
|
||||
name = "tui",
|
||||
binaries_with_build_commit = ["codex-tui"],
|
||||
compile_data = glob([
|
||||
"assets/**",
|
||||
"frames/**",
|
||||
@@ -12,7 +13,6 @@ codex_rust_crate(
|
||||
],
|
||||
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/**",
|
||||
|
||||
Reference in new issue
Block a user