test: local multi-platform image must satisfy the missing pull policy - #14025
Open
ndeloof wants to merge 1 commit into
Open
test: local multi-platform image must satisfy the missing pull policy#14025ndeloof wants to merge 1 commit into
ndeloof wants to merge 1 commit into
Conversation
Regression test for #14007: with the containerd image store, a local multi-platform image holding the requested non-native variant must be used as-is by the default missing pull policy — compose used to inspect the image without a platform, compare the host variant's platform fields to the requested one, conclude the image is missing and try to pull the (unpublished) tag. The test fails on main and passes with #14011, whose platform check resolves the requested platform against the locally available manifests. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This was referenced Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
E2E regression test for #14007: with the containerd image store, a local multi-platform image holding the requested non-native variant must satisfy the default
missingpull policy — compose used to inspect the image without a platform, compare the host variant's platform fields to the requested one, and wrongly pull the (unpublished) tag.The test stores both the native and the requested variants of
alpineunder a tag that doesn't exist on any registry, then runscompose createfor the non-native platform (same image-resolution path asup, no emulation needed) and asserts no pull happens and the created container is the requested variant. It skips when the containerd image store is not enabled — it runs in the containerd CI job introduced by #14011.Verified locally: fails on
main(reproduces the issue exactly), passes with #14011, whose platform check resolves the requested platform against the locally available manifests. #14011 is the fix for #14007 — this test is meant to be merged alongside/after it, and stays red until then.Related issue
Reproduces #14007, fixed by #14011.