Skip to content

Commit 534f08a

Browse files
committed
disable AVD cache because of the issues in CI
1 parent 781f095 commit 534f08a

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

.github/workflows/instrumented-tests.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,17 @@ jobs:
4040
java-version: "17"
4141
- name: Gradle cache
4242
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a #v2.9.0
43-
- name: AVD cache
44-
uses: actions/cache@v5
45-
id: avd-cache
46-
with:
47-
path: |
48-
~/.android/avd/*
49-
~/.android/adb*
50-
key: avd-29
51-
- name: create AVD and generate snapshot for caching
52-
if: steps.avd-cache.outputs.cache-hit != 'true'
53-
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b #v2.35.0
54-
with:
55-
api-level: 28
56-
force-avd-creation: false
57-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
58-
disable-animations: false
59-
script: echo "Generated AVD snapshot for caching."
43+
# AVD cache disabled: causes indefinite hangs on emulator shutdown (see
44+
# ReactiveCircus/android-emulator-runner#373, #385, #362; WordPress/gutenberg#66771)
6045
- name: Enable KVM group perms
6146
run: |
6247
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
6348
sudo udevadm control --reload-rules
6449
sudo udevadm trigger --name-match=kvm
6550
- name: "Run Instrumented Tests (${{ inputs.display_name }})"
6651
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b #v2.35.0
52+
env:
53+
ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL: 60
6754
with:
6855
api-level: 28
6956
force-avd-creation: false

0 commit comments

Comments
 (0)