Skip to content
Prev Previous commit
Next Next commit
Move FTL tests to new bringup tasks
  • Loading branch information
stuartmorgan-g committed Jul 27, 2023
commit 8a5c80c38efed0826f09b338ce5e5ca46ef484c1
64 changes: 64 additions & 0 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,70 @@ targets:
{"dependency": "android_virtual_device", "version": "33"}
]

# Device versions of Android integration tests, run via FTL.
# TODO(stuartmorgan): Revisit whether we want these once we have more data
# about emulator tests; see https://github.com/flutter/flutter/issues/131429.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think we should be more specific for our future selves. "Revisit if physical device tests are redundant once we have more data about emulator tests;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


- name: Linux_android android_device_tests_shard_1 master
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
target_file: android_device_tests.yaml
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 0 --shardCount 6"

- name: Linux_android android_device_tests_shard_2 master
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
target_file: android_device_tests.yaml
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 1 --shardCount 6"

- name: Linux_android android_device_tests_shard_3 master
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
target_file: android_device_tests.yaml
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 2 --shardCount 6"

- name: Linux_android android_device_tests_shard_4 master
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
target_file: android_device_tests.yaml
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 3 --shardCount 6"

- name: Linux_android android_device_tests_shard_5 master
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
target_file: android_device_tests.yaml
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 4 --shardCount 6"

- name: Linux_android android_device_tests_shard_6 master
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
target_file: android_device_tests.yaml
channel: master
version_file: flutter_master.version
package_sharding: "--shardIndex 5 --shardCount 6"

### Web tasks ###
- name: Linux_web web_build_all_packages master
recipe: packages/packages
Expand Down
17 changes: 17 additions & 0 deletions .ci/targets/android_device_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
infra_step: true # Note infra steps failing prevents "always" from running.
- name: download Dart and Android deps
script: script/tool_runner.sh
infra_step: true
args: ["fetch-deps", "--android", "--supporting-target-platforms-only"]
- name: Firebase Test Lab
script: script/tool_runner.sh
args:
- "firebase-test-lab"
- "--device"
- "model=redfin,version=30"
- "--exclude=script/configs/exclude_integration_android.yaml"
- "--project=flutter-infra-staging"
- "--results-bucket=flutter_firebase_testlab_staging"
37 changes: 14 additions & 23 deletions .ci/targets/android_platform_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,22 @@ tasks:
script: script/tool_runner.sh
infra_step: true
args: ["fetch-deps", "--android", "--supporting-target-platforms-only"]
#- name: build examples
# script: script/tool_runner.sh
# args: ["build-examples", "--apk"]
#- name: lint
# script: script/tool_runner.sh
# args: ["lint-android"]
- name: build examples
script: script/tool_runner.sh
args: ["build-examples", "--apk"]
- name: lint
script: script/tool_runner.sh
args: ["lint-android"]
# Native unit and native integration are split into two steps to allow for
# different exclusions.
# TODO(stuartmorgan): Eliminate the native unit test exclusion, and combine
# these steps.
#- name: native unit tests
# script: script/tool_runner.sh
# args: ["native-test", "--android", "--no-integration", "--exclude=script/configs/exclude_native_unit_android.yaml"]
#- name: native integration tests
# script: script/tool_runner.sh
# args: ["native-test", "--android", "--no-unit"]
#- name: drive examples - simulator
# script: script/tool_runner.sh
# args: ["drive-examples", "--android", "--exclude=script/configs/exclude_integration_android.yaml,script/configs/exclude_integration_android_emulator.yaml"]
- name: Firebase Test Lab
- name: native unit tests
script: script/tool_runner.sh
args: ["native-test", "--android", "--no-integration", "--exclude=script/configs/exclude_native_unit_android.yaml"]
- name: native integration tests
script: script/tool_runner.sh
args: ["native-test", "--android", "--no-unit"]
- name: drive examples
script: script/tool_runner.sh
args:
- "firebase-test-lab"
- "--device"
- "model=redfin,version=30"
- "--exclude=script/configs/exclude_integration_android.yaml"
- "--project=flutter-infra-staging"
- "--results-bucket=flutter_firebase_testlab_staging"
args: ["drive-examples", "--android", "--exclude=script/configs/exclude_integration_android.yaml,script/configs/exclude_integration_android_emulator.yaml"]