From 6c04b252f9e02926fc84051e0465a7e7d2d2fe6f Mon Sep 17 00:00:00 2001 From: Harsha Raghu Date: Sun, 14 Apr 2024 16:07:28 +0530 Subject: [PATCH 1/7] Update build.yml --- .github/workflows/build.yml | 287 +++++++++++++++++++++--------------- 1 file changed, 168 insertions(+), 119 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 675f8600..a4b0831c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -236,57 +236,77 @@ jobs: ~/.android/adb* key: avd-${{ matrix.api-level }}-${{ env.EMU_TARGET }}-${{ env.EMU_PROFILE }}-${{ env.EMU_AVD_NAME }} - # Create AVD with some redundancy - 3 Checks - name: create AVD and generate snapshot for caching if: steps.avd-cache.outputs.cache-hit != 'true' - uses: reactivecircus/android-emulator-runner@v2 - id: avd_create_1 - continue-on-error: true - with: - working-directory: ${{env.GRADLE_DIR}} - api-level: ${{ matrix.api-level }} - target: ${{ env.EMU_TARGET }} - force-avd-creation: false - emulator-options: ${{ env.EMU_OPTS }} - disable-animations: false - profile: ${{ env.EMU_PROFILE }} - avd-name: ${{ env.EMU_AVD_NAME }} - emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - script: echo "Generated AVD snapshot for caching." + # continue-on-error: true + uses: Wandalen/wretry.action@v3.2.0 + with: + action: reactivecircus/android-emulator-runner@v2 + attempt_limit: 5 + attempt_delay: 1000 # ms + with: | + working-directory: ${{env.GRADLE_DIR}} + api-level: ${{ matrix.api-level }} + target: ${{ env.EMU_TARGET }} + force-avd-creation: false + emulator-options: ${{ env.EMU_OPTS }} + disable-animations: false + profile: ${{ env.EMU_PROFILE }} + avd-name: ${{ env.EMU_AVD_NAME }} + emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} + script: echo "Generated AVD snapshot for caching." - - name: create AVD and generate snapshot for caching try#2 - if: steps.avd-cache.outputs.cache-hit != 'true' && steps.avd_create_1.outcome == 'failure' - uses: reactivecircus/android-emulator-runner@v2 - id: avd_create_2 - continue-on-error: true - with: - working-directory: ${{env.GRADLE_DIR}} - api-level: ${{ matrix.api-level }} - target: ${{ env.EMU_TARGET }} - force-avd-creation: false - emulator-options: ${{ env.EMU_OPTS }} - disable-animations: false - profile: ${{ env.EMU_PROFILE }} - avd-name: ${{ env.EMU_AVD_NAME }} - emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - script: echo "Generated AVD snapshot for caching." + # Create AVD with some redundancy - 3 Checks + # - name: create AVD and generate snapshot for caching + # if: steps.avd-cache.outputs.cache-hit != 'true' + # uses: reactivecircus/android-emulator-runner@v2 + # id: avd_create_1 + # continue-on-error: true + # with: + # working-directory: ${{env.GRADLE_DIR}} + # api-level: ${{ matrix.api-level }} + # target: ${{ env.EMU_TARGET }} + # force-avd-creation: false + # emulator-options: ${{ env.EMU_OPTS }} + # disable-animations: false + # profile: ${{ env.EMU_PROFILE }} + # avd-name: ${{ env.EMU_AVD_NAME }} + # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} + # script: echo "Generated AVD snapshot for caching." - - name: create AVD and generate snapshot for caching try#3 - if: steps.avd-cache.outputs.cache-hit != 'true' && steps.avd_create_2.outcome == 'failure' - uses: reactivecircus/android-emulator-runner@v2 - id: avd_create_3 - # continue-on-error: true # Fail, if failed in the 3rd try - with: - working-directory: ${{env.GRADLE_DIR}} - api-level: ${{ matrix.api-level }} - target: ${{ env.EMU_TARGET }} - force-avd-creation: false - emulator-options: ${{ env.EMU_OPTS }} - disable-animations: false - profile: ${{ env.EMU_PROFILE }} - avd-name: ${{ env.EMU_AVD_NAME }} - emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - script: echo "Generated AVD snapshot for caching." + # - name: create AVD and generate snapshot for caching try#2 + # if: steps.avd-cache.outputs.cache-hit != 'true' && steps.avd_create_1.outcome == 'failure' + # uses: reactivecircus/android-emulator-runner@v2 + # id: avd_create_2 + # continue-on-error: true + # with: + # working-directory: ${{env.GRADLE_DIR}} + # api-level: ${{ matrix.api-level }} + # target: ${{ env.EMU_TARGET }} + # force-avd-creation: false + # emulator-options: ${{ env.EMU_OPTS }} + # disable-animations: false + # profile: ${{ env.EMU_PROFILE }} + # avd-name: ${{ env.EMU_AVD_NAME }} + # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} + # script: echo "Generated AVD snapshot for caching." + + # - name: create AVD and generate snapshot for caching try#3 + # if: steps.avd-cache.outputs.cache-hit != 'true' && steps.avd_create_2.outcome == 'failure' + # uses: reactivecircus/android-emulator-runner@v2 + # id: avd_create_3 + # # continue-on-error: true # Fail, if failed in the 3rd try + # with: + # working-directory: ${{env.GRADLE_DIR}} + # api-level: ${{ matrix.api-level }} + # target: ${{ env.EMU_TARGET }} + # force-avd-creation: false + # emulator-options: ${{ env.EMU_OPTS }} + # disable-animations: false + # profile: ${{ env.EMU_PROFILE }} + # avd-name: ${{ env.EMU_AVD_NAME }} + # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} + # script: echo "Generated AVD snapshot for caching." # Redundancy End - name: Prepare deps @@ -335,82 +355,111 @@ jobs: # ffmpeg -f avfoundation -i 0 -t 840 out_API$SUFFIX.mov & ## Create AVD with some redundancy - 3 Checks + - name: Run tests - uses: reactivecircus/android-emulator-runner@v2 - id: avd_run_1 - continue-on-error: true - with: - working-directory: ${{env.GRADLE_DIR}} - api-level: ${{ matrix.api-level }} - target: ${{ env.EMU_TARGET }} - force-avd-creation: false - emulator-options: ${{ env.EMU_OPTS }} - disable-animations: true - profile: ${{ env.EMU_PROFILE }} - avd-name: ${{ env.EMU_AVD_NAME }} - emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - script: | - adb shell settings put secure immersive_mode_confirmations confirmed - adb uninstall viritualisres.phonevr.test - adb uninstall viritualisres.phonevr - - adb shell "logcat -b all -v color" & - ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} - # adb logcat -b all > logcat.log - jobs -p | xargs kill - # adb bugreport bugreport.zip # hangs indef here + # continue-on-error: true + uses: Wandalen/wretry.action@v3.2.0 + with: + action: reactivecircus/android-emulator-runner@v2 + attempt_limit: 5 + attempt_delay: 1000 # ms + with: | + working-directory: ${{env.GRADLE_DIR}} + api-level: ${{ matrix.api-level }} + target: ${{ env.EMU_TARGET }} + force-avd-creation: false + emulator-options: ${{ env.EMU_OPTS }} + disable-animations: true + profile: ${{ env.EMU_PROFILE }} + avd-name: ${{ env.EMU_AVD_NAME }} + emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} + script: | + adb shell settings put secure immersive_mode_confirmations confirmed + adb uninstall viritualisres.phonevr.test + adb uninstall viritualisres.phonevr + + adb shell "logcat -b all -v color" & + ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} + # adb logcat -b all > logcat.log + jobs -p | xargs kill + # adb bugreport bugreport.zip # hangs indef here - - name: Run tests try#2 - uses: reactivecircus/android-emulator-runner@v2 - if: steps.avd_run_1.outcome == 'failure' - id: avd_run_2 - continue-on-error: true - with: - working-directory: ${{env.GRADLE_DIR}} - api-level: ${{ matrix.api-level }} - target: ${{ env.EMU_TARGET }} - force-avd-creation: false - emulator-options: ${{ env.EMU_OPTS }} - disable-animations: true - profile: ${{ env.EMU_PROFILE }} - avd-name: ${{ env.EMU_AVD_NAME }} - emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - script: | - adb shell settings put secure immersive_mode_confirmations confirmed - adb uninstall viritualisres.phonevr.test - adb uninstall viritualisres.phonevr - - adb shell "logcat -b all -v color" & - ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} - # adb logcat -b all > logcat.log - jobs -p | xargs kill - # adb bugreport bugreport.zip # hangs indef here + # - name: Run tests + # uses: reactivecircus/android-emulator-runner@v2 + # id: avd_run_1 + # continue-on-error: true + # with: + # working-directory: ${{env.GRADLE_DIR}} + # api-level: ${{ matrix.api-level }} + # target: ${{ env.EMU_TARGET }} + # force-avd-creation: false + # emulator-options: ${{ env.EMU_OPTS }} + # disable-animations: true + # profile: ${{ env.EMU_PROFILE }} + # avd-name: ${{ env.EMU_AVD_NAME }} + # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} + # script: | + # adb shell settings put secure immersive_mode_confirmations confirmed + # adb uninstall viritualisres.phonevr.test + # adb uninstall viritualisres.phonevr + + # adb shell "logcat -b all -v color" & + # ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} + # # adb logcat -b all > logcat.log + # jobs -p | xargs kill + # # adb bugreport bugreport.zip # hangs indef here - - name: Run tests try#3 - uses: reactivecircus/android-emulator-runner@v2 - if: steps.avd_run_2.outcome == 'failure' - id: avd_run_3 - # continue-on-error: true # Fail if even fail the 3rd try - with: - working-directory: ${{env.GRADLE_DIR}} - api-level: ${{ matrix.api-level }} - target: ${{ env.EMU_TARGET }} - force-avd-creation: false - emulator-options: ${{ env.EMU_OPTS }} - disable-animations: true - profile: ${{ env.EMU_PROFILE }} - avd-name: ${{ env.EMU_AVD_NAME }} - emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - script: | - adb shell settings put secure immersive_mode_confirmations confirmed - adb uninstall viritualisres.phonevr.test - adb uninstall viritualisres.phonevr + # - name: Run tests try#2 + # uses: reactivecircus/android-emulator-runner@v2 + # if: steps.avd_run_1.outcome == 'failure' + # id: avd_run_2 + # continue-on-error: true + # with: + # working-directory: ${{env.GRADLE_DIR}} + # api-level: ${{ matrix.api-level }} + # target: ${{ env.EMU_TARGET }} + # force-avd-creation: false + # emulator-options: ${{ env.EMU_OPTS }} + # disable-animations: true + # profile: ${{ env.EMU_PROFILE }} + # avd-name: ${{ env.EMU_AVD_NAME }} + # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} + # script: | + # adb shell settings put secure immersive_mode_confirmations confirmed + # adb uninstall viritualisres.phonevr.test + # adb uninstall viritualisres.phonevr + + # adb shell "logcat -b all -v color" & + # ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} + # # adb logcat -b all > logcat.log + # jobs -p | xargs kill + # # adb bugreport bugreport.zip # hangs indef here + + # - name: Run tests try#3 + # uses: reactivecircus/android-emulator-runner@v2 + # if: steps.avd_run_2.outcome == 'failure' + # id: avd_run_3 + # # continue-on-error: true # Fail if even fail the 3rd try + # with: + # working-directory: ${{env.GRADLE_DIR}} + # api-level: ${{ matrix.api-level }} + # target: ${{ env.EMU_TARGET }} + # force-avd-creation: false + # emulator-options: ${{ env.EMU_OPTS }} + # disable-animations: true + # profile: ${{ env.EMU_PROFILE }} + # avd-name: ${{ env.EMU_AVD_NAME }} + # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} + # script: | + # adb shell settings put secure immersive_mode_confirmations confirmed + # adb uninstall viritualisres.phonevr.test + # adb uninstall viritualisres.phonevr - adb shell "logcat -b all -v color" & - ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} - # adb logcat -b all > logcat.log - jobs -p | xargs kill - # adb bugreport bugreport.zip # hangs indef here + # adb shell "logcat -b all -v color" & + # ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} + # # adb logcat -b all > logcat.log + # jobs -p | xargs kill + # # adb bugreport bugreport.zip # hangs indef here ## Redundancy End - name: Shutdown PVR ADB-Telnet Server and log From f855e5ad9c2aab47199970e87912a50f40fe6314 Mon Sep 17 00:00:00 2001 From: Harsha Raghu Date: Sun, 14 Apr 2024 16:33:56 +0530 Subject: [PATCH 2/7] fix DELETE_FAILED_INTERNAL_ERROR on adb uninstall --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4b0831c..d3f49034 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -375,8 +375,8 @@ jobs: emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} script: | adb shell settings put secure immersive_mode_confirmations confirmed - adb uninstall viritualisres.phonevr.test - adb uninstall viritualisres.phonevr + adb shell pm uninstall --user 0 viritualisres.phonevr.test + adb shell pm uninstall --user 0 viritualisres.phonevr adb shell "logcat -b all -v color" & ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} From f89523ad6c013aa244c70c1a6defd57b4e245cd4 Mon Sep 17 00:00:00 2001 From: Harsha Raghu Date: Sun, 14 Apr 2024 16:48:26 +0530 Subject: [PATCH 3/7] cleanup and save cache on failure too --- .github/workflows/build.yml | 158 +++--------------------------------- 1 file changed, 13 insertions(+), 145 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3f49034..d38e0824 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -234,11 +234,11 @@ jobs: path: | ~/.android/avd/* ~/.android/adb* - key: avd-${{ matrix.api-level }}-${{ env.EMU_TARGET }}-${{ env.EMU_PROFILE }}-${{ env.EMU_AVD_NAME }} + key: avd-${{ matrix.api-level }}-${{ env.EMU_TARGET }}-${{ env.EMU_PROFILE }}-${{ env.EMU_AVD_NAME }} # Make sure you have the same key while saving in below step - name: create AVD and generate snapshot for caching if: steps.avd-cache.outputs.cache-hit != 'true' - # continue-on-error: true + id: avd_create uses: Wandalen/wretry.action@v3.2.0 with: action: reactivecircus/android-emulator-runner@v2 @@ -256,59 +256,6 @@ jobs: emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} script: echo "Generated AVD snapshot for caching." - # Create AVD with some redundancy - 3 Checks - # - name: create AVD and generate snapshot for caching - # if: steps.avd-cache.outputs.cache-hit != 'true' - # uses: reactivecircus/android-emulator-runner@v2 - # id: avd_create_1 - # continue-on-error: true - # with: - # working-directory: ${{env.GRADLE_DIR}} - # api-level: ${{ matrix.api-level }} - # target: ${{ env.EMU_TARGET }} - # force-avd-creation: false - # emulator-options: ${{ env.EMU_OPTS }} - # disable-animations: false - # profile: ${{ env.EMU_PROFILE }} - # avd-name: ${{ env.EMU_AVD_NAME }} - # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - # script: echo "Generated AVD snapshot for caching." - - # - name: create AVD and generate snapshot for caching try#2 - # if: steps.avd-cache.outputs.cache-hit != 'true' && steps.avd_create_1.outcome == 'failure' - # uses: reactivecircus/android-emulator-runner@v2 - # id: avd_create_2 - # continue-on-error: true - # with: - # working-directory: ${{env.GRADLE_DIR}} - # api-level: ${{ matrix.api-level }} - # target: ${{ env.EMU_TARGET }} - # force-avd-creation: false - # emulator-options: ${{ env.EMU_OPTS }} - # disable-animations: false - # profile: ${{ env.EMU_PROFILE }} - # avd-name: ${{ env.EMU_AVD_NAME }} - # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - # script: echo "Generated AVD snapshot for caching." - - # - name: create AVD and generate snapshot for caching try#3 - # if: steps.avd-cache.outputs.cache-hit != 'true' && steps.avd_create_2.outcome == 'failure' - # uses: reactivecircus/android-emulator-runner@v2 - # id: avd_create_3 - # # continue-on-error: true # Fail, if failed in the 3rd try - # with: - # working-directory: ${{env.GRADLE_DIR}} - # api-level: ${{ matrix.api-level }} - # target: ${{ env.EMU_TARGET }} - # force-avd-creation: false - # emulator-options: ${{ env.EMU_OPTS }} - # disable-animations: false - # profile: ${{ env.EMU_PROFILE }} - # avd-name: ${{ env.EMU_AVD_NAME }} - # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - # script: echo "Generated AVD snapshot for caching." - # Redundancy End - - name: Prepare deps shell: bash run: | @@ -354,10 +301,8 @@ jobs: # brew install ffmpeg # ffmpeg -f avfoundation -i 0 -t 840 out_API$SUFFIX.mov & - ## Create AVD with some redundancy - 3 Checks - + ## Run tests with some redundancy - 5 Checks - name: Run tests - # continue-on-error: true uses: Wandalen/wretry.action@v3.2.0 with: action: reactivecircus/android-emulator-runner@v2 @@ -383,85 +328,7 @@ jobs: # adb logcat -b all > logcat.log jobs -p | xargs kill # adb bugreport bugreport.zip # hangs indef here - - # - name: Run tests - # uses: reactivecircus/android-emulator-runner@v2 - # id: avd_run_1 - # continue-on-error: true - # with: - # working-directory: ${{env.GRADLE_DIR}} - # api-level: ${{ matrix.api-level }} - # target: ${{ env.EMU_TARGET }} - # force-avd-creation: false - # emulator-options: ${{ env.EMU_OPTS }} - # disable-animations: true - # profile: ${{ env.EMU_PROFILE }} - # avd-name: ${{ env.EMU_AVD_NAME }} - # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - # script: | - # adb shell settings put secure immersive_mode_confirmations confirmed - # adb uninstall viritualisres.phonevr.test - # adb uninstall viritualisres.phonevr - - # adb shell "logcat -b all -v color" & - # ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} - # # adb logcat -b all > logcat.log - # jobs -p | xargs kill - # # adb bugreport bugreport.zip # hangs indef here - - # - name: Run tests try#2 - # uses: reactivecircus/android-emulator-runner@v2 - # if: steps.avd_run_1.outcome == 'failure' - # id: avd_run_2 - # continue-on-error: true - # with: - # working-directory: ${{env.GRADLE_DIR}} - # api-level: ${{ matrix.api-level }} - # target: ${{ env.EMU_TARGET }} - # force-avd-creation: false - # emulator-options: ${{ env.EMU_OPTS }} - # disable-animations: true - # profile: ${{ env.EMU_PROFILE }} - # avd-name: ${{ env.EMU_AVD_NAME }} - # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - # script: | - # adb shell settings put secure immersive_mode_confirmations confirmed - # adb uninstall viritualisres.phonevr.test - # adb uninstall viritualisres.phonevr - - # adb shell "logcat -b all -v color" & - # ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} - # # adb logcat -b all > logcat.log - # jobs -p | xargs kill - # # adb bugreport bugreport.zip # hangs indef here - - # - name: Run tests try#3 - # uses: reactivecircus/android-emulator-runner@v2 - # if: steps.avd_run_2.outcome == 'failure' - # id: avd_run_3 - # # continue-on-error: true # Fail if even fail the 3rd try - # with: - # working-directory: ${{env.GRADLE_DIR}} - # api-level: ${{ matrix.api-level }} - # target: ${{ env.EMU_TARGET }} - # force-avd-creation: false - # emulator-options: ${{ env.EMU_OPTS }} - # disable-animations: true - # profile: ${{ env.EMU_PROFILE }} - # avd-name: ${{ env.EMU_AVD_NAME }} - # emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} - # script: | - # adb shell settings put secure immersive_mode_confirmations confirmed - # adb uninstall viritualisres.phonevr.test - # adb uninstall viritualisres.phonevr - - # adb shell "logcat -b all -v color" & - # ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} - # # adb logcat -b all > logcat.log - # jobs -p | xargs kill - # # adb bugreport bugreport.zip # hangs indef here - ## Redundancy End - + - name: Shutdown PVR ADB-Telnet Server and log working-directory: ${{env.GRADLE_DIR}}/app/src/androidTest/java/viritualisres/phonevr/utils/ if: always() @@ -578,14 +445,15 @@ jobs: edit-mode: replace issue-number: ${{ github.event.number }} - # - name: Save AVD Cache - # uses: actions/cache/save@v3 - # if: always() && !steps.avd-cache.outputs.cache-hit - # with: - # path: | - # ~/.android/avd/* - # ~/.android/adb* - # key: avd-${{ matrix.api-level }} + - name: Save AVD Cache + uses: actions/cache/save@v4 + if: always() && !steps.avd-cache.outputs.cache-hit && steps.avd_create.outcome == 'success' + with: + path: | + ~/.android/avd/* + ~/.android/adb* + key: avd-${{ matrix.api-level }}-${{ env.EMU_TARGET }}-${{ env.EMU_PROFILE }}-${{ env.EMU_AVD_NAME }} # key has to be same as in restore in previous step + # Test_APK_Linux: # name: Test APK Linux # runs-on: ubuntu-latest From 3d160eadc305d28a9e2dbfdfdd2ae46599b4af16 Mon Sep 17 00:00:00 2001 From: Harsha Raghu Date: Sun, 14 Apr 2024 17:02:19 +0530 Subject: [PATCH 4/7] Update build.yml --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d38e0824..08a047a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -320,8 +320,9 @@ jobs: emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} script: | adb shell settings put secure immersive_mode_confirmations confirmed - adb shell pm uninstall --user 0 viritualisres.phonevr.test - adb shell pm uninstall --user 0 viritualisres.phonevr + # adb shell pm uninstall --user 0 viritualisres.phonevr.test + # adb shell pm uninstall --user 0 viritualisres.phonevr + ./gradlew :app:uninstallAll adb shell "logcat -b all -v color" & ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} From 94b9188ca9d3dcf21e8266239fbbcfdf0b56fea0 Mon Sep 17 00:00:00 2001 From: Harsha Raghu Date: Sun, 14 Apr 2024 17:16:32 +0530 Subject: [PATCH 5/7] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 08a047a0..012b2f9b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -320,8 +320,8 @@ jobs: emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} script: | adb shell settings put secure immersive_mode_confirmations confirmed - # adb shell pm uninstall --user 0 viritualisres.phonevr.test - # adb shell pm uninstall --user 0 viritualisres.phonevr + adb uninstall viritualisres.phonevr.test || true + adb uninstall viritualisres.phonevr || true ./gradlew :app:uninstallAll adb shell "logcat -b all -v color" & From 6f76ba0501810bb618b54b20868fced9b52aea89 Mon Sep 17 00:00:00 2001 From: Harsha Raghu Date: Sun, 14 Apr 2024 17:16:40 +0530 Subject: [PATCH 6/7] Update build.yml --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 012b2f9b..ae9d2a7c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -322,7 +322,6 @@ jobs: adb shell settings put secure immersive_mode_confirmations confirmed adb uninstall viritualisres.phonevr.test || true adb uninstall viritualisres.phonevr || true - ./gradlew :app:uninstallAll adb shell "logcat -b all -v color" & ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} From d5f1230895f1746513313f3217d9c18d91ee8274 Mon Sep 17 00:00:00 2001 From: Harsha Raghu Date: Sun, 14 Apr 2024 19:31:21 +0530 Subject: [PATCH 7/7] Update build.yml --- .github/workflows/build.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae9d2a7c..6386831f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -320,9 +320,8 @@ jobs: emulator-boot-timeout: ${{ env.EMU_TIMEOUT }} script: | adb shell settings put secure immersive_mode_confirmations confirmed - adb uninstall viritualisres.phonevr.test || true - adb uninstall viritualisres.phonevr || true - + ./gradlew :app:uninstallAll + adb shell "logcat -b all -v color" & ./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}} # adb logcat -b all > logcat.log