diff --git a/engine/src/flutter/.ci.yaml b/engine/src/flutter/.ci.yaml index 9a9c5f90be..06014c67c2 100644 --- a/engine/src/flutter/.ci.yaml +++ b/engine/src/flutter/.ci.yaml @@ -56,6 +56,26 @@ targets: # local_engine schedules a bunch of other builds, so it's likely to timeout waiting for those builds to run. timeout: 180 + - name: Linux linux_android_emulator_tests + bringup: true + enabled_branches: + - master + recipe: engine_v2/engine_v2 + properties: + config_name: linux_android_emulator + dependencies: >- + [ + {"dependency": "goldctl", "version": "git_revision:720a542f6fe4f92922c3b8f0fdcc4d2ac6bb83cd"} + ] + timeout: 90 + runIf: + - DEPS + - engine/src/flutter/.ci.yaml + - engine/src/flutter/ci/builders/linux_android_emulator.json + - engine/src/flutter/lib/ui/** + - engine/src/flutter/shell/platform/android/** + - engine/src/flutter/testing/skia_gold_client/** + - name: Linux builder_cache enabled_branches: - master diff --git a/engine/src/flutter/ci/builders/linux_android_emulator_34.json b/engine/src/flutter/ci/builders/linux_android_emulator_34.json deleted file mode 100644 index 15b0841c3d..0000000000 --- a/engine/src/flutter/ci/builders/linux_android_emulator_34.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "builds": [ - { - "drone_dimensions": [ - "device_type=none", - "os=Linux", - "kvm=1", - "cores=8" - ], - "gclient_variables": { - "use_rbe": true - }, - "gn": [ - "--android", - "--android-cpu=x64", - "--no-lto", - "--rbe", - "--no-goma", - "--target-dir", - "ci/android_emulator_debug_x64" - ], - "dependencies": [ - { - "dependency": "goldctl", - "version": "git_revision:720a542f6fe4f92922c3b8f0fdcc4d2ac6bb83cd" - } - ], - "name": "ci/android_emulator_debug_x64", - "description": "Build for debug mode x64 Android emulator tests.", - "ninja": { - "config": "ci/android_emulator_debug_x64", - "targets": [ - "flutter/impeller/toolkit/android:unittests", - "flutter/shell/platform/android:flutter_shell_native_unittests" - ] - }, - "tests": [ - { - "language": "python3", - "name": "Android Unit Tests", - "test_dependencies": [ - { - "dependency": "android_virtual_device", - "version": "android_34_google_apis_x64.textpb" - }, - { - "dependency": "avd_cipd_version", - "version": "build_id:8733065022087935185" - } - ], - "contexts": [ - "android_virtual_device" - ], - "script": "flutter/testing/run_tests.py", - "parameters": [ - "--android-variant", - "ci/android_emulator_debug_x64", - "--type", - "android" - ] - }, - { - "language": "dart", - "name": "skia_gold_client/e2e_test", - "script": "flutter/testing/skia_gold_client/tool/e2e_test.dart", - "max_attempts": 1 - } - ] - }, - { - "drone_dimensions": [ - "device_type=none", - "os=Linux", - "kvm=1", - "cores=8" - ], - "gclient_variables": { - "use_rbe": true - }, - "gn": [ - "--android", - "--android-cpu=x86", - "--no-lto", - "--rbe", - "--no-goma", - "--target-dir", - "ci/android_emulator_debug_x86" - ], - "dependencies": [ - { - "dependency": "goldctl", - "version": "git_revision:720a542f6fe4f92922c3b8f0fdcc4d2ac6bb83cd" - } - ], - "name": "ci/android_emulator_debug_x86", - "description": "Build for debug mode x86 Android emulator tests.", - "ninja": { - "config": "ci/android_emulator_debug_x86", - "targets": [ - "flutter/impeller/toolkit/android:unittests", - "flutter/shell/platform/android:flutter_shell_native_unittests" - ] - }, - "tests": [ - { - "language": "python3", - "name": "Android Unit Tests (API 28)", - "test_dependencies": [ - { - "dependency": "android_virtual_device", - "version": "android_28_google_apis_x86.textpb" - }, - { - "dependency": "avd_cipd_version", - "version": "build_id:8733065022087935185" - } - ], - "contexts": [ - "android_virtual_device" - ], - "script": "flutter/testing/run_tests.py", - "parameters": [ - "--android-variant", - "ci/android_emulator_debug_x86", - "--type", - "android" - ] - } - ] - } - ] -} diff --git a/engine/src/flutter/ci/builders/linux_android_emulator_opengles_34.json b/engine/src/flutter/ci/builders/linux_android_emulator_opengles_34.json deleted file mode 100644 index 14df68d2d5..0000000000 --- a/engine/src/flutter/ci/builders/linux_android_emulator_opengles_34.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "builds": [ - { - "drone_dimensions": [ - "device_type=none", - "os=Linux", - "kvm=1", - "cores=8" - ], - "gclient_variables": { - "use_rbe": true - }, - "gn": [ - "--android", - "--android-cpu=x64", - "--no-lto", - "--rbe", - "--no-goma", - "--target-dir", - "ci/android_emulator_debug_x64" - ], - "dependencies": [ - { - "dependency": "goldctl", - "version": "git_revision:720a542f6fe4f92922c3b8f0fdcc4d2ac6bb83cd" - } - ], - "name": "ci/android_emulator_debug_x64", - "description": "Build for debug mode x64 Android emulator tests.", - "ninja": { - "config": "ci/android_emulator_debug_x64", - "targets": [ - "flutter/impeller/toolkit/android:unittests", - "flutter/shell/platform/android:flutter_shell_native_unittests" - ] - }, - "tests": [ - { - "language": "python3", - "name": "Android Unit Tests", - "test_dependencies": [ - { - "dependency": "android_virtual_device", - "version": "android_34_google_apis_x64.textpb" - }, - { - "dependency": "avd_cipd_version", - "version": "build_id:8733065022087935185" - } - ], - "contexts": [ - "android_virtual_device" - ], - "script": "flutter/testing/run_tests.py", - "parameters": [ - "--android-variant", - "ci/android_emulator_debug_x64", - "--type", - "android" - ] - }, - { - "language": "dart", - "name": "skia_gold_client/e2e_test", - "script": "flutter/testing/skia_gold_client/tool/e2e_test.dart", - "max_attempts": 1 - } - ] - } - ] -} diff --git a/engine/src/flutter/shell/platform/android/platform_view_android_unittests.cc b/engine/src/flutter/shell/platform/android/platform_view_android_unittests.cc index 52a25cf3bc..646337716e 100644 --- a/engine/src/flutter/shell/platform/android/platform_view_android_unittests.cc +++ b/engine/src/flutter/shell/platform/android/platform_view_android_unittests.cc @@ -10,7 +10,13 @@ namespace flutter { namespace testing { -TEST(AndroidPlatformView, SelectsVulkanBasedOnApiLevel) { +// TODO(matanlurey): Re-enable. +// +// This test (and the entire suite) was skipped on CI (see +// https://github.com/flutter/flutter/issues/163742) and has since bit rotted +// (we fallback to OpenGLES on emulators for performance reasons); either fix +// the test, or remove it. +TEST(AndroidPlatformView, DISABLED_SelectsVulkanBasedOnApiLevel) { Settings settings; settings.enable_software_rendering = false; settings.enable_impeller = true;