Repository navigation
🤖 ci: harden runners (native arm64, retry builds, macOS off PRs, drop i686) - #75
Merged
Merged
Conversation
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>
This was referenced Dec 1, 2026
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>
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.
Fixes the recurring CI flakiness and macOS queueing.
Root causes (from recent run logs)
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).Install maturindoes an unretriedcurl | tarfrom GitHub releases. A ~430-byte error response made tar fail withgzip: stdin: not in gzip format(linux x86_64 and musllinux aarch64 on 2026-12-01).manylinux: automeans the manylinux2014 (CentOS 7) image, which can't resolvevault.centos.orgon ubuntu-26.04 runners.Changes (one commit each)
ubuntu-24.04-armrunners instead of cross-compiling and testing under QEMU, which removesrun-on-arch-action. musllinux tests now run in a nativepython:3.14-alpinecontainer, which adds test coverage for musllinux x86_64 too.continue-on-errorthere, 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 stillneeds: macos. The runner movesmacos-15→macos-26, though that doesn't fix capacity: themacos-26job in the manual run was cancelled the same way ("not acquired by Runner of type hosted").maturin-version: v1.16.0. Dependabot won't bump that pin.Verification
actionlint: cleanzizmor --offline: no findings. It warns that YAML anchors (used to sharewith:between the build and retry steps) limit its analysis.pp312manylinux aarch64. That one came from the cross-compile image; the nativemanylinux2014_aarch64image only has PyPy 3.11, which matches x86_64. It was never tested anyway (the pytest job skips PyPy).continue-on-errorkeeps 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
manylinux: 2_28: it would raise the glibc floor from 2.17 to 2.28 for users.🤖 Generated with Claude Code