Skip to content
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

Automatically support KVM on Linux #370

Open
TWiStErRob opened this issue Jan 26, 2024 · 4 comments
Open

Automatically support KVM on Linux #370

TWiStErRob opened this issue Jan 26, 2024 · 4 comments

Comments

@TWiStErRob
Copy link
Contributor

Following this announcement:
https://github.blog/2024-01-17-github-hosted-runners-double-the-power-for-open-source/

It is now possible to enable KVM on ubuntu-latest:
https://twitter.com/colinwhi/status/1749236103956291857

From some empirical non-scientific testing*:
mac boot: 1 min 23 seconds
linux boot (without hardware virtualization): 2 min 23 seconds
linux kvm boot: 15 seconds

* boot = from emulator -avd command to adb shell getprop sys.boot_completed returning 1.

One of my UI test suite (small) went from 12 minutes to 6 minutes via this change. Note that most of this must be down to the Gradle build. I'm yet to try this on a bigger project which is more emulator-heavy.

@TWiStErRob
Copy link
Contributor Author

On a heavy emulator CI it went from 27 minutes to 17 minutes.

@TWiStErRob
Copy link
Contributor Author

Oh, I just saw #366, so you're aware. Can it be incorporated into the action so not every user has to do it?

@ychescale9
Copy link
Member

I did a quick test but it didn't seem to take effect when running those commands from the action itself. I can make another attempt later unless you want to give it a go?

@TWiStErRob
Copy link
Contributor Author

I'll let you, you know your way around VMs way more, so you can diagnose easier.

Happy to review and maybe help, if you get stuck. Tag me on a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants