Skip to content

ci: fall back to plain build frontend for odd-arch wheels - #246

Merged
bdraco merged 1 commit into
masterfrom
fix-odd-arch-uv-cibuildwheel
May 19, 2026
Merged

bdraco merged 1 commit into
masterfrom
fix-odd-arch-uv-cibuildwheel

Conversation

@bdraco

@bdraco bdraco commented May 19, 2026

Copy link
Copy Markdown
Member

What do these changes do?

Override CIBW_BUILD_FRONTEND=build for the QEMU-emulated
odd-arch wheel matrix (aarch64, armv7l, ppc64le,
riscv64, s390x x manylinux/musllinux) in
.github/workflows/reusable-build-wheel.yml, so cibuildwheel
uses plain pip to drive the per-ABI builds inside those
containers.

pyproject.toml sets build-frontend = "build[uv]", which
requires a uv binary on PATH inside the build container.
The pypa tested-arch manylinux/musllinux images ship uv
preinstalled, but the odd-arch images do not, which makes
every odd-arch matrix cell fail at
cibuildwheel: Command ['which', 'uv'] failed with code 1.

The override lives in the existing Prepare emulation step
(which already runs only when inputs.qemu is set), keeping
the tested-arch matrix on build[uv] and falling back to
plain build only for the QEMU-emulated odd-arch matrix.

This is a port of aio-libs/yarl#1720 adapted to
propcache's reusable-workflow structure.

Are there changes in behavior for the user?

No user-visible API change. Restores production of odd-arch
wheels in future releases.

Related issue number

N/A

Checklist

  • I think the code is well written
  • Unit tests for the changes exist; N/A, CI workflow change
  • Documentation reflects the changes; N/A
  • Add a new news fragment into the CHANGES/ folder
Agent run details (optional, for reviewers)
  • The build-wheels-for-odd-archs matrix is gated on pre-deploy,
    which only runs on tag pushes; this change cannot be smoke-tested
    on a PR. Verification path is the next tagged release.
  • make doc-spelling runs clean on the news fragment locally; the
    two remaining warnings (subdirectory in CHANGES/207.contrib.rst
    and postfix in CHANGES.rst:168) are pre-existing on master
    and not introduced by this change. CI's spellcheck-docs is
    currently green on master, so the local-vs-CI discrepancy is
    likely sphinxcontrib-towncrier version drift, the same
    environment quirk noted on the upstream yarl PR.
  • New wordlist entries: QEMU, preinstalled, pypa, pyproject.
  • Pre-commit ran clean on the commit.

Drafted with Claude Code (Opus 4.7); reviewed by @bdraco before flipping out of draft.

Override CIBW_BUILD_FRONTEND=build for the QEMU-emulated odd-arch
matrix (aarch64, armv7l, ppc64le, riscv64, s390x x
manylinux/musllinux). The pypa odd-arch container images do not
ship uv preinstalled, so cibuildwheel cannot honour the
build-frontend = "build[uv]" set in pyproject.toml inside those
containers; without the override every odd-arch build fails at
Command ['which', 'uv'] failed with code 1.
@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label May 19, 2026
@bdraco
bdraco marked this pull request as ready for review May 19, 2026 16:50
@bdraco
bdraco merged commit 2ef2907 into master May 19, 2026
14 checks passed
@bdraco
bdraco deleted the fix-odd-arch-uv-cibuildwheel branch May 19, 2026 16:50
@codspeed

codspeed Bot commented May 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 4 untouched benchmarks


Comparing fix-odd-arch-uv-cibuildwheel (f236cfc) with master (e6a5b70)

Open in CodSpeed

@codecov

codecov Bot commented May 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.54%. Comparing base (e6a5b70) to head (f236cfc).
⚠️ Report is 34 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #246   +/-   ##
=======================================
  Coverage   99.54%   99.54%           
=======================================
  Files          10       10           
  Lines         439      439           
  Branches       17       17           
=======================================
  Hits          437      437           
  Misses          2        2           
Flag Coverage Δ
CI-GHA 97.49% <ø> (ø)
OS-Linux 97.49% <ø> (ø)
OS-Windows 94.53% <ø> (ø)
OS-macOS 94.53% <ø> (ø)
Py-3.10 94.53% <ø> (ø)
Py-3.11 96.12% <ø> (ø)
Py-3.12 96.12% <ø> (ø)
Py-3.13 96.12% <ø> (ø)
Py-3.14 96.10% <ø> (ø)
Py-3.14t 96.10% <ø> (ø)
Py-pypy-3.10 78.13% <ø> (ø)
VM-macos-latest 94.53% <ø> (ø)
VM-ubuntu-latest 97.49% <ø> (ø)
VM-windows-11-arm 94.30% <ø> (ø)
VM-windows-latest 94.53% <ø> (ø)
pytest 97.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant