From 204389afcc09301945f0b81a418ffd6145b8dadb Mon Sep 17 00:00:00 2001 From: andrewgu-oai Date: Fri, 7 Aug 2026 17:38:43 +0000 Subject: [PATCH] Shard state unit tests under Bazel (#37478) ## Why Windows runs the state crate's database-heavy Rust tests serially within each shard. ## What changed Configure `state-unit-tests` to run across four Bazel shards. GitOrigin-RevId: f540f3c157734a2b9944bae9af554ad9dbc4a69b --- codex-rs/state/BUILD.bazel | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codex-rs/state/BUILD.bazel b/codex-rs/state/BUILD.bazel index 80537a0f7d..35a3f65d4b 100644 --- a/codex-rs/state/BUILD.bazel +++ b/codex-rs/state/BUILD.bazel @@ -11,4 +11,8 @@ codex_rust_crate( "thread_history_migrations/**", ]), crate_name = "codex_state", + test_shard_counts = { + # Windows runs database-heavy Rust tests serially within each shard. + "state-unit-tests": 4, + }, )