From 8a28f4c05c6cd4751050980a1391ea3d16225723 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 10:18:01 +0700 Subject: [PATCH 01/14] fix: change to macos-14 --- .github/workflows/android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0661ed54..8fb58881 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -14,7 +14,7 @@ on: jobs: android-build: - runs-on: macos-12 + runs-on: macos-14 concurrency: group: ${{ github.ref }}-android cancel-in-progress: true From 010bc178b2d45006339f91cf31d57f9806e24002 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 10:34:21 +0700 Subject: [PATCH 02/14] change arch --- .github/workflows/android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8fb58881..72fd07b2 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -60,7 +60,7 @@ jobs: disk-size: '10G' disable-animations: false avd-name: e2e_emulator - arch: x86_64 + arch: aarch64 script: | bun example:android:release bun test:e2e:android From 797cd339a3165bd247ce71118c00bf552195679d Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 10:37:10 +0700 Subject: [PATCH 03/14] change arch to x86 --- .github/workflows/android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 72fd07b2..9925d9be 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -60,7 +60,7 @@ jobs: disk-size: '10G' disable-animations: false avd-name: e2e_emulator - arch: aarch64 + arch: x86 script: | bun example:android:release bun test:e2e:android From 5a5e570b7c780bf502115d5a5eea28bae6eaf27d Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 10:41:56 +0700 Subject: [PATCH 04/14] change emu params --- .github/workflows/android.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 9925d9be..5004f067 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -53,17 +53,12 @@ jobs: - name: Run Android Emulator and app uses: reactivecircus/android-emulator-runner@v2 with: - api-level: 31 - target: aosp_atd - profile: pixel_2 - ram-size: '4096M' - disk-size: '10G' + api-level: 34 + force-avd-creation: false + arch: 'x86_64' + emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: false - avd-name: e2e_emulator - arch: x86 - script: | - bun example:android:release - bun test:e2e:android + script: echo "Generated AVD snapshot for caching." - name: Upload report if: always() From 77b39880272f9e9ec526cb330ef3f1aec5de2eef Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 10:49:36 +0700 Subject: [PATCH 05/14] Revert "change emu params" This reverts commit 5a5e570b7c780bf502115d5a5eea28bae6eaf27d. --- .github/workflows/android.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 5004f067..9925d9be 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -53,12 +53,17 @@ jobs: - name: Run Android Emulator and app uses: reactivecircus/android-emulator-runner@v2 with: - api-level: 34 - force-avd-creation: false - arch: 'x86_64' - emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none + api-level: 31 + target: aosp_atd + profile: pixel_2 + ram-size: '4096M' + disk-size: '10G' disable-animations: false - script: echo "Generated AVD snapshot for caching." + avd-name: e2e_emulator + arch: x86 + script: | + bun example:android:release + bun test:e2e:android - name: Upload report if: always() From 64cddac6c04411a61925a53d5e9562de6f41ae8e Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 10:50:27 +0700 Subject: [PATCH 06/14] macos-15 --- .github/workflows/android.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 9925d9be..633429bf 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -14,7 +14,7 @@ on: jobs: android-build: - runs-on: macos-14 + runs-on: macos-15 concurrency: group: ${{ github.ref }}-android cancel-in-progress: true @@ -60,7 +60,7 @@ jobs: disk-size: '10G' disable-animations: false avd-name: e2e_emulator - arch: x86 + arch: x86_64 script: | bun example:android:release bun test:e2e:android From f9a06c38bcf6f4d3ba6b41eeef04504b27e35478 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 13:59:44 +0700 Subject: [PATCH 07/14] change arch --- .github/workflows/android.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 633429bf..1bf7fd9f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -50,17 +50,20 @@ jobs: run: bun run build:android working-directory: example + - name: Install system image + run: sdkmanager "system-images;android-31;google_apis;arm64-v8a" + - name: Run Android Emulator and app uses: reactivecircus/android-emulator-runner@v2 with: api-level: 31 - target: aosp_atd + target: google_apis + arch: arm64-v8a # Change architecture to ARM profile: pixel_2 ram-size: '4096M' disk-size: '10G' disable-animations: false avd-name: e2e_emulator - arch: x86_64 script: | bun example:android:release bun test:e2e:android From 9184089ac0f50c727a2e1514ce9588c292d147e5 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 14:02:37 +0700 Subject: [PATCH 08/14] remove sdk manager --- .github/workflows/android.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 1bf7fd9f..ef4d1808 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -50,9 +50,6 @@ jobs: run: bun run build:android working-directory: example - - name: Install system image - run: sdkmanager "system-images;android-31;google_apis;arm64-v8a" - - name: Run Android Emulator and app uses: reactivecircus/android-emulator-runner@v2 with: From d8c770ecb975e5dc9ff62ac1820f116732d93417 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 14:36:37 +0700 Subject: [PATCH 09/14] macos13 --- .github/workflows/android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ef4d1808..8df2928d 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -14,7 +14,7 @@ on: jobs: android-build: - runs-on: macos-15 + runs-on: macos-13 # emulator never starts on macOS 14 https://github.com/ReactiveCircus/android-emulator-runner/issues/392#issuecomment-2106167725 concurrency: group: ${{ github.ref }}-android cancel-in-progress: true From 6c509134d33843273a919fd3c9601aca6d0836e0 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 15:12:01 +0700 Subject: [PATCH 10/14] api 29 --- .github/workflows/android.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8df2928d..8b70f9d1 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -53,15 +53,9 @@ jobs: - name: Run Android Emulator and app uses: reactivecircus/android-emulator-runner@v2 with: - api-level: 31 - target: google_apis - arch: arm64-v8a # Change architecture to ARM - profile: pixel_2 - ram-size: '4096M' - disk-size: '10G' - disable-animations: false - avd-name: e2e_emulator + api-level: 29 script: | + ./gradlew app:connectedCheck bun example:android:release bun test:e2e:android From 45a019423bdd5ea38b6b87d28528352cae2da6cf Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 15:19:41 +0700 Subject: [PATCH 11/14] remove script --- .github/workflows/android.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8b70f9d1..cf89f333 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -55,7 +55,6 @@ jobs: with: api-level: 29 script: | - ./gradlew app:connectedCheck bun example:android:release bun test:e2e:android From 2a07b7747bc6e10ae123f24d0565afdfca5cfd48 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 15:58:28 +0700 Subject: [PATCH 12/14] api 31 --- .github/workflows/android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index cf89f333..6e86cc88 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -53,7 +53,7 @@ jobs: - name: Run Android Emulator and app uses: reactivecircus/android-emulator-runner@v2 with: - api-level: 29 + api-level: 31 script: | bun example:android:release bun test:e2e:android From a4b2fe3e712c88d1b445c8d3a23a66dd08c30824 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 20:15:01 +0700 Subject: [PATCH 13/14] maybe this one will work --- .github/workflows/android.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 6e86cc88..473f6ea2 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -50,13 +50,28 @@ jobs: run: bun run build:android working-directory: example - - name: Run Android Emulator and app + - name: Create AVD and generate snapshot for caching uses: reactivecircus/android-emulator-runner@v2 with: - api-level: 31 - script: | - bun example:android:release - bun test:e2e:android + # Use the slimmer aosp_atd images for working + # around "System UI isn't responding" ANR + # (Application Not Responding) error + # + # https://android-developers.googleblog.com/2021/10/whats-new-in-scalable-automated-testing.html#:~:text=Slimmer%20Emulator%20System%20Images + # https://github.com/ReactiveCircus/android-emulator-runner/issues/129 + # https://github.com/upleveled/hotline-bling-codealong/pull/26#issuecomment-1094659722 + target: aosp_atd + api-level: 30 + arch: x86 + ram-size: 4096M + channel: canary + profile: pixel + avd-name: Pixel_3a_API_30_AOSP + force-avd-creation: false + emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none + emulator-boot-timeout: 12000 + disable-animations: false + script: echo "Generated AVD snapshot for caching" - name: Upload report if: always() From 892196c6f66dd1249bb502a72a8fd595d6b985d1 Mon Sep 17 00:00:00 2001 From: Piotr Trocki Date: Fri, 17 Jan 2025 20:24:44 +0700 Subject: [PATCH 14/14] revert e2e tests --- .github/workflows/android.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 473f6ea2..b753c68c 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -71,7 +71,9 @@ jobs: emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none emulator-boot-timeout: 12000 disable-animations: false - script: echo "Generated AVD snapshot for caching" + script: | + bun example:android:release + bun test:e2e:android - name: Upload report if: always()