Unverified Commit 8b6277e6 authored by godofredoc's avatar godofredoc Committed by GitHub

Move analysis test to shard tests. (#139161)

This is part of the effort to deprecated adhoc tests.

Bug: https://github.com/flutter/flutter/issues/139153
parent a49ee534
...@@ -242,13 +242,12 @@ platform_properties: ...@@ -242,13 +242,12 @@ platform_properties:
targets: targets:
- name: Linux analyze - name: Linux analyze
recipe: flutter/flutter recipe: flutter/flutter_drone
timeout: 60 timeout: 60
properties: properties:
shard: analyze
tags: > tags: >
["framework","hostonly","linux"] ["framework","hostonly","shard","linux"]
validation: analyze
validation_name: Analyze
- name: Linux analyzer_benchmark - name: Linux analyzer_benchmark
recipe: devicelab/devicelab_drone recipe: devicelab/devicelab_drone
...@@ -2948,14 +2947,13 @@ targets: ...@@ -2948,14 +2947,13 @@ targets:
- name: Staging_build_linux analyze - name: Staging_build_linux analyze
presubmit: false presubmit: false
bringup: true bringup: true
recipe: flutter/flutter recipe: flutter/flutter_drone
timeout: 60 timeout: 60
properties: properties:
shard: analyze
ignore_flakiness: "true" ignore_flakiness: "true"
tags: > tags: >
["framework","hostonly","linux"] ["framework","hostonly","shard","linux"]
validation: analyze
validation_name: Analyze
- name: Mac_benchmark animated_complex_opacity_perf_macos__e2e_summary - name: Mac_benchmark animated_complex_opacity_perf_macos__e2e_summary
presubmit: false presubmit: false
......
...@@ -295,8 +295,6 @@ ...@@ -295,8 +295,6 @@
/dev/devicelab/bin/tasks/windows_startup_test.dart @loic-sharma @flutter/desktop /dev/devicelab/bin/tasks/windows_startup_test.dart @loic-sharma @flutter/desktop
## Host only framework tests ## Host only framework tests
# Linux analyze
/dev/bots/analyze.dart @HansMuller @flutter/framework
# Linux docs # Linux docs
# Linux docs_test # Linux docs_test
# Linux docs_publish # Linux docs_publish
...@@ -321,6 +319,7 @@ ...@@ -321,6 +319,7 @@
# TODO(keyonghan): add files/paths for below framework host only testss. # TODO(keyonghan): add files/paths for below framework host only testss.
# https://github.com/flutter/flutter/issues/82068 # https://github.com/flutter/flutter/issues/82068
# #
# analyze @HansMuller @flutter/framework
# build_tests @eliasyishak @flutter/tool # build_tests @eliasyishak @flutter/tool
# ci_yaml flutter roller @caseyhillers @flutter/infra # ci_yaml flutter roller @caseyhillers @flutter/infra
# coverage @godofredoc @flutter/infra # coverage @godofredoc @flutter/infra
......
...@@ -264,6 +264,7 @@ Future<void> main(List<String> args) async { ...@@ -264,6 +264,7 @@ Future<void> main(List<String> args) async {
'skp_generator': _runSkpGeneratorTests, 'skp_generator': _runSkpGeneratorTests,
'realm_checker': _runRealmCheckerTest, 'realm_checker': _runRealmCheckerTest,
'customer_testing': _runCustomerTesting, 'customer_testing': _runCustomerTesting,
'analyze': _runAnalyze,
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc. kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
}); });
} catch (error, stackTrace) { } catch (error, stackTrace) {
...@@ -1588,6 +1589,19 @@ Future<void> _runCustomerTesting() async { ...@@ -1588,6 +1589,19 @@ Future<void> _runCustomerTesting() async {
); );
} }
// Runs analysis tests.
Future<void> _runAnalyze() async {
printProgress('${green}Running analysis testing$reset');
await runCommand(
'dart',
<String>[
'--enable-asserts',
path.join(flutterRoot, 'dev', 'bots', 'analyze.dart'),
],
workingDirectory: flutterRoot,
);
}
/// Runs the skp_generator from the flutter/tests repo. /// Runs the skp_generator from the flutter/tests repo.
/// ///
/// See also the customer_tests shard. /// See also the customer_tests shard.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment