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 basic retry mechanism to sig-repo jar download #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

romeara
Copy link

@romeara romeara commented Nov 11, 2021

During a recent attempt to plan maintenance for the binary repository backing sig-repo, it was determined that retry-less client behavior is complicating the ability to patch and maintain the system.

This pull request proposes the addition of basic retry logic - there are many options which can alter the behavior of the default retry. Note that --fail must be added if retry on 404 is desired (which will depend on sig-repo's behavior when down).

It might also be appropriate to setup the ability to disable or override the retry behavior via environment variable, similar to the base DETECT_CURL_OPTS setup.

Aside from determinations on what the default behavior should be, another addition that would be appropriate would be similar support in the powershell script (which based on surface research seems slightly more involved, and being unfamiliar with PS I decided would be better to exclude and allow someone better-versed to provide)

Make it possible to override/disable retry behavior easily via environment variable, and add default backoff and maximum time values
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.

2 participants