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
45e9f657
Unverified
Commit
45e9f657
authored
Oct 24, 2019
by
Ian Hickson
Committed by
GitHub
Oct 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENABLE_ANDROID_EMBEDDING_V2 isn't a general thing. (#43379)
parent
7526a5d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
69 deletions
+23
-69
.cirrus.yml
.cirrus.yml
+6
-50
test.dart
dev/bots/test.dart
+17
-19
No files found.
.cirrus.yml
View file @
45e9f657
...
@@ -238,23 +238,7 @@ task:
...
@@ -238,23 +238,7 @@ task:
script
:
script
:
-
dart --enable-asserts ./dev/bots/test.dart
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-3-linux
-
name
:
hostonly_devicelab_tests-3_last-linux
environment
:
# Some of the host-only devicelab tests are pretty involved and need a lot of RAM.
CPU
:
2
MEMORY
:
8G
script
:
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-4-linux
environment
:
# Some of the host-only devicelab tests are pretty involved and need a lot of RAM.
CPU
:
2
MEMORY
:
8G
script
:
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-5_last-linux
environment
:
environment
:
# Some of the host-only devicelab tests are pretty involved and need a lot of RAM.
# Some of the host-only devicelab tests are pretty involved and need a lot of RAM.
CPU
:
2
CPU
:
2
...
@@ -311,9 +295,7 @@ task:
...
@@ -311,9 +295,7 @@ task:
-
hostonly_devicelab_tests-0-linux
-
hostonly_devicelab_tests-0-linux
-
hostonly_devicelab_tests-1-linux
-
hostonly_devicelab_tests-1-linux
-
hostonly_devicelab_tests-2-linux
-
hostonly_devicelab_tests-2-linux
-
hostonly_devicelab_tests-3-linux
-
hostonly_devicelab_tests-3_last-linux
-
hostonly_devicelab_tests-4-linux
-
hostonly_devicelab_tests-5_last-linux
-
firebase_test_lab_tests-linux
-
firebase_test_lab_tests-linux
environment
:
environment
:
# As of October 2019, 1 CPU and 4G of RAM let deploy_gallery-linux finish in about 15
# As of October 2019, 1 CPU and 4G of RAM let deploy_gallery-linux finish in about 15
...
@@ -417,17 +399,7 @@ task:
...
@@ -417,17 +399,7 @@ task:
script
:
script
:
-
dart --enable-asserts ./dev/bots/test.dart
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-3-windows
-
name
:
hostonly_devicelab_tests-3_last-windows
only_if
:
"
changesInclude('.cirrus.yml',
'dev/**',
'bin/internal/**')
||
$CIRRUS_PR
==
''"
# https://github.com/flutter/flutter/issues/41941
script
:
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-4-windows
only_if
:
"
changesInclude('.cirrus.yml',
'dev/**',
'bin/internal/**')
||
$CIRRUS_PR
==
''"
# https://github.com/flutter/flutter/issues/41941
script
:
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-5_last-windows
only_if
:
"
changesInclude('.cirrus.yml',
'dev/**',
'bin/internal/**')
||
$CIRRUS_PR
==
''"
# https://github.com/flutter/flutter/issues/41941
only_if
:
"
changesInclude('.cirrus.yml',
'dev/**',
'bin/internal/**')
||
$CIRRUS_PR
==
''"
# https://github.com/flutter/flutter/issues/41941
script
:
script
:
-
dart --enable-asserts ./dev/bots/test.dart
-
dart --enable-asserts ./dev/bots/test.dart
...
@@ -543,19 +515,7 @@ task:
...
@@ -543,19 +515,7 @@ task:
-
ulimit -S -n 2048
# https://github.com/flutter/flutter/issues/2976
-
ulimit -S -n 2048
# https://github.com/flutter/flutter/issues/2976
-
dart --enable-asserts ./dev/bots/test.dart
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-3-macos
-
name
:
hostonly_devicelab_tests-3_last-macos
only_if
:
"
changesInclude('.cirrus.yml',
'dev/**',
'bin/internal/**')
||
$CIRRUS_PR
==
''"
# https://github.com/flutter/flutter/issues/41940
script
:
-
ulimit -S -n 2048
# https://github.com/flutter/flutter/issues/2976
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-4-macos
only_if
:
"
changesInclude('.cirrus.yml',
'dev/**',
'bin/internal/**')
||
$CIRRUS_PR
==
''"
# https://github.com/flutter/flutter/issues/41940
script
:
-
ulimit -S -n 2048
# https://github.com/flutter/flutter/issues/2976
-
dart --enable-asserts ./dev/bots/test.dart
-
name
:
hostonly_devicelab_tests-5_last-macos
only_if
:
"
changesInclude('.cirrus.yml',
'dev/**',
'bin/internal/**')
||
$CIRRUS_PR
==
''"
# https://github.com/flutter/flutter/issues/41940
only_if
:
"
changesInclude('.cirrus.yml',
'dev/**',
'bin/internal/**')
||
$CIRRUS_PR
==
''"
# https://github.com/flutter/flutter/issues/41940
script
:
script
:
-
ulimit -S -n 2048
# https://github.com/flutter/flutter/issues/2976
-
ulimit -S -n 2048
# https://github.com/flutter/flutter/issues/2976
...
@@ -588,9 +548,7 @@ task:
...
@@ -588,9 +548,7 @@ task:
-
hostonly_devicelab_tests-0-macos
-
hostonly_devicelab_tests-0-macos
-
hostonly_devicelab_tests-1-macos
-
hostonly_devicelab_tests-1-macos
-
hostonly_devicelab_tests-2-macos
-
hostonly_devicelab_tests-2-macos
-
hostonly_devicelab_tests-3-macos
-
hostonly_devicelab_tests-3_last-macos
-
hostonly_devicelab_tests-4-macos
-
hostonly_devicelab_tests-5_last-macos
-
firebase_test_lab_tests-linux
-
firebase_test_lab_tests-linux
environment
:
environment
:
# Apple Fastlane password.
# Apple Fastlane password.
...
@@ -622,9 +580,7 @@ docker_builder:
...
@@ -622,9 +580,7 @@ docker_builder:
-
hostonly_devicelab_tests-0-linux
-
hostonly_devicelab_tests-0-linux
-
hostonly_devicelab_tests-1-linux
-
hostonly_devicelab_tests-1-linux
-
hostonly_devicelab_tests-2-linux
-
hostonly_devicelab_tests-2-linux
-
hostonly_devicelab_tests-3-linux
-
hostonly_devicelab_tests-3_last-linux
-
hostonly_devicelab_tests-4-linux
-
hostonly_devicelab_tests-5_last-linux
-
firebase_test_lab_tests-linux
-
firebase_test_lab_tests-linux
script
:
script
:
-
"
$CIRRUS_WORKING_DIR/dev/ci/docker_linux/docker_build.sh"
-
"
$CIRRUS_WORKING_DIR/dev/ci/docker_linux/docker_build.sh"
...
...
dev/bots/test.dart
View file @
45e9f657
...
@@ -42,7 +42,7 @@ final bool canUseBuildRunner = Platform.environment['FLUTTER_TEST_NO_BUILD_RUNNE
...
@@ -42,7 +42,7 @@ final bool canUseBuildRunner = Platform.environment['FLUTTER_TEST_NO_BUILD_RUNNE
///
///
/// WARNING: if you change this number, also change .cirrus.yml
/// WARNING: if you change this number, also change .cirrus.yml
/// and make sure it runs _all_ shards.
/// and make sure it runs _all_ shards.
const
int
kDeviceLabShardCount
=
6
;
const
int
kDeviceLabShardCount
=
4
;
/// The number of Cirrus jobs that run Web tests in parallel.
/// The number of Cirrus jobs that run Web tests in parallel.
///
///
...
@@ -735,33 +735,27 @@ Future<void> _runHostOnlyDeviceLabTests() async {
...
@@ -735,33 +735,27 @@ Future<void> _runHostOnlyDeviceLabTests() async {
// seed is fixed so that issues are reproducible.
// seed is fixed so that issues are reproducible.
final
List
<
ShardRunner
>
tests
=
<
ShardRunner
>[
final
List
<
ShardRunner
>
tests
=
<
ShardRunner
>[
// Keep this in alphabetical order.
// Keep this in alphabetical order.
()
=>
_runDevicelabTest
(
'build_aar_module_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'build_aar_module_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'build_aar_module_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
if
(
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'flutter_create_offline_test_mac'
),
if
(
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'flutter_create_offline_test_mac'
),
if
(
Platform
.
isLinux
)
()
=>
_runDevicelabTest
(
'flutter_create_offline_test_linux'
),
if
(
Platform
.
isLinux
)
()
=>
_runDevicelabTest
(
'flutter_create_offline_test_linux'
),
if
(
Platform
.
isWindows
)
()
=>
_runDevicelabTest
(
'flutter_create_offline_test_windows'
),
if
(
Platform
.
isWindows
)
()
=>
_runDevicelabTest
(
'flutter_create_offline_test_windows'
),
// TODO(ianh): Fails on macOS looking for "dexdump", https://github.com/flutter/flutter/issues/42494
// TODO(ianh): Fails on macOS looking for "dexdump", https://github.com/flutter/flutter/issues/42494
if
(!
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'gradle_jetifier_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
if
(!
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'gradle_jetifier_test'
,
environment:
gradleEnvironment
),
if
(!
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'gradle_jetifier_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'gradle_non_android_plugin_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_non_android_plugin_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'gradle_plugin_bundle_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_non_android_plugin_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'gradle_plugin_fat_apk_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_plugin_bundle_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'gradle_plugin_light_apk_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_plugin_bundle_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'gradle_r8_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'gradle_plugin_fat_apk_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'gradle_plugin_fat_apk_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'gradle_plugin_light_apk_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'gradle_plugin_light_apk_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'gradle_r8_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'gradle_r8_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'module_host_with_custom_build_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'module_host_with_custom_build_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'module_host_with_custom_build_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'module_host_with_custom_build_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
()
=>
_runDevicelabTest
(
'module_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
if
(!
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'module_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'module_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
if
(!
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'module_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
// TODO(jmagman): Re-enable once flakiness is resolved, https://github.com/flutter/flutter/issues/37525
// TODO(jmagman): Re-enable once flakiness is resolved, https://github.com/flutter/flutter/issues/37525
// if (Platform.isMacOS) () => _runDevicelabTest('module_test_ios'),
// if (Platform.isMacOS) () => _runDevicelabTest('module_test_ios'),
if
(
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'plugin_lint_mac'
),
if
(
Platform
.
isMacOS
)
()
=>
_runDevicelabTest
(
'plugin_lint_mac'
),
()
=>
_runDevicelabTest
(
'plugin_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
false
),
()
=>
_runDevicelabTest
(
'plugin_test'
,
environment:
gradleEnvironment
),
()
=>
_runDevicelabTest
(
'plugin_test'
,
environment:
gradleEnvironment
,
testEmbeddingV2:
true
),
]..
shuffle
(
math
.
Random
(
0
));
]..
shuffle
(
math
.
Random
(
0
));
final
int
testsPerShard
=
tests
.
length
~/
kDeviceLabShardCount
;
final
int
testsPerShard
=
tests
.
length
~/
kDeviceLabShardCount
;
...
@@ -789,6 +783,10 @@ Future<void> _runHostOnlyDeviceLabTests() async {
...
@@ -789,6 +783,10 @@ Future<void> _runHostOnlyDeviceLabTests() async {
Future
<
void
>
_runDevicelabTest
(
String
testName
,
{
Future
<
void
>
_runDevicelabTest
(
String
testName
,
{
Map
<
String
,
String
>
environment
,
Map
<
String
,
String
>
environment
,
// testEmbeddingV2 is only supported by certain specific devicelab tests.
// Don't use it unless you're sure the test actually supports it.
// You can check by looking to see if the test examines the environment
// for the ENABLE_ANDROID_EMBEDDING_V2 variable.
bool
testEmbeddingV2
=
false
,
bool
testEmbeddingV2
=
false
,
})
async
{
})
async
{
await
runCommand
(
await
runCommand
(
...
...
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