Files
codex/codex-rs/state/BUILD.bazel
andrewgu-oai 204389afcc 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
2026-08-07 17:49:48 +00:00

19 lines
477 B
Python

load("//:defs.bzl", "codex_rust_crate")
codex_rust_crate(
name = "state",
compile_data = glob([
"goals_migrations/**",
"logs_migrations/**",
"memory_migrations/**",
"migrations/**",
"queue_migrations/**",
"thread_history_migrations/**",
]),
crate_name = "codex_state",
test_shard_counts = {
# Windows runs database-heavy Rust tests serially within each shard.
"state-unit-tests": 4,
},
)