Skip to content

Add --test_sharding_strategy=only=N to run single shard#28867

Open
keith wants to merge 1 commit intobazelbuild:masterfrom
keith:ks/add-test_sharding_strategy-only-n-to-run-single-shard
Open

Add --test_sharding_strategy=only=N to run single shard#28867
keith wants to merge 1 commit intobazelbuild:masterfrom
keith:ks/add-test_sharding_strategy-only-n-to-run-single-shard

Conversation

@keith
Copy link
Member

@keith keith commented Mar 3, 2026

If you are iterating on a sharded test, when a single shard fails it can
be useful to rerun only that shard over and over while you fix the test.
This allows you to do that. It is indexed on the same numbers users see
in the UI.

Fixes #28819

If you are iterating on a sharded test, when a single shard fails it can
be useful to rerun only that shard over and over while you fix the test.
This allows you to do that. It is indexed on the same numbers users see
in the UI.

Fixes bazelbuild#28819
@keith keith requested a review from a team as a code owner March 3, 2026 18:10
@keith keith requested review from gregestren and removed request for a team March 3, 2026 18:10
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Mar 3, 2026
@keith keith mentioned this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test a single shard

2 participants