-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would you know why emulator shows error: Not enough space to create userdata partition #76
Comments
I did this on my previous step to free disk space:
Also, this works fine so unsure why running with same specs for
|
What machine are you using to run the action? |
Yes, name: Mobile android e2e tests
env:
CI: true
DETOX_CONFIGURATION: android.emu.release
API_LEVEL: 26
ARCH: x86_64
on:
pull_request:
branches:
- master
jobs:
e2e-test:
name: Run Tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Free Disk Space
run: |
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: actions/setup-node@v4
# id: cache-node-modules
with:
node-version: '20.x'
cache: 'yarn'
- name: Install Dependencies
run: yarn # install --frozen-lockfile
- name: Setup Java
uses: actions/setup-java@v4
with:
cache: gradle
distribution: temurin
java-version: 17
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ env.API_LEVEL }}
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ env.API_LEVEL }}
arch: ${{ env.ARCH }}
disable-animations: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
force-avd-creation: false
script: echo 'Generated AVD snapshot for caching.'
- name: Cache Detox Build
id: cache-detox-build
uses: actions/cache@v4
with:
path: android/app/build
key: ${{ runner.os }}-detox-build
restore-keys: |
${{ runner.os }}-detox-build
- name: Detox Build
if: steps.cache-detox-build.outputs.cache-hit != 'true'
run: yarn e2e:android:build --if-missing
- name: Get Device Name
id: device
run: |
AVD_NAME=$(node -p "require('./.detoxrc').devices.emulator.device.avdName")
echo "AVD_NAME=$AVD_NAME" >> $GITHUB_OUTPUT
- name: Detox Test
timeout-minutes: 20
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ env.API_LEVEL }}
arch: ${{ env.ARCH }}
avd-name: ${{ steps.device.outputs.AVD_NAME }}
disable-animations: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
force-avd-creation: false
script: >
yarn detox test
--configuration ${{ env.DETOX_CONFIGURATION }}
--headless
--record-logs failing
--record-videos failing
--take-screenshots failing
- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: detox-artifacts
path: artifacts |
Try commenting out the step |
Same issue after commenting out that step. Would you know how do I do this? |
Maybe try using a larger runner? |
Question
I was following your CI steps with the following snippet:
I get the following error:
ERROR | Not enough space to create userdata partition. Available: 4870.562500 MB at /home/runner/.android/avd/../avd/Pixel_8_Pro_API_34.avd, need 7372.800000 MB.
which I think in turn does this:adb: device 'emulator-5554' not found
Additional info:
The text was updated successfully, but these errors were encountered: