Skip to content

Commit c8101b5

Browse files
authored
Migrate fuchsia_precache to shard tests. (#139202)
Adhoc tests are being deprecated and existing tests are being migrated to shard tests. Bug: flutter/flutter#139153
1 parent 4648f54 commit c8101b5

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.ci.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,7 @@ targets:
681681
recipe: flutter/flutter
682682
timeout: 60
683683
properties:
684-
validation: fuchsia_precache
685-
validation_name: Fuchsia precache
684+
shard: fuchsia_precache
686685
tags: >
687686
["framework", "hostonly", "shard", "linux"]
688687

dev/bots/test.dart

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ Future<void> main(List<String> args) async {
265265
'realm_checker': _runRealmCheckerTest,
266266
'customer_testing': _runCustomerTesting,
267267
'analyze': _runAnalyze,
268+
'fuchsia_precache': _runFuchsiaPrecache,
268269
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
269270
});
270271
} catch (error, stackTrace) {
@@ -1602,6 +1603,31 @@ Future<void> _runAnalyze() async {
16021603
);
16031604
}
16041605

1606+
// Runs flutter_precache.
1607+
Future<void> _runFuchsiaPrecache() async {
1608+
printProgress('${green}Running flutter precache tests$reset');
1609+
await runCommand(
1610+
'flutter',
1611+
<String>[
1612+
'config',
1613+
'--enable-fuchsia',
1614+
],
1615+
workingDirectory: flutterRoot,
1616+
);
1617+
await runCommand(
1618+
'flutter',
1619+
<String>[
1620+
'precache',
1621+
'--flutter_runner',
1622+
'--fuchsia',
1623+
'--no-android',
1624+
'--no-ios',
1625+
'--force',
1626+
],
1627+
workingDirectory: flutterRoot,
1628+
);
1629+
}
1630+
16051631
/// Runs the skp_generator from the flutter/tests repo.
16061632
///
16071633
/// See also the customer_tests shard.

0 commit comments

Comments
 (0)