Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

CI: Retry URL checks#1753

Merged
GabyCT merged 3 commits intokata-containers:masterfrom
jodh-intel:make-url-checker-retry
Jun 20, 2019
Merged

CI: Retry URL checks#1753
GabyCT merged 3 commits intokata-containers:masterfrom
jodh-intel:make-url-checker-retry

Conversation

@jodh-intel
Copy link
Copy Markdown

If a URL check fails, retry 3 times (by default) in case of transitory network errors.

Fixes: #1734.

Signed-off-by: James O. D. Hunt james.o.hunt@intel.com

James O. D. Hunt added 2 commits June 20, 2019 14:44
Move the URL checking logic into a new function to make the behaviour
clearer.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add helpful error messages to show the user why the URL check failed.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
@grahamwhaley
Copy link
Copy Markdown
Contributor

Maybe I'm missing something, but I don't see the 'retry 3 times' code? Is it subtle?
I was expecting to find a loop - or, maybe use the curl -retry mechanism?

If a URL check fails, retry 3 times (by default) in case of transitory
network errors.

Fixes: kata-containers#1734.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
@jodh-intel
Copy link
Copy Markdown
Author

Last commit? for attempt in ... ;)

However, I've now made it clearer by using curl's built-in retry logic :)

@jodh-intel jodh-intel force-pushed the make-url-checker-retry branch from 3943d78 to f1920e7 Compare June 20, 2019 13:58
Copy link
Copy Markdown
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

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

Ta. I think I just missed seeing that commit completely before.
lgtm

@jodh-intel
Copy link
Copy Markdown
Author

/test

@GabyCT GabyCT merged commit 5c6b6ef into kata-containers:master Jun 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI url check failure

3 participants