From f01c1955a9fe2bead5e6259c4285439ecb83c5f1 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 2 Jun 2026 00:42:44 -0400 Subject: [PATCH] fix: pass platform args to linux32 deadlock sanity check (#2888) The linux32 sanity check added in #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 --- cibuildwheel/oci_container.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index 7fd0a3d1..2b65624f 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -301,7 +301,14 @@ class OCIContainer: if container_machine not in {"i686", "armv7l", "armv8l"}: simulate_32_bit = True # sanity check to ensure no deadlock waiting for container to start - call(*run_cmd, self.image, "linux32", "/bin/true", capture_stdout=True) + call( + *run_cmd, + *platform_args, + self.image, + "linux32", + "/bin/true", + capture_stdout=True, + ) shell_args = ["linux32", "/bin/bash"] if simulate_32_bit else ["/bin/bash"]