Skip to content

Commit 471e4bd

Browse files
dcalhounMamaduka
andauthored
ci: Address stalling Android E2E test tasks (#66771)
* ci: Increase AVD cache key specificity Avoid erroneous cache hits that may result in the CI task hanging indefinitely while terminating the emulator. * Revert "ci: Increase AVD cache key specificity" This reverts commit 2e892a6. * ci: Update Android test runner to macOS 13 Attempt to resolve indefinitely hanging Android E2E test tasks. * Revert "ci: Update Android test runner to macOS 13" This reverts commit a4c844d. * ci: Disable AVD cache AVD cache disabled as it caused emulator termination to hang indefinitely. Co-authored-by: dcalhoun <[email protected]> Co-authored-by: Mamaduka <[email protected]>
1 parent 9bd184d commit 471e4bd

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

.github/workflows/rnmobile-android-runner.yml

+22-20
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,28 @@ jobs:
4949
- name: Gradle cache
5050
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
5151

52-
- name: AVD cache
53-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
54-
id: avd-cache
55-
with:
56-
path: |
57-
~/.android/avd/*
58-
~/.android/adb*
59-
key: avd-${{ matrix.api-level }}
60-
61-
- name: Create AVD and generate snapshot for caching
62-
if: steps.avd-cache.outputs.cache-hit != 'true'
63-
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
64-
with:
65-
api-level: ${{ matrix.api-level }}
66-
force-avd-creation: false
67-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
68-
disable-animations: false
69-
arch: x86_64
70-
profile: Nexus 6
71-
script: echo "Generated AVD snapshot for caching."
52+
# AVD cache disabled as it caused emulator termination to hang indefinitely.
53+
# https://github.com/ReactiveCircus/android-emulator-runner/issues/385
54+
# - name: AVD cache
55+
# uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
56+
# id: avd-cache
57+
# with:
58+
# path: |
59+
# ~/.android/avd/*
60+
# ~/.android/adb*
61+
# key: avd-${{ matrix.api-level }}
62+
#
63+
# - name: Create AVD and generate snapshot for caching
64+
# if: steps.avd-cache.outputs.cache-hit != 'true'
65+
# uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
66+
# with:
67+
# api-level: ${{ matrix.api-level }}
68+
# force-avd-creation: false
69+
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
70+
# disable-animations: false
71+
# arch: x86_64
72+
# profile: Nexus 6
73+
# script: echo "Generated AVD snapshot for caching."
7274

7375
- name: Run tests
7476
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0

0 commit comments

Comments
 (0)