From 45584b25280a66dd56f9dc1512d55ce1c6369f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20S=20Guerrero?= Date: Wed, 28 Sep 2022 12:23:35 -0700 Subject: [PATCH] Web subsharding (#112505) --- .ci.yaml | 31 +++++++++++++++++++++++++++---- dev/bots/test.dart | 10 +++++++++- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/.ci.yaml b/.ci.yaml index 6999d3bd4d..07bfb46c97 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -1249,7 +1249,7 @@ targets: {"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"} ] shard: web_tool_tests - subshard: web + subshard: "1_1" tags: > ["framework", "hostonly", "shard", "linux"] runIf: @@ -3055,7 +3055,7 @@ targets: {"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"} ] shard: web_tool_tests - subshard: web + subshard: "1_1" tags: > ["framework", "hostonly", "shard", "mac"] runIf: @@ -4291,7 +4291,8 @@ targets: - bin/** - .ci.yaml - - name: Windows web_tool_tests + - name: Windows web_tool_tests_1_2 + bringup: true recipe: flutter/flutter_drone timeout: 60 properties: @@ -4303,7 +4304,7 @@ targets: {"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"} ] shard: web_tool_tests - subshard: web + subshard: "1_2" tags: > ["framework", "hostonly", "shard", "windows"] runIf: @@ -4312,6 +4313,28 @@ targets: - bin/** - .ci.yaml + - name: Windows web_tool_tests_2_2 + bringup: true + recipe: flutter/flutter_drone + timeout: 60 + properties: + dependencies: >- + [ + {"dependency": "android_sdk", "version": "version:33v6"}, + {"dependency": "chrome_and_driver", "version": "version:96.2"}, + {"dependency": "open_jdk", "version": "version:11"}, + {"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"} + ] + shard: web_tool_tests + subshard: "2_2" + tags: > + ["framework", "hostonly", "shard"] + runIf: + - dev/** + - packages/flutter_tools/** + - bin/** + - .ci.yaml + - name: Windows windows_home_scroll_perf__timeline_summary recipe: devicelab/devicelab_drone timeout: 60 diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 3934be8fc9..c353e4a0f6 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -429,10 +429,18 @@ Future _runCommandsToolTests() async { } Future _runWebToolTests() async { + final List allFiles = Directory(path.join(_toolsPath, 'test', 'web.shard')) + .listSync(recursive: true).whereType().toList(); + final List allTests = []; + for (final File file in allFiles) { + if (file.path.endsWith('_test.dart')) { + allTests.add(file.path); + } + } await _runDartTest( _toolsPath, forceSingleCore: true, - testPaths: [path.join('test', 'web.shard')], + testPaths: _selectIndexOfTotalSubshard(allTests), includeLocalEngineEnv: true, ); }