Skip to content

workflows/eval: Catch empty conclusion#366049

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
tweag:eval-conclusion
Dec 18, 2024
Merged

workflows/eval: Catch empty conclusion#366049
Mic92 merged 1 commit intoNixOS:masterfrom
tweag:eval-conclusion

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.

@github-actions github-actions bot added 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 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
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 <paparodeo@proton.me>
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Dec 18, 2024
@Mic92 Mic92 merged commit de74239 into NixOS:master Dec 18, 2024
@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 Discuss policies to work in and around Nixpkgs 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 person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants