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

fix(common): Retry curl downloads up to 5 times #11314

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

darcywong00
Copy link
Contributor

Fixes #10670

This updates the curl downloads to try up to 5 times (with 5s delay in between).
Reference
https://curl.se/docs/manpage.html#--retry

Also updated to use long option names. And since the curl still uses --silent, the retry statuses aren't output.

@keymanapp-test-bot skip

@keymanapp-test-bot keymanapp-test-bot bot added this to the A18S1 milestone Apr 29, 2024
local URL_DOWNLOAD_FILE=`curl -s "$URL_API_KEYBOARD_VERSION/${ID}" | "$JQ" -r .kmp`
curl -f -s "$URL_DOWNLOAD_FILE" -o "$KEYBOARDS_TARGET" || {
echo "Downloading ${ID}.kmp from downloads.keyman.com up to ${RETRY} attempts"
local URL_DOWNLOAD_FILE=`curl --silent "$URL_API_KEYBOARD_VERSION/${ID}" | "$JQ" -r .kmp`
Copy link
Member

Choose a reason for hiding this comment

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

This one doesn't have a retry?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

k, I can add it there too

@darcywong00 darcywong00 merged commit 03752c1 into master Apr 29, 2024
25 checks passed
@darcywong00 darcywong00 deleted the chore/android/robust-configure branch April 29, 2024 07:19
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.24-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore(android): ci needs robustness on package downloads
3 participants