Web subsharding (#112505)

This commit is contained in:
Jesús S Guerrero 2022-09-28 12:23:35 -07:00 committed by GitHub
parent cd3beb4f0f
commit 45584b2528
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 5 deletions

View file

@ -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

View file

@ -429,10 +429,18 @@ Future<void> _runCommandsToolTests() 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(
_toolsPath,
forceSingleCore: true,
testPaths: <String>[path.join('test', 'web.shard')],
testPaths: _selectIndexOfTotalSubshard<String>(allTests),
includeLocalEngineEnv: true,
);
}