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: Should download artifacts when no retries #943

Merged
merged 8 commits into from
Sep 3, 2024
Merged

Conversation

tianfeng92
Copy link
Contributor

@tianfeng92 tianfeng92 commented Aug 30, 2024

Description

The root cause is that when setting retries and downloading artifacts simultaneously, the code determines whether to proceed with the download by checking AllAttempts and whether it's the last attempt (attempts < total retries).

However, if the job doesn’t run out of retries (e.g., if the first job has passed or the job passes threshold before hitting the retry limit), the number of attempts is smaller than the total retries, leading to the download being skipped.

To fix this issue, I updated the download function as we've known if the job is the last attempt.

This solves #939 and #938

@tianfeng92 tianfeng92 added the bug Something isn't working label Aug 30, 2024
@tianfeng92 tianfeng92 marked this pull request as ready for review August 31, 2024 00:08
@tianfeng92 tianfeng92 requested a review from a team as a code owner August 31, 2024 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants