8000 [63] Release smoke for 32-bit ARM: run in a container of the board's architecture by alexbeeken · Pull Request #66 · alexbeeken/skrongle-mini · GitHub
[go: up one dir, main page]

Skip to content

[63] Release smoke for 32-bit ARM: run in a container of the board's architecture - #66

Merged
alexbeeken merged 1 commit into
mainfrom
ci/armv6-smoke-sysroot
Nov 9, 2026
Merged

alexbeeken merged 1 commit into
mainfrom
ci/armv6-smoke-sysroot

Conversation

@alexbeeken
Copy link
Copy Markdown
Owner

What this PR is for

  • The v0.2.0 release run failed on armv6l: "Illegal instruction" in the qemu smoke step. The binary is fine; the step loaded Ubuntu's armhf C library, which is ARMv7 and faults on an emulated ARMv6 core before our code runs.
  • scripts/qemu-smoke.sh now 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.
  • Verified locally with the 0.2.0 candidate binaries: both architectures print their version and answer /healthz under the strict CPUs.

How to QA it

  • scripts/build-pi.sh armv6l && scripts/qemu-smoke.sh armv6: prints machine: 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-smoke prints nothing: the scratch folder is removed.
  • After merging: move the v0.2.0 tag to main and watch the release workflow's four build jobs pass.

Part of #63

🤖 Generated with Claude Code

…, 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>
@alexbeeken
alexbeeken enabled auto-merge November 9, 2026 17:28
@alexbeeken
alexbeeken merged commit a8c2f25 into main Nov 9, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0