Skip to content

Retry on transient failures during artifact upload #486

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 1 commit into from
Jan 8, 2025
Merged

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jan 8, 2025

@zanieb zanieb added the ci:skip label Jan 8, 2025
Comment on lines +483 to +484
{
let mut fs = vec![];
Copy link
Member Author

Choose a reason for hiding this comment

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

~unchanged, needed to put this in a block to satisfy the borrow checker with borrow of raw_client in fs.

}

let file_data = Bytes::copy_from_slice(&std::fs::read(dist_dir.join(&source))?);
let retry_policy = ExponentialBackoff::builder().build_with_max_retries(5);
Copy link
Contributor

Choose a reason for hiding this comment

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

5 feels high to me but very weak feeling about it

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah the default recommendation is three but we're uploading a ton of artifacts and GitHub is really flaky so I figured I'd start high.

@zanieb zanieb merged commit e0ebbc7 into main Jan 8, 2025
9 checks passed
@zanieb zanieb deleted the zb/retry-upload branch January 8, 2025 18:52
@zanieb zanieb mentioned this pull request Jan 15, 2025
zanieb added a commit that referenced this pull request Jan 15, 2025
Fixes artifact upload failures introduced by conflicting versions in
#486
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.

2 participants