Skip to content

Fix CI: bump setup-android to v3 - #189

Merged
adimiz1 merged 4 commits into
masterfrom
fix/ci-setup-android-v3
Oct 7, 2026
Merged

adimiz1 merged 4 commits into
masterfrom
fix/ci-setup-android-v3

Conversation

@adimiz1

@adimiz1 adimiz1 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Jira: VIDEO-21269

Summary

CI has been red since the last green run on master (2026-06-14), with no repo changes — the runner toolchain moved under us. Two independent breakages:

1. SDK setup fails — Warning: Failed to find package 'tools' → sdkmanager exit 1.

  • android-actions/setup-android defaults its packages input to 'tools platform-tools' (v2 and v3); the legacy tools package has been removed from the SDK repository. Bump to @v3 with packages: 'platform-tools'.
  • Remove the explicit ./sdkmanager "tools" in "Install Android SDK components".

2. Emulator never starts, job hangs — Unknown AVD name [test].

  • Current avdmanager writes AVDs to ~/.config/.android/avd, but emulator 37.x looks in ~/.android/avd. Set ANDROID_AVD_HOME so both agree.
  • The emulator ran in the background with output discarded, and adb wait-for-device had no timeout, so the failure showed up as a silent hang (up to 6h). Emulator output now goes to emulator.log, "Wait for emulator" has timeout-minutes: 10, and a failure-only step prints the log.

Also:

  • System image google_apis;x86 → x86_64; emulator flags -no-snapshot -gpu swiftshader_indirect.
  • actions/checkout / actions/setup-java v3 → v4; distribution: adopt → temurin (deprecated).

No SDK code changes.

Test plan

  • CI green on this PR (push + pull_request runs on a189c39): SDK setup, emulator boot (API 30 x86_64), and full connectedCheck pass

🤖 Generated with Claude Code

adimiz1 and others added 2 commits October 7, 2026 07:44
setup-android@v2 runs `sdkmanager tools`, and the legacy `tools`
package no longer exists in the SDK repository, so the job failed at
SDK setup. Drop the explicit `tools` install for the same reason, and
bump checkout/setup-java to v4 (temurin replaces deprecated adopt).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setup-android@v3 still defaults `packages` to 'tools platform-tools'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adimiz1 and others added 2 commits October 7, 2026 08:16
The 32-bit x86 API 30 image never booted on current emulator builds and
`adb wait-for-device` had no timeout, so the job hung. Switch to
x86_64, cap the wait at 10 minutes, and print the emulator log on
failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Current avdmanager writes AVDs to ~/.config/.android/avd while the
emulator looks in ~/.android/avd ("Unknown AVD name [test]"). Set
ANDROID_AVD_HOME so both use the same directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adimiz1
adimiz1 merged commit d4d4bf1 into master Oct 7, 2026
2 checks passed
@adimiz1
adimiz1 deleted the fix/ci-setup-android-v3 branch October 7, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants