-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Conversation
.github/workflows/eval.yml
Outdated
@@ -165,7 +165,7 @@ jobs: | |||
runId=$(jq .id <<< "$run") | |||
conclusion=$(jq -r .conclusion <<< "$run") | |||
|
|||
while [[ "$conclusion" == null ]]; do | |||
while [[ "$conclusion" == null && "$conclusion" != "" ]]; do |
There was a problem hiding this comment.
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:
while [[ "$conclusion" == null && "$conclusion" != "" ]]; do | |
while [[ "$conclusion" == null || "$conclusion" == "" ]]; do |
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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]>
af5656f
to
79dca9a
Compare
Git push to origin failed for release-24.11 with exitcode 1 |
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.