Skip to content

Switch Android tests to emulator.wtf with OIDC auth#9415

Closed
yschimke wants to merge 1 commit intomasterfrom
claude/hardcore-agnesi
Closed

Switch Android tests to emulator.wtf with OIDC auth#9415
yschimke wants to merge 1 commit intomasterfrom
claude/hardcore-agnesi

Conversation

@yschimke
Copy link
Copy Markdown
Collaborator

Changes

  • CI/CD: Migrated Android emulator testing from local AVD setup to emulator.wtf cloud service with OIDC authentication

    • Removed KVM setup and verification steps
    • Removed local AVD caching logic
    • Added three separate test runs for android-test, android-test-app, and regression-test modules
    • Added emulator.wtf credentials configuration
  • Test Structure: Reorganized test source code

    • Moved instrumented tests from androidDeviceTest to androidTest source set
    • Renamed directory structure for 6 test files
    • Updated README.md with emulator.wtf setup instructions and local emulator fallback guidance
  • Configuration: Updated gradle and dependency versions

    • Added UnsupportedDeviceBehavior.Skip configuration to junitPlatform
    • Updated androidx-annotation from 1.9.1 to 1.10.0
    • Updated kotlinx-serialization from 1.10.0 to 1.11.0
    • Added required GitHub Actions permissions (contents:read, id-token:write)

Replace the local Android emulator runner (reactivecircus/android-emulator-runner)
with emulator.wtf cloud-based testing. This removes the need for KVM setup, AVD
caching, and local emulator management in CI.

- Use emulator-wtf/configure-credentials@v1 with OIDC (no secrets needed)
- Run tests for android-test, android-test-app, and regression-test separately
- Add emulator.wtf CLI instructions to android-test README
- Keep existing API level matrix (21, 23, 29, 34)
@yschimke yschimke closed this Apr 12, 2026
uses: actions/cache@v5
id: avd-cache
- name: Configure emulator.wtf credentials
uses: emulator-wtf/configure-credentials@v1
oidc-configuration-id: # TODO: add OIDC configuration ID from emulator.wtf

- name: Run android-test instrumented tests
uses: emulator-wtf/run-tests@v0
- name: Run Tests
uses: reactivecircus/android-emulator-runner@v2
- name: Run android-test-app instrumented tests
uses: emulator-wtf/run-tests@v0
outputs-dir: build/test-results/android-test-app

- name: Run regression-test instrumented tests
uses: emulator-wtf/run-tests@v0
uses: actions/cache@v5
id: avd-cache
- name: Configure emulator.wtf credentials
uses: emulator-wtf/configure-credentials@v1
oidc-configuration-id: # TODO: add OIDC configuration ID from emulator.wtf

- name: Run android-test instrumented tests
uses: emulator-wtf/run-tests@v0
- name: Run Tests
uses: reactivecircus/android-emulator-runner@v2
- name: Run android-test-app instrumented tests
uses: emulator-wtf/run-tests@v0
outputs-dir: build/test-results/android-test-app

- name: Run regression-test instrumented tests
uses: emulator-wtf/run-tests@v0
@yschimke yschimke deleted the claude/hardcore-agnesi branch April 12, 2026 10:32
@yschimke
Copy link
Copy Markdown
Collaborator Author

Just testing at the moment, on my fork

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