Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

ci: dedicated emulator ports + per-API AVDs for self-hosted runs

Rishabh Bajpaib54dff28a7f4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 44aca51..1a49d71 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -167,24 +167,37 @@ jobs:
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
+ timeout-minutes: 20
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
arch: x86_64
target: aosp_atd
profile: pixel_6
+ # Per-job AVD name: the default 'test' would be reused across API
+ # levels on this persistent box (fresh VMs masked this on hosted).
+ avd-name: ci-34
+ # NOT 5554: the inbetween app's docker container owns host port
+ # 5555 (adb channel), which ghosts as emulator-5554 offline and
+ # wedges the boot-wait loop. Do not touch that container.
+ emulator-port: 5764
+ emulator-boot-timeout: 420
force-avd-creation: false
disable-animations: true
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: echo "Generated AVD snapshot for caching."
- name: Run smoke instrumented tests (API 34)
+ timeout-minutes: 25
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
arch: x86_64
target: aosp_atd
profile: pixel_6
+ avd-name: ci-34
+ emulator-port: 5764
+ emulator-boot-timeout: 420
force-avd-creation: false
disable-animations: true
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
@@ -220,18 +233,23 @@ jobs:
- api-level: 30
target: default
profile: pixel_2
+ port: 5766
- api-level: 33
target: aosp_atd
profile: pixel_6
+ port: 5768
- api-level: 34
target: aosp_atd
profile: pixel_6
+ port: 5770
- api-level: 35
target: aosp_atd
profile: pixel_8
+ port: 5772
- api-level: 36
target: google_apis
profile: pixel_8
+ port: 5774
steps:
- uses: actions/checkout@v4
@@ -245,7 +263,6 @@ jobs:
# See the note on the same step in instrumented-smoke.
# GitHub-hosted only — never run the sudo rm -rf cleanup on self-hosted.
- # GitHub-hosted only — never run the sudo rm -rf cleanup on self-hosted.
- name: Free disk space
if: runner.environment == 'github-hosted'
run: |
@@ -286,24 +303,32 @@ jobs:
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
+ timeout-minutes: 20
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
target: ${{ matrix.target }}
profile: ${{ matrix.profile }}
+ avd-name: ci-${{ matrix.api-level }}
+ emulator-port: ${{ matrix.port }}
+ emulator-boot-timeout: 420
force-avd-creation: false
disable-animations: true
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: echo "Generated AVD snapshot for caching."
- name: Run instrumented tests (API ${{ matrix.api-level }})
+ timeout-minutes: 25
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
target: ${{ matrix.target }}
profile: ${{ matrix.profile }}
+ avd-name: ci-${{ matrix.api-level }}
+ emulator-port: ${{ matrix.port }}
+ emulator-boot-timeout: 420
force-avd-creation: false
disable-animations: true
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none