-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
test_runner: add shards support #48639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a93fa41
3bc36b8
bf9d2e5
3663fb2
09c8734
ed19709
5e39d75
5c6ab88
d293da5
51f7697
0625b75
2e0040b
602f767
4ce4d76
b7009d7
76cfcb6
5a846d2
d4f9168
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -425,25 +425,25 @@ function run(options) { | |||||
| options = kEmptyObject; | ||||||
| } | ||||||
| let { testNamePatterns } = options; | ||||||
| const { concurrency, timeout, signal, files, inspectPort, watch, setup, shards } = options; | ||||||
| const { concurrency, timeout, signal, files, inspectPort, watch, setup, shard } = options; | ||||||
rluvaton marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| if (files != null) { | ||||||
| validateArray(files, 'options.files'); | ||||||
| } | ||||||
| if (watch != null) { | ||||||
| validateBoolean(watch, 'options.watch'); | ||||||
| } | ||||||
| if (shards != null) { | ||||||
| validateObject(shards, 'options.shards'); | ||||||
| validateNumber(shards.total, 'options.shards.total', 1); | ||||||
| validateNumber(shards.index, 'options.shards.index'); | ||||||
| if (shard != null) { | ||||||
| validateObject(shard, 'options.shard'); | ||||||
| validateNumber(shard.total, 'options.shard.total', 1); | ||||||
rluvaton marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| validateNumber(shard.index, 'options.shard.index'); | ||||||
|
||||||
| validateNumber(shard.index, 'options.shard.index'); | |
| validateInteger(shard.index, 'options.shard.index', 1, shard.total); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used the max here as the error message is not really understandable because you don't understand what's the reason for the upper limit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why would you use sharding if you need to watch all the files? watch is for active development
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You had a bug in a certain shard in CI and you want to iteratively fix it? Is there a reason not to allow it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you add a file it will change the sharding, we can add it I just think it won't be really useful
Uh oh!
There was an error while loading. Please reload this page.