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 |
|
containers/container-libs#205 updated to note these two workarounds. |
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č <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
4692256 to
3ebd43c
Compare
Absolutely untested.
For @giuseppe to experiment with.