Skip to content

Commit 21c2ebb

Browse files
authored
[Android] Add new tasks for subset of tests to run API 33 (flutter#4974)
Adds new tasks to create shards to run a subset of Android platform tests on API 33 AVD tests when the update to run tests on AVDs with API 34 lands due to test failures on a subset of plugins. Prequel PR to flutter#4820.
1 parent 63daefb commit 21c2ebb

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

.ci.yaml

+56
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,34 @@ targets:
380380
{"dependency": "android_virtual_device", "version": "33"}
381381
]
382382
383+
- name: Linux_android android_platform_tests_api_33_shard_1 master
384+
recipe: packages/packages
385+
timeout: 60
386+
bringup: true
387+
properties:
388+
target_file: android_platform_tests_api_33.yaml
389+
channel: master
390+
version_file: flutter_master.version
391+
package_sharding: "--shardIndex 0 --shardCount 2"
392+
dependencies: >-
393+
[
394+
{"dependency": "android_virtual_device", "version": "33"}
395+
]
396+
397+
- name: Linux_android android_platform_tests_api_33_shard_2 master
398+
recipe: packages/packages
399+
timeout: 60
400+
bringup: true
401+
properties:
402+
target_file: android_platform_tests_api_33.yaml
403+
channel: master
404+
version_file: flutter_master.version
405+
package_sharding: "--shardIndex 1 --shardCount 2"
406+
dependencies: >-
407+
[
408+
{"dependency": "android_virtual_device", "version": "33"}
409+
]
410+
383411
- name: Linux_android android_platform_tests_shard_1 stable
384412
recipe: packages/packages
385413
presubmit: false
@@ -464,6 +492,34 @@ targets:
464492
{"dependency": "android_virtual_device", "version": "33"}
465493
]
466494
495+
- name: Linux_android android_platform_tests_api_33_shard_1 stable
496+
recipe: packages/packages
497+
timeout: 60
498+
bringup: true
499+
properties:
500+
target_file: android_platform_tests_api_33.yaml
501+
channel: master
502+
version_file: flutter_stable.version
503+
package_sharding: "--shardIndex 0 --shardCount 2"
504+
dependencies: >-
505+
[
506+
{"dependency": "android_virtual_device", "version": "33"}
507+
]
508+
509+
- name: Linux_android android_platform_tests_api_33_shard_2 stable
510+
recipe: packages/packages
511+
timeout: 60
512+
bringup: true
513+
properties:
514+
target_file: android_platform_tests_api_33.yaml
515+
channel: master
516+
version_file: flutter_stable.version
517+
package_sharding: "--shardIndex 1 --shardCount 2"
518+
dependencies: >-
519+
[
520+
{"dependency": "android_virtual_device", "version": "33"}
521+
]
522+
467523
# Device versions of Android integration tests, run via FTL.
468524
# TODO(stuartmorgan): Revisit whether physical device tests are redundant once
469525
# we have more data about emulator tests; see
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Same as android_platform_tests.yaml with only packages currently requiring
2+
# Android 33 due to test failures caused by running on Android 34 AVDs.
3+
tasks:
4+
- name: prepare tool
5+
script: .ci/scripts/prepare_tool.sh
6+
infra_step: true # Note infra steps failing prevents "always" from running.
7+
- name: download Dart and Android deps
8+
script: script/tool_runner.sh
9+
infra_step: true
10+
args: ["fetch-deps", "--android", "--supporting-target-platforms-only", "--filter-packages-to=script/configs/still_requires_api_33_avd.yaml"]
11+
- name: build examples
12+
script: script/tool_runner.sh
13+
args: ["build-examples", "--apk", "--filter-packages-to=script/configs/still_requires_api_33_avd.yaml"]
14+
- name: lint
15+
script: script/tool_runner.sh
16+
args: ["lint-android", "--filter-packages-to=script/configs/still_requires_api_33_avd.yaml"]
17+
# Native unit and native integration are split into two steps to allow for
18+
# different exclusions.
19+
# TODO(stuartmorgan): Eliminate the native unit test exclusion, and combine
20+
# these steps.
21+
- name: native unit tests
22+
script: script/tool_runner.sh
23+
args: ["native-test", "--android", "--no-integration", "--filter-packages-to=script/configs/still_requires_api_33_avd.yaml"]
24+
- name: native integration tests
25+
script: script/tool_runner.sh
26+
args: ["native-test", "--android", "--no-unit", "--filter-packages-to=script/configs/still_requires_api_33_avd.yaml"]
27+
- name: drive examples
28+
script: script/tool_runner.sh
29+
args: ["drive-examples", "--android", "--filter-packages-to=script/configs/still_requires_api_33_avd.yaml"]
30+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Running the somes tests from these packages on an AVD with Android 34 causes failures.
2+
- file_selector
3+
- quick_actions
4+
- webview_flutter

0 commit comments

Comments
 (0)