add aarch64 bundle for integration test#3530
Conversation
| fn personality_for_linux32() -> TestResult { | ||
| personality_for_linux(LinuxPersonalityDomain::PerLinux32, "i686") | ||
| } | ||
|
|
||
| fn personality_for_linux64() -> TestResult { | ||
| personality_for_linux(LinuxPersonalityDomain::PerLinux, "x86_64") | ||
| } |
There was a problem hiding this comment.
Rather than failing because it’s aarch, I suspect the failure is caused by the expected value being different here.
I think it should work if we adjust the expected values for each architecture. What do you think?
There was a problem hiding this comment.
That may be true, but I do not intend to address it in this PR.
runc also runs this test only on x86_64:
Personally, I do not think we need to handle this here, but if it is necessary, I can create a separate issue for it.
There was a problem hiding this comment.
I see, that makes sense!
For now, it seems reasonable to follow runc and support only x86_64.
It would also be helpful if you could leave a comment in the code explaining that supporting other architectures is technically possible, but intentionally not implemented at this time.
I did not intend to add aarch64 tests to CI in this PR. The purpose of this PR is only to make the integration tests work in a Lima environment. If adding aarch64 tests to CI is necessary, I can open a separate issue |
8db675a to
6af15db
Compare
|
Thanks.
Added.
I added a comment. |
|
LGTM |
|
|
||
| # Pick arch-specific bundle when available. | ||
| # Fall back to bundle.tar.gz (x86_64) if there is no | ||
| # arch-specific tarball. |
There was a problem hiding this comment.
Let's add a warning log for the fallback case.
6af15db to
4c1b530
Compare
Signed-off-by: Yusuke Sakurai <yusuke.sakurai@3-shake.com>
4c1b530 to
cc31481
Compare
Description
This adds an
aarch64bundle.I would like to run youki on Lima on macOS and also run the integration tests on
aarch64.On Lima,
uname -mreturnsaarch64, and youki is built as anaarch64binary as well.I created the bundle as follows:
Also, the personality test does not work correctly unless it runs on x86_64, so I will skip it.
This is because PER_LINUX32 makes uname(2) return a 32-bit architecture name, such as i686 instead of x86_64, and this behavior is architecture-dependent.
See: https://man7.org/linux/man-pages/man2/personality.2.html
Type of Change
Testing
Related Issues
Fixes #3311
Additional Context