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

workflows/eval: Catch empty conclusion #366049

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

infinisil
Copy link
Member

@infinisil infinisil commented Dec 18, 2024

Sometimes the conclusion is empty when it's still
running/pending or so, which needs to be caught, otherwise it can exit preemptively: #364308 (comment)


This work is funded by Tweag and Antithesis

Add a 👍 reaction to pull requests you find important.

@infinisil infinisil added the backport release-24.11 Backport PR automatically label Dec 18, 2024
@github-actions github-actions bot added 6.topic: policy discussion 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions labels Dec 18, 2024
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Dec 18, 2024
@@ -165,7 +165,7 @@ jobs:
runId=$(jq .id <<< "$run")
conclusion=$(jq -r .conclusion <<< "$run")

while [[ "$conclusion" == null ]]; do
while [[ "$conclusion" == null && "$conclusion" != "" ]]; do
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks slightly odd -- perhaps I'm not understanding something but maybe it should be:

Suggested change
while [[ "$conclusion" == null && "$conclusion" != "" ]]; do
while [[ "$conclusion" == null || "$conclusion" == "" ]]; do

?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh damn you're right! Embarassing haha

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought this was so simple it doesn't even need testing, and still I messed up 😅

Sometimes the conclusion is empty when it's still
running/pending or so, which needs to be caught, otherwise it can exit
preemptively: NixOS#364308 (comment)

Co-Authored-By: Reno Dakota <[email protected]>
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Dec 18, 2024
@Mic92 Mic92 merged commit de74239 into NixOS:master Dec 18, 2024
37 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Dec 18, 2024

Git push to origin failed for release-24.11 with exitcode 1

@infinisil infinisil deleted the eval-conclusion branch January 5, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 6.topic: policy discussion 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux 12.approvals: 1 This PR was reviewed and approved by one reputable person backport release-24.11 Backport PR automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants