#3224
Stabilize randomized Bazel shards
Description
Catch2 defaults to randomized test order, but Bazel does not set TEST_RANDOM_SEED for ordinary sharding. Independent shard processes can therefore select overlapping cases and omit others.
When Bazel enables multiple shards, use declaration order only if the requested order is randomized. Preserve --order=decl and --order=lex, which already have stable membership, and leave non-sharded runs unchanged. Explicitly seeded random order is also replaced by this fallback.
GitHub Issues
None.
Activity
3horenmarrequested changes7d ago
No. Move the check downwards and account for cases where the RNG seed is properly set.
Codecov Report
:x: Patch coverage is
0%with2 linesin your changes missing coverage. Please review. :white_check_mark: Project coverage is 91.16%. Comparing base (0809213) to head (5f768cf).Additional details and impacted files
:rocket: New features to boost your workflow: