Skip to content

CI: run the Fedora aarch64 build test natively under PRoot - #65

Merged
Gajesh2007 merged 2 commits into
mainfrom
ci/native-fedora-aarch64
Nov 14, 2026
Merged

Gajesh2007 merged 2 commits into
mainfrom
ci/native-fedora-aarch64

Conversation

@Gajesh2007

Copy link
Copy Markdown
Member

Summary

Linux Fedora (aarch64) moves from GitHub's hosted ARM runner (a fedora:42 container) to Darkbloom Linux ARM64 runners. The sandbox has no Docker, so the new .github/scripts/fedora-proot/fedora_proot.py runs the unchanged .github/scripts/setup+build-cpp-linux-fedora-container.sh on the PR's own checkout in a Fedora 42 userspace under PRoot.

  • Rootfs: the official archived Fedora 42 container image from archives.fedoraproject.org.
    • It is pinned three ways: the OCI archive's SHA-256 (as listed in Fedora's GPG-signed CHECKSUM file), the manifest digest, and the single layer's digest and size.
    • Only that layer is unpacked, with path-traversal, duplicate, whiteout and hardlink/symlink checks.
  • PRoot 5.4.1: built in the job from pinned source plus pinned Ubuntu talloc/pkgconf debs.
    • The build adds the faccessat2 (439) entry that PRoot's ARM64 syscall table lacks; without it, guest test -x and similar checks read host paths.
    • The patched table's SHA-256 is recorded.
  • dnf: points at the archived Fedora 42 releases and updates repositories with gpgcheck.
  • Smoke step, before the build: checks Fedora identity, fake root, guest path translation (test -x /usr/bin/dnf, test ! -x /usr/bin/apt-get) and no_new_privs. A dnf makecache network check follows, then the build test.
  • Downloads: pinned downloads retry up to 3 times, removing any partial file first.
  • Isolation: PRoot fakes root through ptrace. It is not an isolation boundary; the single-use job VM is. There is no sudo and no Docker.
  • Fedora x86_64 stays hosted: emulating x86 on ARM was not qualified (qemu-x86_64 8.2.2 hit an internal SIGSEGV).

Evidence

  • Native canary: the same flow passed (with a pinned MLX source instead of the checkout).
    • Result: doctest 286/286 passed, 9,662 assertions, 0 skipped.
    • The patched PRoot table's SHA-256 was b2d81c57….
    • The attempt ran natively on the qualified image 6fa418ed; its receipt was verified and the VM physically retired.
  • This PR's CI runs the new job on the checkout.
  • Tests: .github/scripts/fedora-proot/test_fedora_proot.py has 19 offline tests (OCI/layer pins, tar safety, the PRoot table patch, download retries, repository rewrite).

🤖 Generated with Claude Code

Gajesh2007 and others added 2 commits November 13, 2026 21:11
The Linux Fedora (aarch64) job ran the Fedora build script in a fedora:42
container on GitHub's hosted ARM runner. Darkbloom sandboxes have no
Docker, so .github/scripts/fedora-proot/fedora_proot.py now runs the same
unchanged script, on the PR's own checkout, in a Fedora 42 userspace:

- the official archived Fedora 42 container image from
  archives.fedoraproject.org, pinned by archive SHA-256 (as in Fedora's
  signed CHECKSUM), manifest and single-layer digest; only that layer is
  unpacked, with traversal, duplicate, whiteout and link checks;
- PRoot 5.4.1 built in the job from pinned source and pinned Ubuntu
  talloc/pkgconf packages, with the faccessat2 entry its ARM64 syscall
  table lacks (otherwise guest access checks read host paths);
- dnf pointed at the archived Fedora 42 releases/updates repositories with
  gpgcheck, a smoke step that checks Fedora identity, fake root, guest
  path translation and no_new_privs, then the build test;
- bounded retries for the pinned downloads.

The same flow passed its native canary (286/286 tests, 0 skipped). The
Fedora x86_64 job keeps its hosted runner: emulating x86 on ARM was not
qualified (QEMU 8.2.2 crashed). PRoot is not an isolation boundary; the job
VM is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up on the first head (Check Lint failed, so the Fedora job
never ran):
- ruff check/format clean (long lines reflowed, unused imports removed);
- print the evidence summary (PRoot and patched-table SHA-256, step
  timings) in the log, and a step's log when it times out;
- a body shorter than its pinned size is now retried like other failures;
- the job checks its runner tools and runs the helper's 19 offline tests
  before the build; tests cover the stale partial file, truncated bodies
  and the attempt bound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gajesh2007
Gajesh2007 marked this pull request as ready for review November 14, 2026 05:47
@Gajesh2007
Gajesh2007 merged commit 6802d90 into main Nov 14, 2026
22 checks passed
Gajesh2007 added a commit that referenced this pull request Nov 14, 2026
Review follow-up to #65: the stale .part test passed even without the
up-front unlink, because the first attempt's FileExistsError was caught,
the failure path removed the file and the retry succeeded (after a real
5-second sleep). It now patches sleep and asserts a single download
attempt; with the up-front unlink removed it fails. A step that times out
is also recorded in the evidence ("exit": "timeout").

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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