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 fetching latest run in ArtifactDownloader #531

Merged
merged 2 commits into from
Aug 11, 2021

Conversation

kmazurek
Copy link
Contributor

Resolves #530

The cause of the above problem was using the wrong condition when querying the GitHub API for workflow runs. Before this change the queries were made with the parameter status="completed", which means any completed workflow (not necessarily a successful one). This condition has now been made more strict by using conclusion="success" instead.

I also used this opportunity to enable paging the workflow run query results in all cases (before this was only done when searching for a specific commit SHA).

@kmazurek kmazurek self-assigned this Aug 10, 2021
@kmazurek kmazurek requested a review from azawlocki August 10, 2021 18:06
Copy link
Contributor

@azawlocki azawlocki left a comment

Choose a reason for hiding this comment

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

LGTM!

@kmazurek kmazurek merged commit 2d92316 into master Aug 11, 2021
@kmazurek kmazurek deleted the km/fix-artifact-download branch August 11, 2021 08:14
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.

Investigate yagna binary download failing on 0.7 nightly
2 participants