From 1a1323cec31bbcf33155ac3895d9784925c60561 Mon Sep 17 00:00:00 2001 From: Jude Kwashie Date: Mon, 24 Nov 2025 12:08:30 +0000 Subject: [PATCH 1/5] CI: clear cached AVD and adb files before starting emulator --- .github/workflows/android.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index bbdf0079151b..a29de22ee9d1 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -81,6 +81,10 @@ jobs: ~/.android/avd/* ~/.android/adb* key: avd-${{ runner.os }} + - name: Remove cached AVD + run: | + rm -rf ~/.android/avd + rm -f ~/.android/adb* - name: Start AVD then run E2E tests uses: reactivecircus/android-emulator-runner@v2 with: From 3f321c8301e7df30aa512ea84259b395529f59dc Mon Sep 17 00:00:00 2001 From: Jude Kwashie Date: Mon, 24 Nov 2025 13:59:58 +0000 Subject: [PATCH 2/5] chore: optimize AVD setup by removing unnecessary packages and cleaning up disk space --- .github/workflows/android.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index a29de22ee9d1..5b6eb2555dc0 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -73,6 +73,14 @@ jobs: sudo udevadm trigger --name-match=kvm - name: Gradle cache uses: gradle/actions/setup-gradle@v4 + - name: Free Disk Space (Ubuntu) + uses: AdityaGarg8/remove-unwanted-software@90e01b21170618765a73370fcc3abbd1684a7793 + with: + remove-dotnet: true + remove-haskell: true + remove-codeql: true + remove-docker-images: true + remove-large-packages: true - name: AVD cache uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 id: avd-cache @@ -81,10 +89,6 @@ jobs: ~/.android/avd/* ~/.android/adb* key: avd-${{ runner.os }} - - name: Remove cached AVD - run: | - rm -rf ~/.android/avd - rm -f ~/.android/adb* - name: Start AVD then run E2E tests uses: reactivecircus/android-emulator-runner@v2 with: From 0f2d7d5335ef1e9f972b356d669aeb89b099864b Mon Sep 17 00:00:00 2001 From: Jude Kwashie Date: Mon, 24 Nov 2025 14:25:45 +0000 Subject: [PATCH 3/5] chore: enhance AVD setup by adding disk space cleanup for fdc step --- .github/workflows/e2e_tests_fdc.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e_tests_fdc.yaml b/.github/workflows/e2e_tests_fdc.yaml index 4e83c5cb096a..d252f8fed582 100644 --- a/.github/workflows/e2e_tests_fdc.yaml +++ b/.github/workflows/e2e_tests_fdc.yaml @@ -71,6 +71,14 @@ jobs: sudo udevadm trigger --name-match=kvm - name: Gradle cache uses: gradle/actions/setup-gradle@v4 + - name: Free Disk Space (Ubuntu) + uses: AdityaGarg8/remove-unwanted-software@90e01b21170618765a73370fcc3abbd1684a7793 + with: + remove-dotnet: true + remove-haskell: true + remove-codeql: true + remove-docker-images: true + remove-large-packages: true - name: AVD cache uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 id: avd-cache @@ -229,4 +237,3 @@ jobs: exit 1 fi shell: bash - From 2e5fc95e45799de9b8c6b435e54537c143ca5fa6 Mon Sep 17 00:00:00 2001 From: Jude Kwashie Date: Tue, 25 Nov 2025 14:16:31 +0000 Subject: [PATCH 4/5] ci(fdc): dump dataconnect emulator log on failure --- .github/workflows/e2e_tests_fdc.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/e2e_tests_fdc.yaml b/.github/workflows/e2e_tests_fdc.yaml index d252f8fed582..ce996b694a3f 100644 --- a/.github/workflows/e2e_tests_fdc.yaml +++ b/.github/workflows/e2e_tests_fdc.yaml @@ -64,6 +64,15 @@ jobs: unset PGSERVICEFILE firebase experiments:enable dataconnect ./start-firebase-emulator.sh + - name: Dump Data Connect log + run: | + cd packages/firebase_data_connect/firebase_data_connect/example + if [ -f dataconnect-debug.log ]; then + echo '--- dataconnect-debug.log ---' + cat dataconnect-debug.log + else + echo 'dataconnect-debug.log not found' + fi - name: Enable KVM run: | echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules From 2477ee1f261df34666395ee9f8d066c606bf1d85 Mon Sep 17 00:00:00 2001 From: Jude Kwashie Date: Tue, 25 Nov 2025 15:53:16 +0000 Subject: [PATCH 5/5] chore(fdc): remove dataconnect log dump --- .github/workflows/e2e_tests_fdc.yaml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/e2e_tests_fdc.yaml b/.github/workflows/e2e_tests_fdc.yaml index ce996b694a3f..d252f8fed582 100644 --- a/.github/workflows/e2e_tests_fdc.yaml +++ b/.github/workflows/e2e_tests_fdc.yaml @@ -64,15 +64,6 @@ jobs: unset PGSERVICEFILE firebase experiments:enable dataconnect ./start-firebase-emulator.sh - - name: Dump Data Connect log - run: | - cd packages/firebase_data_connect/firebase_data_connect/example - if [ -f dataconnect-debug.log ]; then - echo '--- dataconnect-debug.log ---' - cat dataconnect-debug.log - else - echo 'dataconnect-debug.log not found' - fi - name: Enable KVM run: | echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules