Repository navigation
[63] Release smoke for 32-bit ARM: run in a container of the board's architecture - #66
Merged
Merged
Conversation
…, not Ubuntu's armhf libc The v0.2.0 release run failed on armv6l with "Illegal instruction" in "Run the binary under qemu". Not the binary: the step ran it with libc6-armhf-cross, Ubuntu's armhf glibc, which is built for ARMv7 and faults on the emulated ARM1176 before our code runs. With Raspbian 11's glibc the same binary prints its version and answers /healthz under QEMU_CPU=arm1176. scripts/qemu-smoke.sh now runs the binary in a Docker container of the target architecture (balenalib/rpi-raspbian:bullseye for armv6, arm32v7/debian:bullseye-slim for armv7) with QEMU_CPU pinned to the oldest core the build must run on, installing the binfmt handlers when the host lacks them; /healthz is checked from the host through a published port. Its scratch folder lives under dist/, so a Docker that runs in a VM sees it. The workflow step drops the apt installs. Part of #63 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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 applie
3079
d 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.
What this PR is for
scripts/qemu-smoke.shnow runs the binary in a container of the target architecture (Raspbian 11 for armv6, Debian 11 for armv7) with the emulated CPU pinned to the oldest core that build must run on. The workflow step just calls it./healthzunder the strict CPUs.How to QA it
scripts/build-pi.sh armv6l && scripts/qemu-smoke.sh armv6: printsmachine: armv6l (QEMU_CPU=arm1176, …),version: skrongle 0.2.0,healthz: ok …. The first run installs the QEMU handlers (one privileged container).scripts/build-pi.sh armv7l && scripts/qemu-smoke.sh armv7: the same for armv7l under a Cortex-A7.ls -a dist | grep qemu-smokeprints nothing: the scratch folder is removed.v0.2.0tag to main and watch the release workflow's four build jobs pass.Part of #63
🤖 Generated with Claude Code