Closed LewisGaul closed 10 months ago
This testcase was added only a couple of months ago in https://github.com/gabrieldemarmiesse/python-on-whales/pull/492, although it passed in the CI at the time. I'm not sure exactly what's changed here to cause the breakage though, perhaps the docker API/registry no longer supports pulling images that are for an architecture not supported by the host? @d4nj1 any thoughts?
Note two of the other testcases in that file were also marked to be skipped in CI back in May...
Hi @LewisGaul , could it be that the CI system changed from arm64 to amd64? At least the error message complains about platform not matching. There are two things you could test:
docker pull --platform linux/arm64 arm64v8/busybox:1.35
docker pull busybox:1.35
Does this help?
Hi @LewisGaul , I looked a bit deeper and I think two things come together here.
--platform=PLATFORM
.
Output of docker pull --help
Usage: docker pull [OPTIONS] NAME[:TAG|@DIGEST]
Download an image from a registry
Aliases:
docker image pull, docker pull
Options:
-a, --all-tags Download all tagged images in the repository
--disable-content-trust Skip image verification (default true)
--platform string Set platform if server is multi-platform capable
-q, --quiet Suppress verbose output
Sadly python-on-whales does not support this at the moment. Only quiet option is implemented, see here.
Conclusion: Easiest way to proceed would be to remove the variant test as it's currently broken anyways. Ideally the functionality from 1. should be implemented.
I just added a PR with a fix. Let's wait for review.
@d4nj1 thanks so much for helping out! I'll give it a few days in case @gabrieldemarmiesse wants to take a look but otherwise I can approve/merge to get the CI green again :)
Many thanks for the help, I'll take a look this afternoon :)
Test fails in CI with:
Also seen running manually with docker and podman: