-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix manifest e2e test assumption #21878
test: fix manifest e2e test assumption #21878
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
b743ae4
to
2243de6
Compare
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Just one comment nit, really.
test/e2e/manifest_test.go
Outdated
@@ -16,6 +17,50 @@ import ( | |||
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1" | |||
) | |||
|
|||
// validateManifestHasAllArchs checks that the specified manifest has all | |||
// the archs in `imageListInstance` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// the archs in `imageListInstance` | |
// the archs in `imageList` |
; imageListInstance
seems to refer to the individual imageListARM64InstanceDigest
platform.
Aesthetically I’d prefer this to be a neutral utility, with the list of expected architectures passed by the individual test as a parameter (and possibly an imageListAllArchitectures
constant, near imageList
, used to hold that value).
fix an assumption in the test, that the --compression-format is unchanged from the original image. Instead validate that all the required architectures are part of the manifest. Signed-off-by: Giuseppe Scrivano <[email protected]>
2243de6
to
c50826c
Compare
/lgtm |
LGTM |
Thanks again! |
fix an assumption in the test, that the --compression-format is unchanged from the original image.
Instead validate that all the required architectures are part of the manifest.
Does this PR introduce a user-facing change?