Skip to content
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

Add retry helper functions #229

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Conversation

QiWang19
Copy link
Contributor

Add retry functions to retry on some commands and can be shared by Skopeo, Podman.

Signed-off-by: Qi Wang [email protected]

Add retry functions to retry on some commands and can be shared by Skopeo, Podman.

Signed-off-by: Qi Wang <[email protected]>
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: QiWang19
To complete the pull request process, please assign
You can assign the PR to them by writing /assign in a comment when ready.

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

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

@rhatdan
Copy link
Member

rhatdan commented Jul 21, 2020

@TomSweeneyRedHat
Copy link
Member

LGTM
Would be nice to have tests for these in common, but I'm not coming up with a way quickly...

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@rhatdan rhatdan merged commit a733fae into containers:master Jul 21, 2020
@@ -0,0 +1,87 @@
package image
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not sure image is the right name for this subpackage — it might be. But naming the file pull.go just isn’t a good match.

@rhatdan
Copy link
Member

rhatdan commented Jul 22, 2020

@mtrmac What would you prefer, retry.go?

@mtrmac
Copy link
Contributor

mtrmac commented Jul 22, 2020

c/common/pkg/retry would be my first guess - and retry.go or something like that.

@mheon
Copy link
Member

mheon commented Jul 22, 2020

That SGTM. I'm also opposed to the image name (we really have a naming problem already - c/common and c/conmon being a good example - and I'm really not eager to make it worse.

@rhatdan
Copy link
Member

rhatdan commented Jul 22, 2020

The idea was to put Parker short names stuff in the same place, which is why she called it image.
How about we call it common/pkg/pull then we can have retry.go and shortname.go under the common/pkg/pull name?

@mheon
Copy link
Member

mheon commented Jul 22, 2020

Sure. pkg/img/pull maybe?

@mtrmac
Copy link
Contributor

mtrmac commented Jul 22, 2020

We are now discussing this in three different places. Someone please choose one.

@rhatdan
Copy link
Member

rhatdan commented Jul 22, 2020

Let's discuss this in the containers/common PR to rename it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants