Dough Git

commit

Plural smoke test: close a hung emulator launcher and use the AOSP image

commit
eb49674e02a82098fabc1f84c543ef3f21884951
author
Clove Twilight <[email protected]>
date
2026-11-02 18:54

diff --git a/.github/scripts/plural-smoke.sh b/.github/scripts/plural-smoke.sh
index cac3a6f..c68e722 100644
--- a/.github/scripts/plural-smoke.sh
+++ b/.github/scripts/plural-smoke.sh
@@ -23,11 +23,13 @@ shot() {
 # Emulators on CI sometimes show "<app> isn't responding" for their own
 # launcher or System UI while booting; that dialog would swallow our taps.
 dismiss_system_dialogs() {
-  if ui | grep -q "isn't responding"; then
+  local tries=0
+  while ui | grep -q "isn't responding" && [ $tries -lt 6 ]; do
     echo "Dismissing a system \"isn't responding\" dialog"
-    tap_raw "Wait" || adb shell input keyevent 4
-    sleep 1
-  fi
+    tap_raw "Close app" || adb shell input keyevent 4
+    tries=$((tries + 1))
+    sleep 2
+  done
 }
 
 # Taps the middle of the first element whose text (or description) is exactly $1.
@@ -50,6 +52,7 @@ tap_text() {
 
 # Fails unless the screen shows text containing $1.
 expect() {
+  dismiss_system_dialogs
   if ! ui | grep -qF "text=\"$1"; then
     echo "::error::Expected \"$1\" on screen at step $2"
     exit 1
diff --git a/.github/workflows/plural-smoke.yml b/.github/workflows/plural-smoke.yml
index dd1d70e..fee70d7 100644
--- a/.github/workflows/plural-smoke.yml
+++ b/.github/workflows/plural-smoke.yml
@@ -53,7 +53,7 @@ jobs:
         uses: reactivecircus/android-emulator-runner@v2
         with:
           api-level: 34
-          target: google_apis
+          target: default
           arch: x86_64
           profile: pixel_6
           disable-animations: true