Visitar URL original
fix: pass platform args to linux32 deadlock sanity check by henryiii · Pull Request #2888 · pypa/cibuildwheel · GitHub
Skip to content

fix: pass platform args to linux32 deadlock sanity check - #2888

Merged
mayeut merged 1 commit into
pypa:mainfrom
henryiii:fix-linux32-sanity-platform-args
Jun 2, 2026
Merged

mayeut merged 1 commit into
pypa:mainfrom
henryiii:fix-linux32-sanity-platform-args

Conversation

@henryiii

@henryiii henryiii commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🤖 AI text below 🤖

The linux32 sanity check added in #2880 (which proactively surfaces a linux32 failure so it raises here instead of deadlocking later) omits *platform_args, unlike every other run/create command in __enter__ — the two uname -m probes and the create call all include it.

This matters specifically on the i386 fallback path: if the initial i386 probe fails, platform_args is reassigned to AMD64. Without forwarding it, the sanity check runs with no --platform/--pull, so on a multi-platform / containerd image backend the engine can select a different image variant than the one actually being built — making the check validate the wrong variant (or pull a different one), which defeats its purpose.

This forwards *platform_args to match the surrounding calls.

Testing

  • uv run pytest unit_test/oci_container_test.py passes (the simulate_32_bit branch is exercised by the docker/podman emulation integration tests test_local_image / test_multiarch_image on i386/ARMV7, which require --run-docker/--run-podman).
  • prek -a clean.

The linux32 sanity check added in pypa#2880 omitted `*platform_args`, unlike
the surrounding `uname -m` probes and the `create` command. On the i386
fallback path `platform_args` is reassigned to AMD64, so without
forwarding it the check could run against a different image variant than
the one actually built (e.g. on a multi-platform/containerd backend),
making the check meaningless or pulling the wrong variant.

Assisted-by: ClaudeCode:claude-opus-4.8
@mayeut
mayeut merged commit f01c195 into pypa:main Jun 2, 2026
45 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.

2 participants