Skip to content

🤖 ci: harden runners (native arm64, retry builds, macOS off PRs, drop i686) - #75

Merged
dancergraham merged 6 commits into
mainfrom
ci/runner-reliability
Dec 1, 2026
Merged

dancergraham merged 6 commits into
mainfrom
ci/runner-reliability

Conversation

@dancergraham

@dancergraham dancergraham commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Fixes the recurring CI flakiness and macOS queueing.

Root causes (from recent run logs)

  • macOS: The job was not acquired by Runner of type hosted even after multiple attempts. Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times. Jobs got cancelled after 15 minutes without running any steps, several times (e.g. run 46702814365 needed 4 attempts).
  • Linux: inside the maturin container, Install maturin does an unretried curl | tar from GitHub releases. A ~430-byte error response made tar fail with gzip: stdin: not in gzip format (linux x86_64 and musllinux aarch64 on 2026-12-01).
  • i686: manylinux: auto means the manylinux2014 (CentOS 7) image, which can't resolve vault.centos.org on ubuntu-26.04 runners.

Changes (one commit each)

  • Job timeouts: 30 min for wheel builds, 15 min for everything else. The default was 6 h.
  • Drop 32-bit Linux wheels (manylinux and musllinux i686). numpy publishes no i686 Linux wheels, so these were only usable by people who build numpy from source. Windows x86 stays, since numpy still ships win32 wheels. This changes which artifacts get published, so it needs a changelog line.
  • Build aarch64 Linux wheels natively on ubuntu-24.04-arm runners instead of cross-compiling and testing under QEMU, which removes run-on-arch-action. musllinux tests now run in a native python:3.14-alpine container, which adds test coverage for musllinux x86_64 too.
  • macOS still runs on PRs, but with continue-on-error there, so a capacity cancellation or a failure no longer fails the PR run. On main and tags it still fails the run, and attest/publish still needs: macos. The runner moves macos-15 → macos-26, though that doesn't fix capacity: the macos-26 job in the manual run was cancelled the same way ("not acquired by Runner of type hosted").
  • Retry each maturin build step once, and pin maturin-version: v1.16.0. Dependabot won't bump that pin.

Verification

  • actionlint: clean
  • zizmor --offline: no findings. It warns that YAML anchors (used to share with: between the build and retry steps) limit its analysis.
  • PR CI: green.
  • Wheels compared with main (run 46700792712): 66 → 50 (44 without the macOS 6). Lost: 15 i686 wheels (intended), plus pp312 manylinux aarch64. That one came from the cross-compile image; the native manylinux2014_aarch64 image only has PyPy 3.11, which matches x86_64. It was never tested anyway (the pytest job skips PyPy).
  • Not verified: whether continue-on-error keeps the run green when GitHub cancels a job that never got a runner, as opposed to a job that failed. That will show the next time capacity runs out.

Deliberately not done

  • Didn't move to manylinux: 2_28: it would raise the glibc floor from 2.17 to 2.28 for users.
  • Linux arm runners stay on 24.04: the manylinux2014 container has the same DNS problem on 26.04 images.
  • New platforms (Windows arm64) go in a separate PR.

🤖 Generated with Claude Code

dancergraham and others added 5 commits December 1, 2026 20:55
The default 6h timeout let stuck jobs burn runner minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
numpy ships no i686 wheels for manylinux or musllinux, so these wheels
were only installable by users building numpy from source. The i686
manylinux2014 container also failed DNS on ubuntu-26.04 runners and
needed explicit interpreter lists to dodge 3.14t on 32-bit.

Windows x86 stays: numpy still publishes win32 wheels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces cross-compilation plus QEMU (run-on-arch-action) with
ubuntu-24.04-arm runners, which are free for public repos. Tests now run
directly on the runner (glibc) or in a native python:alpine container
(musl), which also adds test coverage for musllinux x86_64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macOS arm64 hosted runners are capacity-constrained: jobs regularly went
unassigned for 15 minutes and were cancelled ("The job was not acquired
by Runner of type hosted even after multiple attempts"), blocking PRs.
Build on main, tags and workflow_dispatch only; attest still requires
the job. Move from macos-15 to macos-26 (macos-latest).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
maturin-action installs maturin inside the build container with an
unretried curl | tar from GitHub releases; a transient error page made
tar fail with "not in gzip format" on linux x86_64 and musllinux aarch64.
Retry the build step once, and pin maturin-version so releases don't
change builds unannounced (dependabot won't bump it; update manually).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The macos-26 runner hit the same capacity cancellations as macos-15, so
skipping macOS on PRs lost coverage without fixing anything. Run it on
PRs with continue-on-error instead; main and tags still require it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dancergraham
dancergraham marked this pull request as ready for review December 1, 2026 20:34
@dancergraham
dancergraham merged commit d2edeb6 into main Dec 1, 2026
23 of 24 checks passed
@dancergraham
dancergraham deleted the ci/runner-reliability branch December 1, 2026 20:34
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