-
Notifications
You must be signed in to change notification settings - Fork 379
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
WIP HACK: Do not reuse zstd:chunked blobs #2185
Conversation
thanks for the PR, I've tested it but we still get:
Should we also skip writing in the cache when dealing with zstd:chunked and expect it is always repushed for now? |
@mtrmac Podman tests pass if I also add (4b733c9):
Are you fine to cherry-pick the patch in this PR and moving it forward? |
Doing that in I don’t think that should completely skip recording the digest pairs; at least the We still need the |
741b5b3
to
4692256
Compare
Updated per the above. I think the net result is that “zstd:chunked” pushes will look for, and often reuse, gzip-compressed layers (unless things like |
#2189 updated to note these two workarounds. |
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
Late thought, this is actually a deeper issue: If a zstd:chunked-blob without the required annotations “is a legitimate zstd blob” (and it seems to me that it makes sense to treat it that way (?)), we could really end up trying to record both algorithms in the BIC for “legitimate reasons”. So I guess the BIC will also need to learn about the “is a compatible superset of” relationship. |
Signed-off-by: Miloslav Trmač <[email protected]>
Signed-off-by: Miloslav Trmač <[email protected]>
4692256
to
3ebd43c
Compare
Absolutely untested.
For @giuseppe to experiment with.