-
Notifications
You must be signed in to change notification settings - Fork 645
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
Allow retries for pull #994
Conversation
Codecov Report
@@ Coverage Diff @@
## master #994 +/- ##
============================================
+ Coverage 51.79% 51.93% +0.14%
- Complexity 1363 1366 +3
============================================
Files 147 147
Lines 7457 7456 -1
Branches 1132 1132
============================================
+ Hits 3862 3872 +10
+ Misses 3229 3217 -12
- Partials 366 367 +1
|
I wonder if someone can help me understand what the codecov/patch check is that failed. Is that because coverage of introduced code is not high enough? |
@bkelley17 yes, it's because that we generally require that new code should be at least as much tested then the existing code. Not really sure how this is measure as I would expect than if the overall coverage gets increased, then the contribution must be at least have a higher coverage than the rest. But don't worry too much about it, we also do exceptions from the rule. thanks for your contribution ... |
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, but let us introduce a pullRetries
and pushRetries
, too, in addition to the alredady existing retries
.
The reason is that we might want to configure this differently for push and pull. So the logic should be:
retries
given: Use it for both push and pullpushRetries
: Use it for pushpullRetries
: Use it for pull
The properties should be also docker.retries
, docker.push.retries
and docker.pull.retries
.
Could you adapt the PR for this please ? If not, no problem I can do it later, too.
Thanks a lot and sorry for the delay.
@@ -26,6 +26,9 @@ | |||
@Parameter(property = "docker.skip.build", defaultValue = "false") | |||
protected boolean skipBuild; | |||
|
|||
@Parameter(property = "docker.pull.retries", defaultValue = "0") | |||
private int retries; |
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.
Could we please rename this in pullRetries
for the member configuration ? "retries" alone is a bit unspecific.
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.
Same for the other MoJos please and the documentation.
I will work on this PR for the next release (resolving the conflicts) and add the suggestions as I think this is a valuable feature. |
Superseded by #1697 |
Currently the plugin allows configurable retries for push, but not for pull. This change allows retries to be configured for pull as well.