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

Make curl retry on transient errors #7

Merged
merged 2 commits into from
Oct 18, 2022
Merged

Conversation

jhchabran
Copy link
Contributor

Spotted some transient errors in our CI pipeline involving asdf plugins, solved by a trivial change so it's really just low-hanging fruit :)

Copy link

@filiphaftek filiphaftek left a comment

Choose a reason for hiding this comment

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

LGTM 👍

bin/list-all Outdated
@@ -3,9 +3,9 @@
releases_url="https://api.github.com/repos/mvdan/sh/releases"

if [ -n "$GITHUB_API_TOKEN" ]; then
cmd="curl -s -H 'Authorization: token $GITHUB_API_TOKEN' $releases_url"
cmd="curl --retry 10 --retry-delay 2-s -H 'Authorization: token $GITHUB_API_TOKEN' $releases_url"
Copy link
Owner

Choose a reason for hiding this comment

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

missing a space here 2-s

Copy link
Contributor Author

@jhchabran jhchabran Oct 18, 2022

Choose a reason for hiding this comment

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

@luizm apologies, I missed this notification. Just pushed the fix 🤦

Copy link
Owner

Choose a reason for hiding this comment

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

thank you ❤️ to be honest I forgot about this PR.. my bad

@luizm luizm merged commit a42c5ff into luizm:master Oct 18, 2022
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.

3 participants