-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fix BuildKit and BuildAh image digest extraction #1026
Fix BuildKit and BuildAh image digest extraction #1026
Conversation
1f25f6d
to
f582d08
Compare
23a1aa4
to
5d2a68f
Compare
5d2a68f
to
3e5b6d7
Compare
/approve I've also pinged a buildah team member about the item @SaschaSchwarze0 noted ... awaiting feedback |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gabemontero The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Nice. I left a comment on Buildah, I cannot properly judge if the proposed changes on the strategy are the right thing to do, asking to move this into an Issue. We can work on this offline if needed. The rest of the PR can go in as it enhance e2e.
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
Changes
There was a change recently in BuildKit: its exported metadata file was changed to be formatted. Previously it was a single line JSON. Now, it is a formatted JSON. That required a change to the logic to extract the digest.
I am also changing the e2e test to verify that a successful BuildRun contains a valid image digest. This would have captured this problem earlier.
And that revealed that the digest we stored for BuildAh has always been incorrect. I basically observe the same as here: Digests on local buildah different from registry, unclear how to 'correct' #3866. I am putting in some workaround.
Submitter Checklist
Release Notes