ActivityWatch / aw-android

ActivityWatch for Android, using aw-server-rust as backend.
Mozilla Public License 2.0
165 stars 29 forks source link

HW accelerated Android testing #92

Open ErikBjare opened 1 year ago

ErikBjare commented 1 year ago

Mentioned by @ShootingKing-AM here: https://github.com/ActivityWatch/aw-android/pull/85#issuecomment-1441898719

Just a note for much faster e2e testing on github actions - github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners

All we'd need is to enable large runners, and add this to the CI config:

      - 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

However, we don't have the GitHub plan required to enable large runners, which are a beta feature. Trying to apply for the beta gives me this:

image

So, we'll have to wait for now.

ErikBjare commented 1 year ago

There seems to be no indication that larger runners will at some point not be paid-only, or even pay-as-you-go without a proper org plan (not happening).