Unverified Commit 45584b25 authored by Jesús S Guerrero's avatar Jesús S Guerrero Committed by GitHub

Web subsharding (#112505)

parent cd3beb4f
...@@ -1249,7 +1249,7 @@ targets: ...@@ -1249,7 +1249,7 @@ targets:
{"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"} {"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"}
] ]
shard: web_tool_tests shard: web_tool_tests
subshard: web subshard: "1_1"
tags: > tags: >
["framework", "hostonly", "shard", "linux"] ["framework", "hostonly", "shard", "linux"]
runIf: runIf:
...@@ -3055,7 +3055,7 @@ targets: ...@@ -3055,7 +3055,7 @@ targets:
{"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"} {"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"}
] ]
shard: web_tool_tests shard: web_tool_tests
subshard: web subshard: "1_1"
tags: > tags: >
["framework", "hostonly", "shard", "mac"] ["framework", "hostonly", "shard", "mac"]
runIf: runIf:
...@@ -4291,7 +4291,8 @@ targets: ...@@ -4291,7 +4291,8 @@ targets:
- bin/** - bin/**
- .ci.yaml - .ci.yaml
- name: Windows web_tool_tests - name: Windows web_tool_tests_1_2
bringup: true
recipe: flutter/flutter_drone recipe: flutter/flutter_drone
timeout: 60 timeout: 60
properties: properties:
...@@ -4303,7 +4304,7 @@ targets: ...@@ -4303,7 +4304,7 @@ targets:
{"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"} {"dependency": "goldctl", "version": "git_revision:3a77d0b12c697a840ca0c7705208e8622dc94603"}
] ]
shard: web_tool_tests shard: web_tool_tests
subshard: web subshard: "1_2"
tags: > tags: >
["framework", "hostonly", "shard", "windows"] ["framework", "hostonly", "shard", "windows"]
runIf: runIf:
...@@ -4312,6 +4313,28 @@ targets: ...@@ -4312,6 +4313,28 @@ targets:
- bin/** - bin/**
- .ci.yaml - .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 - name: Windows windows_home_scroll_perf__timeline_summary
recipe: devicelab/devicelab_drone recipe: devicelab/devicelab_drone
timeout: 60 timeout: 60
......
...@@ -429,10 +429,18 @@ Future<void> _runCommandsToolTests() async { ...@@ -429,10 +429,18 @@ Future<void> _runCommandsToolTests() async {
} }
Future<void> _runWebToolTests() async { Future<void> _runWebToolTests() async {
final List<File> allFiles = Directory(path.join(_toolsPath, 'test', 'web.shard'))
.listSync(recursive: true).whereType<File>().toList();
final List<String> allTests = <String>[];
for (final File file in allFiles) {
if (file.path.endsWith('_test.dart')) {
allTests.add(file.path);
}
}
await _runDartTest( await _runDartTest(
_toolsPath, _toolsPath,
forceSingleCore: true, forceSingleCore: true,
testPaths: <String>[path.join('test', 'web.shard')], testPaths: _selectIndexOfTotalSubshard<String>(allTests),
includeLocalEngineEnv: true, includeLocalEngineEnv: true,
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment