Fetch image with default platform only in TestExportAndImportMultiLayer#11881
Conversation
`TestExportAndImportMultiLayer` has been very flaky due to upstream registry throttling/unavailability. E.g., https://github.com/containerd/containerd/actions/runs/15168768477/job/42653479864 ```shell log_hook.go:47: time="2025-05-21T17:42:37.345336659Z" level=debug msg="fetch failed" func=docker.dockerFetcher.open file="/home/runner/work/containerd/containerd/core/remotes/docker/fetcher.go:470" digest="sha256:5178da1ca6af8a14a235f58eb31955ca5f4c72f950d35f9bb67a8bd20232d840" error="unexpected status code https://mcr.microsoft.com/v2/windows/nanoserver/blobs/sha256:5178da1ca6af8a14a235f58eb31955ca5f4c72f950d35f9bb67a8bd20232d840: 503 Service Unavailable" mediatype=application/vnd.docker.image.rootfs.foreign.diff.tar.gzip size=116254563 testcase=TestExportAndImportMultiLayer url="https://mcr.microsoft.com/v2/windows/nanoserver/blobs/sha256:5178da1ca6af8a14a235f58eb31955ca5f4c72f950d35f9bb67a8bd20232d840" ``` Notice this test fetches all platform images which is unnecessary I think. E.g., the 503 from mcr above caused Linux test failures. This change should reduce requests to `mcr.microsoft.com`. Signed-off-by: Jin Dong <[email protected]>
|
Skipping CI for Draft Pull Request. |
|
/test all |
|
@AkihiroSuda @dmcgowan could you help PTAL this PR? Thanks! |
|
still seeing the issue in recent runs https://github.com/containerd/containerd/actions/runs/15431726124/job/43430766180?pr=11578 Can we merge this PR? 🙏 thanks @AkihiroSuda @dmcgowan @fuweid |
|
I found this error show up in windows platform. so, it only works in linux platform. |
Yeah it may appear in any platform pulling from MCR. My hope is by eliminating it on Linux, the CI can be less flaky :) |
|
/cherry-pick release/2.1 |
|
/cherry-pick release/2.0 |
|
@estesp: new pull request created: #11943 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@estesp: new pull request created: #11944 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
TestExportAndImportMultiLayerhas been very flaky due to upstream registry throttling/unavailability. E.g.,https://github.com/containerd/containerd/actions/runs/15168768477/job/42653479864
Notice this test fetches all platform images which is unnecessary I think. E.g., the 503 from mcr above caused Linux test failures. This change should reduce requests to
mcr.microsoft.com.