-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Feature Request: Add retry mechanism #778
Comments
Hi @YuviGold Thanks for your interest in arkade. This is the first time hearing of issues with GitHub's releases pages which use S3 underneath. How often do you get a 503 from GitHub / S3, and do you know why this affects you specifically? I think that we'd have to hear pain from a bunch more users to consider changing the code. What company is this for? Perhaps if they wanted to become a GitHub Sponsor it may make it worth us considering. Alex |
FYI: There are some examples in the e2e-tests |
@Jasstkn thanks Can you have the tests print out headers on error, to see if GitHub is trying to tell us something? |
usually it is the server error - 503/500 and so on. Can be the overload on the Github's side or just a network glitch. I think that we may want to introduce this as an option to the |
Expected Behaviour
arkade is being used in CI pipelines and from time to time might fail on network hiccups.
It would be great if internally it could retry its
http
requests for common failures.Current Behaviour
In the following examples you can see a network failures that caused to exit with an error without retrying
Are you a GitHub Sponsor yet (Yes/No?)
Possible Solution
Using https://github.com/hashicorp/go-retryablehttp that wouldn't require any refactoring. it just wraps the familiar HTTP client interface with automatic retries and exponential backoff.
Context
Your Environment
The text was updated successfully, but these errors were encountered: