fix(ci): upgrade android-actions/setup-android from v2 to v3#169
Conversation
v2 fails to accept new Android SDK license agreements (GoogleTV and XR emulator licenses) on Ubicloud runners that lack pre-accepted licenses. v3 handles license acceptance more robustly via piped input. Fixes the Build apk/aab job failure on master.
Greptile SummaryThis PR fixes a broken
Confidence Score: 5/5Safe to merge — the change is a targeted action version bump with a well-understood behavioral difference addressed by the added ANDROID_AVD_HOME setup. All four version bumps are mechanical and address a concrete, actively failing CI step. The only non-trivial change — explicit ANDROID_AVD_HOME pinning in the emulator step — correctly accounts for v3 dropping ANDROID_SDK_HOME, uses the standard default path, and persists the variable properly via GITHUB_ENV for downstream steps. No logic is altered in any build or test path. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "fix(ci): pin ANDROID_AVD_HOME for setup-..." | Re-trigger Greptile |
android-actions/setup-android@v3 no longer sets ANDROID_SDK_HOME (deprecated by Google), which caused avdmanager to write the AVD to a location the emulator binary couldn't find. Explicitly set ANDROID_AVD_HOME=$HOME/.android/avd before running avdmanager and persist it to GITHUB_ENV for the Start emulator step. Also adds ls verification so future failures show the AVD directory state.
|
Previous CI run failed on Start Android emulator with: Root cause: Fix (ee36f8c): explicitly set New CI run queued: https://github.com/ActivityWatch/aw-android/actions/runs/28541646552 |
|
@greptileai review |
|
CI is now fully green: all 4 jobs passing including E2E tests on Pixel_API_27_AOSP emulator ✓. Greptile score 5/5 on the latest commit. Ready for merge. |
Summary
android-actions/setup-android@v2to@v3in.github/workflows/build.ymlRoot Cause
The
build-apkjob (running on Ubicloud Ubuntu 24.04 runners) has been failing since ~10:30 UTC today at the "Set up Android SDK" step with errors about unaccepted Google SDK licenses (GoogleTV and Android XR):@v3ofandroid-actions/setup-androidproperly handles the acceptance of new SDK component licenses that were added since@v2.The
testjob wasn't failing because it runs onubuntu-22.04which has Android SDK pre-installed with the old licenses pre-accepted.Test Plan
build-apk,build-aab,test,test-e2e