ci: migrate Instrumentation tests to ubuntu-latest with KVM + AVD cache#1051
Open
joaodordio wants to merge 1 commit intomasterfrom
Open
ci: migrate Instrumentation tests to ubuntu-latest with KVM + AVD cache#1051joaodordio wants to merge 1 commit intomasterfrom
joaodordio wants to merge 1 commit intomasterfrom
Conversation
Move the required `Instrumentation tests` job off the flaky `macos-15-intel` runner. KVM-accelerated `ubuntu-latest` is the official `android-emulator-runner` recommendation, runs ~3x faster, and is dramatically more stable than the deprecating Intel mac fleet that has been failing this required check on master. - Bump `reactivecircus/android-emulator-runner` v2.30.1 -> v2.34.0 - Switch to API 29 x86_64 (better-supported image than legacy API 28 x86) - Add AVD cache + warm-up step to cut cold-start time - Pin all action SHAs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The required
Instrumentation testscheck has been flaking onmacos-15-intelrunners — see #1049, where the emulator never reached port 5554 and the job died in 32s during AVD/system-image setup. Master'sBuild and Testworkflow shows the same job intermittently red across recent merges. GitHub is also winding down the Intel mac fleet.What
ubuntu-latestwith nested-virtualization KVM enabled. This is the path officially recommended byreactivecircus/android-emulator-runner.v2.30.1→v2.34.0(still pinned to commit SHA).api-level: 29+arch: x86_64(better supported than the legacy API 28 x86 image, especially with newer SDK manager versions).actions/cachefor the AVD plus a warm-up step that creates the snapshot once and caches it. Subsequent runs reuse it and skip cold AVD creation.-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim) so behavior is reproducible.Expected wins
Risk / regressions to watch
iterableapi:connectedCheckthat asserts onBuild.VERSION.SDK_INT == 28or relies on permission semantics that changed in P→Q (e.g., scoped storage onset, foreground service tweaks) will need a tweak. Worth a grep before merge.avd-29-x86_64-v1— bump the suffix any time we changeapi-level,arch,target, or system-image version, otherwise stale snapshots.api-levelstrings now allowed,system-image-api-levelknob added, automotive/desktop targets supported. Nothing that should affect a stockdefaultx86_64 setup, but flagged for completeness.gradle/actions/setup-gradle(used implicitly by the action) caching collisions. Should be a non-issue since we don't use it explicitly here, but keep an eye out if future jobs add it.iterableapi:connectedCheck, but if any test shells out or reads/System/Library/...-style paths it would break. Unit tests onubuntu-latestalready pass green, soiterableapiitself is portable.Test plan
Instrumentation testsjob on Ubuntu and goes green.Made with Cursor