Conversation
- Use native ARM64 runners (ubuntu-24.04-arm) for arm64 jobs instead of emulating arm64 on x86 via QEMU without KVM acceleration - Remove heavy env action from distro-qemu tests (was installing Rust, protoc, cross-compile tools - none needed for these tests) - Cache kernel images to avoid Docker pulls on every run - Add --no-install-recommends to debootstrap installation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
run-tests.sh had an inverted KVM check (enabled KVM when vmx/svm was NOT found), causing arm64 integration tests to fail on ARM runners that lack /dev/kvm. Switch both scripts to check /dev/kvm directly, which works correctly on both x86 and ARM. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The distro-qemu tests only need a handful of shared libraries (libc, libm, ld-linux, libgcc_s) and basic shell utilities. Replace the full debootstrap rootfs (~150-300MB) with a minimal rootfs that copies just the needed shared libraries from the host and uses busybox-static for shell/utilities. This reduces the initramfs from ~50MB to ~5MB and eliminates the debootstrap download/install step entirely. The rootfs now contains only: - busybox (static) for sh, mount, dmesg, poweroff, etc. - Shared libraries detected via ldd on the test binaries - libm.so (explicitly copied for rtld dlopen test) - Test binaries and parcagpu .so Also removes the DISTRO/RELEASE/MIRROR configuration and sudo requirements (no more chroot operations). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add ::> timing markers to build-and-run.sh to profile where time is spent: parcagpu download, go test -c, rootfs creation, initramfs creation, QEMU execution, and per-test timing inside the VM. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The initramfs (test binaries + busybox + shared libs) is arch-specific but kernel-independent. Split into: - build-distro-qemu-initramfs: builds once per arch, uploads artifact - distro-qemu-tests: downloads initramfs + kernel, runs QEMU only This avoids rebuilding Go test binaries and the rootfs for every kernel version (was ~46s per job on amd64: 27s go build + 15s rootfs + 4s initramfs). Each test job now only needs QEMU + kernel download. The build-and-run.sh wrapper is kept for local development convenience.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See commits