LifeMate — Personal, Family & Learning Companion
ci: use direct VM service for Android restart tests
Codex committed
Oct 8, 2026 at 05:56 UTC
9c9ca2034baf43017eecd4313c4bff2eada464e6
1 file changed
+8
-4
.github/workflows/local-persistence.yml
+8
-4
@@ -62,6 +62,9 @@ jobs:
62
with:
63
distribution: temurin
64
java-version: '17'
65
+ - uses: gradle/actions/setup-gradle@v4
66
+ with:
67
+ cache-read-only: false
68
- uses: subosito/flutter-action@v2
69
with:
70
channel: stable
@@ -88,14 +91,15 @@ jobs:
91
working-directory: apps/lifemate
92
# Each command runs in its own shell. Keep pipefail with each test.
93
# --no-uninstall retains SharedPreferences during Flutter test teardown.
94
+ # Direct VM service avoids the observed DDS startup failure between phases.
95
script: |
92
- bash -eo pipefail -c 'flutter test integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --no-uninstall --dart-define=PERSISTENCE_PHASE=create --reporter expanded 2>&1 | tee "$RUNNER_TEMP/local-persistence-create.log"'
96
+ bash -eo pipefail -c 'flutter test integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --no-uninstall --no-dds --dart-define=PERSISTENCE_PHASE=create --reporter expanded 2>&1 | tee "$RUNNER_TEMP/local-persistence-create.log"'
97
adb -s emulator-5554 shell am force-stop com.example.lifemate.localtest
94
- bash -eo pipefail -c 'flutter test integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --no-uninstall --dart-define=PERSISTENCE_PHASE=update --reporter expanded 2>&1 | tee "$RUNNER_TEMP/local-persistence-update.log"'
98
+ bash -eo pipefail -c 'flutter test integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --no-uninstall --no-dds --dart-define=PERSISTENCE_PHASE=update --reporter expanded 2>&1 | tee "$RUNNER_TEMP/local-persistence-update.log"'
99
adb -s emulator-5554 shell am force-stop com.example.lifemate.localtest
96
- bash -eo pipefail -c 'flutter test integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --no-uninstall --dart-define=PERSISTENCE_PHASE=archive --reporter expanded 2>&1 | tee "$RUNNER_TEMP/local-persistence-archive.log"'
100
+ bash -eo pipefail -c 'flutter test integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --no-uninstall --no-dds --dart-define=PERSISTENCE_PHASE=archive --reporter expanded 2>&1 | tee "$RUNNER_TEMP/local-persistence-archive.log"'
101
adb -s emulator-5554 shell am force-stop com.example.lifemate.localtest
98
- bash -eo pipefail -c 'flutter test integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --no-uninstall --dart-define=PERSISTENCE_PHASE=verify --reporter expanded 2>&1 | tee "$RUNNER_TEMP/local-persistence-verify.log"'
102
+ bash -eo pipefail -c 'flutter test integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --no-uninstall --no-dds --dart-define=PERSISTENCE_PHASE=verify --reporter expanded 2>&1 | tee "$RUNNER_TEMP/local-persistence-verify.log"'
103
bash -eo pipefail -c 'adb -s emulator-5554 shell pm path com.example.lifemate.localtest | grep -q "^package:"'
104
adb -s emulator-5554 shell am force-stop com.example.lifemate.localtest
105
bash -e -c 'if grep -E "Uninstalling old version|Package install error" "$RUNNER_TEMP"/local-persistence-*.log; then echo "An installation reset invalidated the persistence test."; exit 1; fi'