8000 Retry artifact uploads on HTTP 500 by brcrista · Pull Request #833 · actions/toolkit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Retry artifact uploads on HTTP 500 #833

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

Merged
merged 6 commits into from
Jun 4, 2021
Merged

Retry artifact uploads on HTTP 500 #833

merged 6 commits into from
Jun 4, 2021

Conversation

brcrista
Copy link
Contributor
@brcrista brcrista commented Jun 4, 2021

We have gotten bug reports of https://github.com/actions/upload-artifact/ failing when the service returns HTTP 500, which we do not retry on currently. An HTTP 500 may be an intermittent or instance-specific issue, so retrying here should improve reliability.

We already perform exponential backoff with jitter on retries. We discussed whether we should lengthen the retry interval. Right now the intervals are:

#1: 4.5-6.75 seconds
#2: 9-13.5 seconds
#3: 13.5-20.25 seconds
#4: 18-27 seconds
#5: 22.5-33.75 seconds

I think we can consider that out-of-scope for this change. If we find that retries are not effective or putting too much pressure on the service, we can look at data and figure out what a better backoff multiplier would be.

@brcrista brcrista requested review from yacaovsnc, konradpabjan, a team and yaananth June 4, 2021 17:38
@brcrista brcrista marked this pull request as draft June 4, 2021 17:54
@brcrista brcrista marked this pull request as ready for review June 4, 2021 18:21
@brcrista
Copy link
Contributor Author
brcrista commented Jun 4, 2021
8000

Backed out the change to the package version; we'll do that along with the release notes when we release the update

@brcrista brcrista merged commit db21627 into actions:main Jun 4, 2021
@brcrista brcrista deleted the brcrista/retry-artifact-500 branch June 4, 2021 21:09
lvpx added a commit that referenced this pull request Jul 13, 2022
lvpx added a commit that referenced this pull request Aug 3, 2022
lvpx added a commit that referenced this pull request Aug 4, 2022
Fix #809 and #833 in actions/cache. Bump version for NPM package actions/cache to v3.0.1
rmg added a commit to rmg/toolkit that referenced this pull request Jun 20, 2023
actions/cache occasionally gets 500 errors like actions/upload-artifact
does, but it just fails instead of retrying like upload-artifact does.

This adds retrying on 500 errors to @actions/cache the same way it was
added to @actions/artifact in actions#833.
rmg added a commit to rmg/toolkit that referenced this pull request Aug 17, 2023
actions/cache occasionally gets 500 errors like actions/upload-artifact
does, but it just fails instead of retrying like upload-artifact does.

This adds retrying on 500 errors to @actions/cache the same way it was
added to @actions/artifact in actions#833.
at-wat pushed a commit to at-wat/actions-toolkit that referenced this pull request Aug 31, 2023
* Retry on 500

* bump package version

* fix tests

* Remove spurious change

* fix another test

* Roll back package version
rmg added a commit to rmg/toolkit that referenced this pull request Sep 5, 2023
actions/cache occasionally gets 500 errors like actions/upload-artifact
does, but it just fails instead of retrying like upload-artifact does.

This adds retrying on 500 errors to @actions/cache the same way it was
added to @actions/artifact in actions#833.
rmg added a commit to rmg/toolkit that referenced this pull request May 16, 2024
actions/cache occasionally gets 500 errors like actions/upload-artifact
does, but it just fails instead of retrying like upload-artifact does.

This adds retrying on 500 errors to @actions/cache the same way it was
added to @actions/artifact in actions#833.
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
0