bazel: shard selected rust tests

Use the merged hermeticbuild rules_rust sharding support and configure the generated core, app-server, and tui test targets that benefit from sharding for eight shards.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Michael Bolin
2026-04-15 14:57:21 -07:00
co-authored by Codex
parent 9e2fc31854
commit 94665c46ea
10 changed files with 283 additions and 167 deletions
+3
View File
@@ -19,6 +19,9 @@ codex_rust_crate(
"src/**/*.rs",
"src/**/snapshots/**",
]) + ["//codex-rs/core:model_availability_nux_fixtures"],
test_shard_counts = {
"tui-unit-tests": 8,
},
integration_compile_data_extra = ["src/test_backend.rs"],
extra_binaries = [
"//codex-rs/cli:codex",