From 0946672e548603f9e6eee3d246d581c6c38e28db Mon Sep 17 00:00:00 2001 From: Ricardo Amador <32242716+ricardoamador@users.noreply.github.com> Date: Thu, 1 Feb 2024 15:52:29 -0800 Subject: [PATCH] Refactor the linux_android targets to make use of recent changes to android virtual device params (flutter/engine#50099) Changes to use the proto.textpb config file as the version of the emulator device and show the cipd dependency version in the dependencies so devs know it can be updated. This will not pass until recipe changes have landed. *List which issues are fixed by this PR. You must list at least one issue.* Fixes https://github.com/flutter/flutter/issues/142261 *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].* [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- .../ci/builders/linux_android_emulator.json | 24 ++++++++++++++----- .../linux_android_emulator_api_33.json | 12 ++++++++-- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/engine/src/flutter/ci/builders/linux_android_emulator.json b/engine/src/flutter/ci/builders/linux_android_emulator.json index bc5217a92c..4ef64af57e 100644 --- a/engine/src/flutter/ci/builders/linux_android_emulator.json +++ b/engine/src/flutter/ci/builders/linux_android_emulator.json @@ -31,8 +31,12 @@ "name": "Android Unit Tests", "test_dependencies": [ { - "dependency": "android_virtual_device", - "version": "34" + "dependency": "android_virtual_device", + "version": "android_34_google_apis_x64.textpb" + }, + { + "dependency": "avd_cipd_version", + "version": "build_id:8759428741582061553" } ], "contexts": [ @@ -51,8 +55,12 @@ "name": "Scenario App Integration Tests", "test_dependencies": [ { - "dependency": "android_virtual_device", - "version": "34" + "dependency": "android_virtual_device", + "version": "android_34_google_apis_x64.textpb" + }, + { + "dependency": "avd_cipd_version", + "version": "build_id:8759428741582061553" } ], "contexts": [ @@ -95,8 +103,12 @@ "name": "Android Unit Tests (API 28)", "test_dependencies": [ { - "dependency": "android_virtual_device", - "version": "28" + "dependency": "android_virtual_device", + "version": "android_28_google_apis_x86.textpb" + }, + { + "dependency": "avd_cipd_version", + "version": "build_id:8759428741582061553" } ], "contexts": [ diff --git a/engine/src/flutter/ci/builders/linux_android_emulator_api_33.json b/engine/src/flutter/ci/builders/linux_android_emulator_api_33.json index e676858361..3e518f1ab4 100644 --- a/engine/src/flutter/ci/builders/linux_android_emulator_api_33.json +++ b/engine/src/flutter/ci/builders/linux_android_emulator_api_33.json @@ -32,7 +32,11 @@ "test_dependencies": [ { "dependency": "android_virtual_device", - "version": "33" + "version": "android_33_google_apis_x64.textpb" + }, + { + "dependency": "avd_cipd_version", + "version": "build_id:8759428741582061553" } ], "contexts": [ @@ -52,7 +56,11 @@ "test_dependencies": [ { "dependency": "android_virtual_device", - "version": "33" + "version": "android_33_google_apis_x64.textpb" + }, + { + "dependency": "avd_cipd_version", + "version": "build_id:8759428741582061553" } ], "contexts": [