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
arm64 release binaries for CI and Krew #1148
Conversation
Spot test with a cluster scan worked fine. |
Is it painfully slow to build with qemu? |
It's very slow indeed. But I guess we have no choice because there's no cross build option available for libgit2 for linux (not like the macOS one) unfortunately.
I will try to merge these code into b-binary-build-and-e2e-tests.yaml |
The question was more: almost nothing we do in Kubescape is architecture specific, and very little of it is OS specific. Is it worth doing tests on arm64 as well as Intel for Mac? Or for that matter, is it worth testing for Linux, Windows and Mac on every build? (Is it OK to do so because they happen in parallel and there is no cost?) I want to optimize for "tests take the least amount of time to run". To that end, I wonder if testing just on one platform, one build is enough. If a PR looks like it touches something architecture or OS specific, a maintainer then could call for it to have the full suite of tests before merging. Just looking at the time taken to complete the checks on this PR, I see wild variation in time taken: arm64 is quicker on Mac, but building arm64 for Ubuntu took almost two hours. We could then make sure that the process of kicking off a release tests all combinations of OS and platform. |
Yeah, that's more about the design problem. I don't know if testing just on one platform, one build is enough for PRs, but I'm sure if any change is required regarding this, it would be easy for me to implement that change. Please let me know your answers and requirements. |
@HollowMan6 I think it's enough to test each commit on our reference platform, which would be Linux amd64. |
OK, I see, will implement in this way. |
I think now this is ready to get merged. Please let me know if you have more feedback. |
@dwertent LGTM, please have a look |
Signed-off-by: Hollow Man <hollowman@opensuse.org>
Signed-off-by: Hollow Man <hollowman@opensuse.org>
Signed-off-by: Hollow Man <hollowman@opensuse.org>
Signed-off-by: Hollow Man <hollowman@opensuse.org>
Signed-off-by: Hollow Man <hollowman@opensuse.org>
Signed-off-by: Hollow Man <hollowman@opensuse.org>
Signed-off-by: Hollow Man <hollowman@opensuse.org>
Signed-off-by: Hollow Man <hollowman@opensuse.org>
cc @dwertent |
Signed-off-by: Hollow Man <hollowman@opensuse.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Well done :)
@HollowMan6 Hi :) Do you know to explain why this workflow failed? |
I guess so. Will open another PR to fix it.
|
PR opened at #1210 |
Thanks! |
Resolve #195 #1112
Overview
Add arm64 release binaries (both Linux and macOS) to release CI: kubescape-arm64-<system>, as well as Krew.
macOS arm64 tests are not available in the CI.
Binaries to try out: https://github.com/HollowMan6/kubescape/releases/tag/v2.2.5