pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/bazelbuild/bazel/pull/28867

ssets/global-94620c216484da1f.css" /> Add --test_sharding_strategy=only=N to run single shard by keith · Pull Request #28867 · bazelbuild/bazel · GitHub
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
@pauldraper
Copy link
Contributor

Like it, but it is mutually exclusive with --test_sharding_strategy=forced=k.

Ideally I could specify both.

@keith
Copy link
Member Author

keith commented Mar 4, 2026

i thought about that a bit when implementing this but it seemed a bit complex. what's the case where you'd want both?

@pauldraper
Copy link
Contributor

what's the case where you'd want both?

First imagine the use case you'd want forced.

Then say you want to run just one shard. :)


I don't use forced, so I cannot give a personal example.

@keith
Copy link
Member Author

keith commented Mar 5, 2026

unless we have a common example I don't think it's worth adding a separate flag for that

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

3 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy