Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
cfe53fd3
Unverified
Commit
cfe53fd3
authored
Sep 21, 2020
by
godofredoc
Committed by
GitHub
Sep 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable linux and win hostonly devicelab tests. (#66085)
parent
cb232dda
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
261 additions
and
47 deletions
+261
-47
.cirrus.yml
.cirrus.yml
+2
-20
test.dart
dev/bots/test.dart
+2
-23
prod_builders.json
dev/prod_builders.json
+122
-2
try_builders.json
dev/try_builders.json
+135
-2
No files found.
.cirrus.yml
View file @
cfe53fd3
...
...
@@ -238,7 +238,7 @@ task:
<<
:
*FIREBASE_SHARD_TEMPLATE
-
name
:
web_smoke_test
only_if
:
"
changesInclude('.cirrus.yml',
'examples/hello_world/**'
,'dev/**',
'packages/flutter/**',
'packages/flutter_test/**',
'packages/flutter_tools/lib/src/test/**',
'packages/flutter_web_plugins/**',
'bin/**')
||
$CIRRUS_PR
=
=
''"
only_if
:
"
changesInclude('.cirrus.yml',
'examples/hello_world/**'
,'dev/**',
'packages/flutter/**',
'packages/flutter_test/**',
'packages/flutter_tools/lib/src/test/**',
'packages/flutter_web_plugins/**',
'bin/**')
&&
$CIRRUS_PR
!
=
''"
environment
:
# Tests Hello World with Flutter Web Engine using Flutter Driver. Should not need more resources.
CPU
:
2
...
...
@@ -314,7 +314,7 @@ task:
CPU
:
6
MEMORY
:
8G
-
name
:
hostonly_devicelab_tests-1-windows
-
name
:
hostonly_devicelab_tests-1
_last
-windows
<<
:
*WINDOWS_SHARD_TEMPLATE
environment
:
# As of December 2019, the hostonly_devicelab_tests-1-windows shard requires 4 GB RAM to
...
...
@@ -323,24 +323,6 @@ task:
CPU
:
4
MEMORY
:
6G
-
name
:
hostonly_devicelab_tests-2-windows
<<
:
*WINDOWS_SHARD_TEMPLATE
environment
:
# As of December 2019, the hostonly_devicelab_tests-2-windows shard required 2 GB RAM to
# succeed. The optimal configuration was 4 CPUs and 8 GB RAM, running in ~33 minutes.
# Less CPU or RAM ran slower, and more CPU or RAM yielded no extra gain.
CPU
:
4
MEMORY
:
8G
-
name
:
hostonly_devicelab_tests-3_last-windows
<<
:
*WINDOWS_SHARD_TEMPLATE
environment
:
# As of December 2019, the hostonly_devicelab_tests-3_last-windows shard required 6 GB RAM
# to succeed. The optimal configuration was 4 CPUs and 6 GB RAM, running in ~43 minutes.
# Less CPU or RAM ran slower, and more CPU or RAM yielded no extra gain.
CPU
:
4
MEMORY
:
6G
# MACOS SHARDS
# Mac doesn't use caches because they apparently take longer to populate and save
# than just fetching the data in the first place.
...
...
dev/bots/test.dart
View file @
cfe53fd3
...
...
@@ -59,7 +59,7 @@ final bool useFlutterTestFormatter = Platform.environment['FLUTTER_TEST_FORMATTE
///
/// WARNING: if you change this number, also change .cirrus.yml
/// and make sure it runs _all_ shards.
const
int
kDeviceLabShardCount
=
4
;
const
int
kDeviceLabShardCount
=
2
;
/// The number of Cirrus jobs that run build tests in parallel.
///
...
...
@@ -1223,15 +1223,6 @@ Future<void> _runHostOnlyDeviceLabTests() async {
// TODO(ianh): Move the tests that are not running on devicelab any more out
// of the device lab directory.
const
Map
<
String
,
String
>
kChromeVariables
=
<
String
,
String
>{
// This is required to be able to run Chrome on Cirrus and LUCI.
'CHROME_NO_SANDBOX'
:
'true'
,
// Causes Chrome to run in headless mode in environments without displays,
// such as Cirrus and LUCI. Do not use this variable when recording actual
// benchmark numbers.
'UNCALIBRATED_SMOKE_TEST'
:
'true'
,
};
// List the tests to run.
// We split these into subshards. The tests are randomly distributed into
// those subshards so as to get a uniform distribution of costs, but the
...
...
@@ -1239,23 +1230,11 @@ Future<void> _runHostOnlyDeviceLabTests() async {
final
List
<
ShardRunner
>
tests
=
<
ShardRunner
>[
// Keep this in alphabetical order.
()
=>
_runDevicelabTest
(
'build_aar_module_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_fast_start_test'
,
environment:
gradleEnvironment
),
// TODO(ianh): Fails on macOS looking for "dexdump", https://github.com/flutter/flutter/issues/42494
if
(!
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'gradle_jetifier_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_non_android_plugin_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_plugin_bundle_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_plugin_fat_apk_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_jetifier_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_plugin_light_apk_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_r8_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'module_host_with_custom_build_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'module_custom_host_app_name_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'module_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'plugin_dependencies_test'
,
environment:
gradleEnvironment
),
if
(
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'module_test_ios'
),
if
(
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'build_ios_framework_module_test'
),
if
(
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'plugin_lint_mac'
),
()
=>
_runDevicelabTest
(
'plugin_test'
,
environment:
gradleEnvironment
),
if
(
Platform
.
isLinux
)
()
=>
_runDevicelabTest
(
'web_benchmarks_html'
,
environment:
kChromeVariables
),
]..
shuffle
(
math
.
Random
(
0
));
await
_selectIndexedSubshard
(
tests
,
kDeviceLabShardCount
);
...
...
dev/prod_builders.json
View file @
cfe53fd3
...
...
@@ -6,6 +6,12 @@
"task_name"
:
"linux_analyze"
,
"flaky"
:
false
},
{
"name"
:
"Linux build_aar_module_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_build_aar_module_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux customer_testing"
,
"repo"
:
"flutter"
,
...
...
@@ -37,9 +43,75 @@
"flaky"
:
false
},
{
"name"
:
"Linux hostonly_devicelab_tests"
,
"name"
:
"Linux gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_fast_start_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux gradle_jetifier_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_jetifier_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux gradle_non_android_plugin_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_non_android_plugin_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux gradle_plugin_bundle_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_plugin_bundle_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux gradle_plugin_fat_apk_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_plugin_fat_apk_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux gradle_plugin_light_apk_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_plugin_light_apk_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux gradle_r8_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_r8_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux module_custom_host_app_name_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_module_custom_host_app_name_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux module_host_with_custom_build_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_module_host_with_custom_build_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux module_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_hostonly_devicelab_tests"
,
"task_name"
:
"linux_module_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux plugin_dependencies_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_plugin_dependencies_test"
,
"flaky"
:
false
},
{
"name"
:
"Linux plugin_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_plugin_test"
,
"flaky"
:
false
},
{
...
...
@@ -48,6 +120,12 @@
"task_name"
:
"linux_tool_tests"
,
"flaky"
:
false
},
{
"name"
:
"Linux web_benchmarks_html"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_web_benchmarks_html"
,
"flaky"
:
false
},
{
"name"
:
"Linux web_tests"
,
"repo"
:
"flutter"
,
...
...
@@ -204,6 +282,48 @@
"task_name"
:
"win_framework_tests"
,
"flaky"
:
false
},
{
"name"
:
"Windows gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_fast_start_test"
,
"flaky"
:
false
},
{
"name"
:
"Windows gradle_non_android_plugin_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_non_android_plugin_test"
,
"flaky"
:
false
},
{
"name"
:
"Windows gradle_plugin_bundle_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_plugin_bundle_test"
,
"flaky"
:
false
},
{
"name"
:
"Windows gradle_plugin_fat_apk_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_plugin_fat_apk_test"
,
"flaky"
:
false
},
{
"name"
:
"Windows gradle_r8_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_r8_test"
,
"flaky"
:
false
},
{
"name"
:
"Windows module_host_with_custom_build_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_module_host_with_custom_build_test"
,
"flaky"
:
false
},
{
"name"
:
"Windows plugin_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_plugin_test"
,
"flaky"
:
false
},
{
"name"
:
"Windows tool_tests"
,
"repo"
:
"flutter"
,
...
...
dev/try_builders.json
View file @
cfe53fd3
...
...
@@ -6,6 +6,13 @@
"task_name"
:
"linux_analyze"
,
"enabled"
:
true
},
{
"name"
:
"Linux build_aar_module_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_build_aar_module_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux customer_testing"
,
"repo"
:
"flutter"
,
...
...
@@ -39,11 +46,88 @@
"enabled"
:
true
},
{
"name"
:
"Linux
hostonly_devicelab_tests
"
,
"name"
:
"Linux
gradle_fast_start_test
"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_hostonly_devicelab_tests"
,
"task_name"
:
"linux_gradle_fast_start_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux gradle_jetifier_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_jetifier_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux gradle_non_android_plugin_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_non_android_plugin_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux gradle_plugin_bundle_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_plugin_bundle_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux gradle_plugin_fat_apk_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_plugin_fat_apk_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux gradle_plugin_light_apk_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_plugin_light_apk_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux gradle_r8_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_gradle_r8_test"
,
"enabled"
:
true
},
{
"name"
:
"Linux module_host_with_custom_build_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_module_host_with_custom_build_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux module_custom_host_app_name_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_module_custom_host_app_name_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux module_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_module_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux plugin_dependencies_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_plugin_dependencies_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux plugin_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_plugin_test"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux tool_tests"
,
"repo"
:
"flutter"
,
...
...
@@ -51,6 +135,13 @@
"enabled"
:
true
,
"run_if"
:[
"dev/"
,
"packages/flutter_tools/"
,
"bin/"
]
},
{
"name"
:
"Linux web_benchmarks_html"
,
"repo"
:
"flutter"
,
"task_name"
:
"linux_web_benchmarks_html"
,
"enabled"
:
true
,
"run_if"
:
[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Linux web_tests"
,
"repo"
:
"flutter"
,
...
...
@@ -231,6 +322,48 @@
"enabled"
:
true
,
"run_if"
:[
"dev/"
,
"packages/flutter/"
,
"packages/flutter_test/"
,
"packages/flutter_goldens/"
,
"packages/flutter_tools/lib/src/test/"
,
"bin/"
]
},
{
"name"
:
"Windows gradle_fast_start_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_fast_start_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows gradle_non_android_plugin_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_non_android_plugin_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows gradle_plugin_bundle_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_plugin_bundle_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows gradle_r8_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_r8_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows module_host_with_custom_build_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_module_host_with_custom_build_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows plugin_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_plugin_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows tool_tests"
,
"repo"
:
"flutter"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment