diff --git a/.ci.yaml b/.ci.yaml index f3ce32dde2..bccef42df6 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -681,8 +681,7 @@ targets: recipe: flutter/flutter timeout: 60 properties: - validation: fuchsia_precache - validation_name: Fuchsia precache + shard: fuchsia_precache tags: > ["framework", "hostonly", "shard", "linux"] diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 4ae7f94d26..ca9362e3c6 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -265,6 +265,7 @@ Future main(List args) async { 'realm_checker': _runRealmCheckerTest, 'customer_testing': _runCustomerTesting, 'analyze': _runAnalyze, + 'fuchsia_precache': _runFuchsiaPrecache, kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc. }); } catch (error, stackTrace) { @@ -1602,6 +1603,31 @@ Future _runAnalyze() async { ); } +// Runs flutter_precache. +Future _runFuchsiaPrecache() async { + printProgress('${green}Running flutter precache tests$reset'); + await runCommand( + 'flutter', + [ + 'config', + '--enable-fuchsia', + ], + workingDirectory: flutterRoot, + ); + await runCommand( + 'flutter', + [ + 'precache', + '--flutter_runner', + '--fuchsia', + '--no-android', + '--no-ios', + '--force', + ], + workingDirectory: flutterRoot, + ); +} + /// Runs the skp_generator from the flutter/tests repo. /// /// See also the customer_tests shard.