Skip to content

Conversation

@mtrmac
Copy link
Contributor

@mtrmac mtrmac commented Aug 12, 2021

See containers/image#1299 for full rationale. Completely untested for now.

@mtrmac mtrmac changed the title WIP: Don WIP: Don’t retry on errcode.ErrorCodeDenied Aug 12, 2021
@mtrmac mtrmac marked this pull request as draft August 12, 2021 18:12
@rhatdan
Copy link
Member

rhatdan commented Aug 12, 2021

LGTM
@vrothberg @saschagrunert @giuseppe PTAL

@rhatdan
Copy link
Member

rhatdan commented Dec 3, 2021

@mtrmac What do you want to do with this PR?

@mtrmac
Copy link
Contributor Author

mtrmac commented Dec 3, 2021

This becomes necessary for containers/image#1299 , which I still need to finish — so this c/common PR is somewhat of a reminder to myself that it will need to happen (and be tested).

If someone wants to test this artificially, or merge without testing, considering it low-risk, that’s fine with me.

Alternatively, I could add a set of unit tests to the logic right now. That’s not the same as practical testing, but it would add longer-term confidence.

@rhatdan
Copy link
Member

rhatdan commented Dec 3, 2021

I would be fine with merging this as is.
This is good cleanup.

@rhatdan rhatdan changed the title WIP: Don’t retry on errcode.ErrorCodeDenied Don’t retry on errcode.ErrorCodeDenied Dec 3, 2021
@rhatdan
Copy link
Member

rhatdan commented Dec 3, 2021

@mtrmac Can you take it out of Draft mode.

@rhatdan
Copy link
Member

rhatdan commented Dec 3, 2021

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 3, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mtrmac, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Dec 3, 2021
@mtrmac mtrmac marked this pull request as ready for review December 3, 2021 15:39
- Document that it should be tested after the various
  concrete types
- Explicitly return false on nil, which can be returned
  by .Unwrap()

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
We will add one more item, so fold this line in advance.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
In most cases, the registry returns a multi-error
(ErrorCodeDenied, ErrorCodeUnauthorized), but we want to
modify the registry client to only return the first one.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Dec 3, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 3, 2021
@openshift-merge-robot openshift-merge-robot merged commit 7330e99 into containers:main Dec 3, 2021
@mtrmac mtrmac deleted the errors branch December 3, 2021 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants