-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
No option to enable Linux hardware acceleration #153
Comments
Thanks for sharing! Running on Linux is definitely the no.1 request for this action:) Would you be able to share a bit more about your fork, specifically how the action is integrated with the aws machines? If this is a straight forward setup, we could potentially recommends it in our docs, since if the pricing is much lower than the macos VM it'd be a better option even for people who are already running it with macos. This is very exciting:) |
No problem! So the fork of this action is literally just commenting out those lines for turning off hardware acceleration - found here. So if we could make that optional it means we can come back to the main action and throw away our fork 😃 In terms of the mechanism of how we've achieved all of this from an AWS side - we have a 'controller' t3.small linux custom runner machine available at all times, which we use to spin up a m5.metal custom runner machine on demand, then run the tests, then spin down again. So our action looks like the following:
Of course there are probably other ways to do this too! We've just found something that works for us for now, as we use the 'controller' t3 machine for other bits in our stack anyway. The m5.metal machine has things like qemu-kvm package installed on it, and the main 'android' user of the metal machine belongs to the 'kvm' user group so it can utilise it. In terms of pricing, the m5.metal costs about the same as the macOS github runner ($5.1 vs $4.8 p/h) - but obviously as tests run faster, it's still cheaper to run the AWS machines, including the $0.02 p/h t3 machine up throughout the working week. @lobsterdore may be able to add some more context to our AWS solution if you require. Let me know if I can help with a PR for this hardware acceleration flag for Linux - it'd be great to be back on your maintained action 😉 |
Thanks! Happy to accept a PR with a |
Opened and ready for you @ychescale9 😄 #154 |
@stevestotter This has been released. Thanks again for the contribution! |
Hi!
With the introduction of bare metal machines in AWS, we've successfully managed to get a Ubuntu machine working with instrumented Android tests using an m5.metal with KVM enabled. They're a lot faster (and more reliable!) than the Github standard MacOS box too... but the specs are ridiculous so no surprises there.
However, to get it working, we had to fork this action and remove the following lines:
https://github.com/ReactiveCircus/android-emulator-runner/blob/main/src/emulator-manager.ts#L35-L38
https://github.com/ReactiveCircus/android-emulator-runner/blob/main/lib/emulator-manager.js#L49-L52
Can we have this as an added option for the action? Something like
linux-hw-accel
set tofalse
by default, but can override it. Happy to do a PR if you don't have the time?(Hopefully this also gives an answer to those on the pinned issue #46)
The text was updated successfully, but these errors were encountered: