ci: split distro-qemu into build-initramfs + run-qemu jobs#241
Merged
Conversation
Split the monolithic build-and-run.sh into two scripts: - build-initramfs.sh: builds test binaries, downloads parcagpu, creates debootstrap rootfs, and packs the initramfs (once per arch) - run-qemu.sh: boots a kernel with the pre-built initramfs in QEMU In CI, a new build-distro-qemu-initramfs job runs once per arch on native runners (no cross-compilation needed), uploads the initramfs as an artifact, and the per-kernel distro-qemu-tests jobs download it. This eliminates redundant Go compilation, debootstrap, and parcagpu downloads across 10 amd64 + 4 arm64 kernel matrix entries. The run jobs now only need QEMU installed. build-and-run.sh remains as a thin wrapper for local development. Tested locally: build-initramfs.sh + run-qemu.sh pass on 6.6.31. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b953a6a to
9a1f0ae
Compare
umanwizard
approved these changes
Mar 11, 2026
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.
Summary
build-and-run.shintobuild-initramfs.sh+run-qemu.shbuild-distro-qemu-initramfsCI job builds the initramfs once per arch on native runners, uploads as artifactdistro-qemu-testsjobs download the pre-built initramfs and only run QEMU — no Go, debootstrap, parcagpu, or cross-compilation packages neededbuild-and-run.shremains as a thin wrapper for local developmentTest plan
build-initramfs.sh+run-qemu.shlocally on kernel 6.6.31 (all tests pass)build-and-run.shwrapper locally🤖 Generated with Claude Code