Skip to content
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

Don't unnecessarily shard a single-run test #1738

Merged
merged 1 commit into from
Feb 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions www/common_lib.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1529,9 +1529,12 @@ function AddTestJob($location, $job, $test, $testId) {
if ($test['runs'] > 1 && substr($job, 0, 1) == '{') {
$json = json_decode($job, true);
}
for ($run = 1; $run <= $test['runs']; $run++) {
$submit_count = $test['runs'];
if (GetSetting('disable_sharding'))
$submit_count = 1;
for ($run = 1; $run <= $submit_count; $run++) {
// Submit multiple job files for a multi-run test so they can run in parallel
if (isset($json)) {
if ($submit_count > 1 && isset($json)) {
$json['run'] = $run;
$job = json_encode($json);
}
Expand Down