c8d/list: Fix shared size calculation #47597
Merged
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.
Fix diffIDs being outputted instead of chainIDs
The
identity.ChainIDs
call was accidentally removed in b37ced2.This broke the shared size calculation for images with more than one layer that were sharing the same compressed layer.
Handle unpacked layers when calculating shared size
After a535a65 the size reported by the image list was changed to include all platforms of that image.
This made the "shared size" calculation consider all diff ids of all the platforms available in the image which caused "snapshot not found" errors when multiple images were sharing the same layer which wasn't
unpacked.
Found by @milas
- What I did
- How I did it
- How to verify it
This was could be reproduced with:
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)