diff --git a/dev/bots/test.dart b/dev/bots/test.dart index a5a8f430cf3..b0892b8bc3a 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -435,7 +435,10 @@ Future _runBuildTests() async { ], ]..shuffle(math.Random(0)); - await _selectIndexedSubshard(tests, kBuildTestShardCount); + if (!await _runShardRunnerIndexOfTotalSubshard(tests)) { + // TODO(jmagman): Remove fallback once LUCI configs are migrated to d+_d+ subshard format. + await _selectIndexedSubshard(tests, kBuildTestShardCount); + } } Future _runExampleProjectBuildTests(FileSystemEntity exampleDirectory) async {