-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update go-containerregistry #599
Conversation
Update go-containerregistry since it can now handle image names of the format repo:tag@digest. Should fix GoogleContainerTools#535. Thanks @viceice for the fix!
@priyawadhwa Is the failing check a problem? |
Hmm it seems like go-containerregistry is complaining about pushing an image with a bunch of the same layer (Dockerfile__test_copy_same_file_many_times)
if I cut down the number of cc @dlorenc, @jonjohnsonjr have you seen this before? |
That's a real error from GCR, probably this: https://cloud.google.com/storage/docs/key-terms#immutability cc @imjasonh maybe the streaming layer stuff introduced this? We could handle errors better with retries but ideally we wouldn't be trying to PUT the same blobs. I guess in real-life images this would never happen. @priyawadhwa what is this testing? Looking at some of the output artifacts, it's really bizarre to me that not all the layers end up being the same. |
AFAIK Kaniko doesn't use Maybe there's some problem with uploading all the layers in concurrent goroutines, and when there are >10 identical blobs uploading at once they're more likely to conflict during a write? Just a guess, I don't actually know how GCR works. |
We could something similar to this but with |
From GCS docs:
|
Try again! |
Whoohoo! |
Thanks @jonjohnsonjr & @imjasonh! This Dockerfile is meant to be testing snapshotting (ref #289) |
Update go-containerregistry since it can now handle image names of the
format repo:tag@digest.
Should fix #535.
Thanks @viceice for the fix!