diff --git a/.github/workflows/_kotlin.yml b/.github/workflows/_kotlin.yml index 1e71a0656..e93c529c9 100644 --- a/.github/workflows/_kotlin.yml +++ b/.github/workflows/_kotlin.yml @@ -74,67 +74,3 @@ jobs: name: Android debug APK path: | ./kotlin/android/app/build/outputs/apk/* - - ui-test: - # FIXME - # Currently flaky, see https://github.com/firezone/firezone/pull/4178#issuecomment-2094815889 - if: false - name: ui-test-api-${{ matrix.api-level }} - strategy: - fail-fast: false - matrix: - include: - # TODO: These currently time out and/or fail intermittently. - # https://github.com/ReactiveCircus/android-emulator-runner/issues/385 - - api-level: 26 - - api-level: 29 - # Android SDK tools hardware accel is available only on Linux runners - runs-on: ubuntu-22.04 - steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - tool-cache: false - android: false - dotnet: true - haskell: true - large-packages: false - swap-storage: true - - uses: actions/checkout@v4 - - uses: ./.github/actions/setup-android - # Test on x86_64 only -- prevents compiling for other targets. - # See https://github.com/mozilla/rust-android-gradle?tab=readme-ov-file#specifying-local-targets - - run: echo 'rust.targets=x86' > local.properties - # See https://github.com/ReactiveCircus/android-emulator-runner?tab=readme-ov-file#running-hardware-accelerated-emulators-on-linux-runners - - name: Enable KVM group perms - 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 - - name: AVD cache - uses: actions/cache@v4 - id: avd-cache - with: - path: | - ~/.android/avd/* - ~/.android/adb* - key: avd-${{ matrix.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: ${{ matrix.api-level }} - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none - disable-animations: false - script: echo "Generated AVD snapshot for caching." - working-directory: ./kotlin/android - - name: Run Tests - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: ${{ matrix.api-level }} - force-avd-creation: false - emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none - disable-animations: true - script: ./gradlew --stacktrace connectedCheck - working-directory: ./kotlin/android