-
Notifications
You must be signed in to change notification settings - Fork 17
Preserve layer annotations when pushing from c/storage #299
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
Conversation
Note to self: Within the monorepo, synchronized updates work – but the Skopeo test needs also vendoring in c/storage. |
Right which is why we must be careful when releasing stuff here so the inter dependencies are still getting resolved correctly, go.work only applies in the repo and not for consumers of the modules. Do you add a commit here to also add a storage vendor to the skopeo tests, and then I guess while at it we might as well do common as well? |
Fix confirmed by containers/skopeo#2686 (comment) . |
66ea21d
to
b4a2ea6
Compare
This is ~necessary to benefit from the monorepo, so that interdependent updates to c/storage and c/image are tested as a single unit by the Skopeo test. Proven in containers#299 . Signed-off-by: Miloslav Trmač <mitr@redhat.com>
I have separately filed #304 to run Skopeo tests against all repos, marking this one as draft until that merges. |
This is ~necessary to benefit from the monorepo, so that interdependent updates to c/storage and c/image are tested as a single unit by the Skopeo test. Proven in containers#299 . Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This is ~necessary to benefit from the monorepo, so that interdependent updates to c/storage and c/image are tested as a single unit by the Skopeo test. Proven in containers#299 . Signed-off-by: Miloslav Trmač <mitr@redhat.com>
b4a2ea6
to
bf127aa
Compare
Ready for review, PTAL. |
bf127aa
to
5af3096
Compare
Be clearer about which fields of the physicalInfos parameter are relevant edits, and which are clearly not an input to the operation. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This is not _exactly_ related to the "toc", but it is in the same general area of "data that can, and needs to be, used by code that has no other dependencies on zstd:chunked", so this proposes to reuse the existing subpackage. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Fixes containers/skopeo#2686 . Signed-off-by: Miloslav Trmač <mitr@redhat.com>
We hard-code the contents to be the gzipped form, so ensure we also use a gzip MIME type. To make the test more explicit / representative, use the uncompressed MIME type for non-empty layers in physicalInfos. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
5af3096
to
f30d961
Compare
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.
LGTM
@giuseppe PTAL
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.
/lgtm
@giuseppe we don't have the merge bot active here, need to manually merge. |
This should fix containers/skopeo#2686 . (Only unit-tested.)
Also, always use a correct gzip MIME type when pushing (the deprecated schema1) empty layers.
See individual commits for details.
Cc: @jankaluza @Luap99 — let’s see whether/how the monorepo truly helps with cross-module PRs.