ipdk icon indicating copy to clipboard operation
ipdk copied to clipboard

Add also other architecture(s) to CI build (AARCH64, ARMv7)

Open stolsma opened this issue 3 years ago • 9 comments

It would be nice if the CI process also builds different architectures, I'm thinking about Armv7 and AARCH64.

I will drop a PR tomorrow...

stolsma avatar Feb 09 '22 11:02 stolsma

Great idea Please see my changes to support aarch64 as follows: https://github.com/asafravid/ovs/commit/8c441a55ca0333b56609f3d60830088ee5e4986f

As well as: https://github.com/asafravid/p4-dpdk-target/commit/6d9126f13891026b4046105fe208783ae1c1e35f

I’m also working on aarch64 so would be great to cooperate and collaborate Let me know if you have any questions

asafravid avatar Feb 09 '22 13:02 asafravid

@asafravid You where on my list!! šŸ˜„ Just got the generic script code working in the ipdk cli (building different platform architectures and running different platform architectures) but because docker buildx is using qemu emulation it is terribly slow to test if it works. As @mestery said, we need to split up the build process to make IPDK (CI) building usable.... 😢

stolsma avatar Feb 09 '22 13:02 stolsma

Another option we thought of is to auto-detect the architecture via uname -m (yields x86_64 or aarch64 respectively for x86 or arm64) so as to simplify that Both options of course can work together with the cli (if provided option) overrules the auto-detect (for instance)

asafravid avatar Feb 09 '22 14:02 asafravid

I think we should look at using OCI's free tier of ARM runners, which integrate with GitHub Actions: https://blogs.oracle.com/cloud-infrastructure/post/announcing-github-actions-arm-runners-for-the-arm-compute-platform-on-oracle-cloud-infrastructure

mestery avatar Feb 09 '22 15:02 mestery

Let me see if I can get ipdk.io a free OCI account to try out the arm runners.

mestery avatar Feb 09 '22 18:02 mestery

See also https://github.com/ipdk-io/ovs/pull/20 which is required for aarch64

aravid-marvell avatar Feb 13 '22 10:02 aravid-marvell

@mestery I have a free OCI account for myself now but the ARM64 hosts are full in the Amsterdam DC... šŸ˜ž Already trying to start up a runner for my own org for 5 days now but every time I get a "Out of host capacity" error message, really bad capacity planning šŸ˜‰ Hopefully Oracle expands the capacity soon...

stolsma avatar Feb 23 '22 11:02 stolsma

Well, I figured that might be the case in terms of limited availability. Thanks for checking at least!

mestery avatar Feb 23 '22 14:02 mestery

@mestery I've got a OCI ARM64 based Github runner working for my own org now. Took some time for Oracle to add extra capacity šŸ˜ž Will try to build a IPDK ARM64 package version somewhere today...

stolsma avatar Mar 21 '22 11:03 stolsma