Skip to content

chore: add unit tests for OCIContainer._get_platform_args#2878

Merged
henryiii merged 2 commits into
pypa:mainfrom
mayeut:oci_container-more-tests
May 31, 2026
Merged

chore: add unit tests for OCIContainer._get_platform_args#2878
henryiii merged 2 commits into
pypa:mainfrom
mayeut:oci_container-more-tests

Conversation

@mayeut

@mayeut mayeut commented May 31, 2026

Copy link
Copy Markdown
Member

In the context of checking one potential issue reported in #2854, I checked if the we could get rid of the _get_platform_args workaround at some point but the issue is still opened.

I can only report that the behaviour is now correct without the workaround on macOS with the latest Docker Desktop version, using containerd.

The behaviour of cibuildwheel can likely be different when working using multi-platform images depending on docker configuration. The impact is mostly when doing a qemu driven build and using a moving image tag such as latest: a tag update will trigger a download rather than re-use an already present image. It's probably a niche use-case+configuration combination or it would have already been reported if deemed important.

mayeut added 2 commits May 31, 2026 15:56
While this was already tested indirectly through `test_local_image`, this makes the behaviour check of `OCIContainer._get_platform_args` clear.
@henryiii henryiii merged commit acdba60 into pypa:main May 31, 2026
45 checks passed
@mayeut mayeut deleted the oci_container-more-tests branch June 1, 2026 05:25
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.

3 participants