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

CI: use non CPU limited runners with KVM support #474

Closed
matttbe opened this issue Feb 1, 2024 · 1 comment
Closed

CI: use non CPU limited runners with KVM support #474

matttbe opened this issue Feb 1, 2024 · 1 comment
Assignees

Comments

@matttbe
Copy link
Member

matttbe commented Feb 1, 2024

The recent switch to GH Actions reduces the usage of Cirrus CI -- still needed for the tests with a debug kconfig -- but it duplicates CI related code. Also, tests executed on GH Actions still look unstable, probably due to the slow environment (2 CPU without KVM support).

A way to improve the stability and to reduce the maintenance would be to deploy self-hosted runners on machines supporting KVM.

https://docs.github.com/en/actions/hosting-your-own-runners/

@matttbe matttbe self-assigned this Feb 1, 2024
@matttbe matttbe changed the title CI: GH Actions: use self-hosted runners CI: use non CPU limited runners with KVM support Mar 11, 2024
@matttbe
Copy link
Member Author

matttbe commented Mar 11, 2024

End of last week, I was looking at adding a self-hosted runner. I managed to successfully executed the tests on a self-hosted runner, but KVM was still not used, because the docker image is not executed with enough permissions (--privileged, or --cap-add + mount).

I knew that it was possible to have KVM support, so I tried to find a way to use it with our "Docker container actions", like they do in reactivecircus/android-emulator-runner. Then I found out we can now use KVM support directly with the default GitHub runners.

So I:

So we can close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant