Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b6277e

Browse files
authored
Move analysis test to shard tests. (#139161)
This is part of the effort to deprecated adhoc tests. Bug: #139153
1 parent a49ee53 commit 8b6277e

3 files changed

Lines changed: 21 additions & 10 deletions

File tree

.ci.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,12 @@ platform_properties:
242242

243243
targets:
244244
- name: Linux analyze
245-
recipe: flutter/flutter
245+
recipe: flutter/flutter_drone
246246
timeout: 60
247247
properties:
248+
shard: analyze
248249
tags: >
249-
["framework","hostonly","linux"]
250-
validation: analyze
251-
validation_name: Analyze
250+
["framework","hostonly","shard","linux"]
252251
253252
- name: Linux analyzer_benchmark
254253
recipe: devicelab/devicelab_drone
@@ -2948,14 +2947,13 @@ targets:
29482947
- name: Staging_build_linux analyze
29492948
presubmit: false
29502949
bringup: true
2951-
recipe: flutter/flutter
2950+
recipe: flutter/flutter_drone
29522951
timeout: 60
29532952
properties:
2953+
shard: analyze
29542954
ignore_flakiness: "true"
29552955
tags: >
2956-
["framework","hostonly","linux"]
2957-
validation: analyze
2958-
validation_name: Analyze
2956+
["framework","hostonly","shard","linux"]
29592957
29602958
- name: Mac_benchmark animated_complex_opacity_perf_macos__e2e_summary
29612959
presubmit: false

TESTOWNERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,6 @@
295295
/dev/devicelab/bin/tasks/windows_startup_test.dart @loic-sharma @flutter/desktop
296296

297297
## Host only framework tests
298-
# Linux analyze
299-
/dev/bots/analyze.dart @HansMuller @flutter/framework
300298
# Linux docs
301299
# Linux docs_test
302300
# Linux docs_publish
@@ -321,6 +319,7 @@
321319
# TODO(keyonghan): add files/paths for below framework host only testss.
322320
# https://github.com/flutter/flutter/issues/82068
323321
#
322+
# analyze @HansMuller @flutter/framework
324323
# build_tests @eliasyishak @flutter/tool
325324
# ci_yaml flutter roller @caseyhillers @flutter/infra
326325
# coverage @godofredoc @flutter/infra

dev/bots/test.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ Future<void> main(List<String> args) async {
264264
'skp_generator': _runSkpGeneratorTests,
265265
'realm_checker': _runRealmCheckerTest,
266266
'customer_testing': _runCustomerTesting,
267+
'analyze': _runAnalyze,
267268
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
268269
});
269270
} catch (error, stackTrace) {
@@ -1588,6 +1589,19 @@ Future<void> _runCustomerTesting() async {
15881589
);
15891590
}
15901591

1592+
// Runs analysis tests.
1593+
Future<void> _runAnalyze() async {
1594+
printProgress('${green}Running analysis testing$reset');
1595+
await runCommand(
1596+
'dart',
1597+
<String>[
1598+
'--enable-asserts',
1599+
path.join(flutterRoot, 'dev', 'bots', 'analyze.dart'),
1600+
],
1601+
workingDirectory: flutterRoot,
1602+
);
1603+
}
1604+
15911605
/// Runs the skp_generator from the flutter/tests repo.
15921606
///
15931607
/// See also the customer_tests shard.

0 commit comments

Comments
 (0)