[flutter_tools] Update to latest dwds APIs (#51004)

Update to latest dwds APIs, moving back to dwds driven hot restart and enabling future work on expression evaluation.
This commit is contained in:
Jonah Williams
2020-03-17 17:29:53 -07:00
committed by GitHub
parent 6990b8b2d3
commit 6884086e5c
47 changed files with 372 additions and 332 deletions

View File

@@ -66,7 +66,7 @@ dependencies:
term_glyph: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
test_core: 0.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
typed_data: 1.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service: 3.0.0+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client: 0.2.6+2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher: 0.9.7+14 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
@@ -78,4 +78,4 @@ dev_dependencies:
mockito: 4.1.1
test_api: 0.2.15
# PUBSPEC CHECKSUM: 4b59
# PUBSPEC CHECKSUM: 96b5

View File

@@ -278,11 +278,15 @@ Future<void> _runToolTests() async {
final String suffix = Platform.isWindows && subshard == 'commands'
? 'permeable'
: '';
// Only linux has Chrome installed and is running web integration tests.
// See `_pubRunTest` for more information.
final bool forceSingleCore = Platform.isLinux && subshard == 'integration';
await _pubRunTest(
toolsPath,
testPaths: <String>[path.join(kTest, '$subshard$kDotShard', suffix)],
tableData: bigqueryApi?.tabledata,
enableFlutterToolAsserts: true,
forceSingleCore: forceSingleCore,
);
},
);
@@ -718,6 +722,7 @@ Future<void> _pubRunTest(String workingDirectory, {
bool useBuildRunner = false,
String coverage,
bq.TabledataResourceApi tableData,
bool forceSingleCore = false,
}) async {
int cpus;
final String cpuVariable = Platform.environment['CPU']; // CPU is set in cirrus.yml
@@ -731,6 +736,11 @@ Future<void> _pubRunTest(String workingDirectory, {
} else {
cpus = 2; // Don't default to 1, otherwise we won't catch race conditions.
}
// Integration tests that depend on external processes like chrome
// can get stuck if there are multiple instances running at once.
if (forceSingleCore) {
cpus = 1;
}
final List<String> args = <String>[
'run',