Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
15 changes: 15 additions & 0 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,21 @@ targets:
- lib/ui/**
- shell/platform/android/**

# Task to run Linux linux_android_emulator_tests on AVDs running Android 33
# instead of 34 for investigating https://github.com/flutter/flutter/issues/137947.
- name: Linux linux_android_emulator_tests_api_33
bringup: true
enabled_branches:
- main
recipe: engine_v2/engine_v2
properties:
config_name: linux_android_emulator_api_33
timeout: 60
runIf:
- .ci.yaml
- lib/ui/**
- shell/platform/android/**

- name: Linux builder_cache
enabled_branches:
- main
Expand Down
110 changes: 110 additions & 0 deletions ci/builders/linux_android_emulator_api_33.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"builds": [
{
"drone_dimensions": [
"device_type=none",
"os=Linux",
"kvm=1",
"cores=8"
],
"gn": [
"--android",
"--android-cpu=x64",
"--no-lto",
"--rbe",
"--no-goma"
],
"name": "android_debug_x64",
"ninja": {
"config": "android_debug_x64",
"targets": [
"flutter/shell/platform/android:flutter_shell_native_unittests",
"flutter/testing/scenario_app"
]
},
"tests": [
{
"language": "python3",
"name": "Android Unit Tests",
"test_dependencies": [
{
"dependency": "android_virtual_device",
"version": "33"
}
],
"contexts": [
"android_virtual_device"
],
"script": "flutter/testing/run_tests.py",
"parameters": [
"--android-variant",
"android_debug_x64",
"--type",
"android"
]
},
{
"language": "bash",
"name": "Scenario App Integration Tests",
"test_dependencies": [
{
"dependency": "android_virtual_device",
"version": "33"
}
],
"contexts": [
"android_virtual_device"
],
"script": "flutter/testing/scenario_app/run_android_tests.sh",
"parameters": [
"android_debug_x64"
]
}
]
},
{
"drone_dimensions": [
"device_type=none",
"os=Linux",
"kvm=1",
"cores=8"
],
"gn": [
"--android",
"--android-cpu=x86",
"--no-lto",
"--rbe",
"--no-goma"
],
"name": "android_debug_x86",
"ninja": {
"config": "android_debug_x86",
"targets": [
"flutter/shell/platform/android:flutter_shell_native_unittests"
]
},
"tests": [
{
"language": "python3",
"name": "Android Unit Tests (API 28)",
"test_dependencies": [
{
"dependency": "android_virtual_device",
"version": "28"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this also need to be 33 or is this meant to be 28?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's purposely 28 but we probably don't need this test for the purposes of this task so I will delete it!

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah no problem! Just making sure.

}
],
"contexts": [
"android_virtual_device"
],
"script": "flutter/testing/run_tests.py",
"parameters": [
"--android-variant",
"android_debug_x86",
"--type",
"android"
]
}
]
}
]
}