ci: increase disk-size to 8192M and add PackageManager readiness check in run_instrumented_tests.sh

This commit is contained in:
Adam M. Szalkowski 2026-09-13 18:09:52 +02:00
parent 9de3c6341b
commit e7aa1ca683
2 changed files with 12 additions and 4 deletions

View file

@ -74,7 +74,7 @@ jobs:
arch: x86_64
target: google_apis_ps16k
profile: small_phone
disk-size: 4096M
disk-size: 8192M
ram-size: 4096M
disable-animations: true
script: bash scripts/run_instrumented_tests.sh
@ -116,7 +116,7 @@ jobs:
arch: x86_64
target: google_apis_ps16k
profile: small_phone
disk-size: 4096M
disk-size: 8192M
ram-size: 4096M
disable-animations: true
script: bash scripts/run_upgrade_test.sh

View file

@ -1,10 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
# Wait for boot (android-emulator-runner already does this, but be safe)
echo "Waiting for device..."
echo "Waiting for device & PackageManager..."
adb wait-for-device
for i in {1..30}; do
if adb shell pm path android >/dev/null 2>&1; then
echo "PackageManager service is ready!"
break
fi
echo "Waiting for PackageManager service..."
sleep 2
done
res=0
./gradlew connectedOssNoadsDebugAndroidTest -PAPPID=de.szalkowski.activitylauncher.oss --build-cache || res=$?
mkdir -p screenshots