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: Improve debuggabilitiy #364308

Merged
merged 1 commit into from
Dec 11, 2024
Merged

workflows/eval: Improve debuggabilitiy #364308

merged 1 commit into from
Dec 11, 2024

Conversation

infinisil
Copy link
Member

Sometimes successful workflows trigger that condition, see https://github.com/NixOS/nixpkgs/actions/runs/12278493443/job/34260660227:

Comparing against "https://github.com/NixOS/nixpkgs/actions/runs/12278495895"
Workflow not done, waiting 10 seconds before checking again
Workflow was not successful, cannot make comparison

Even though

$ gh api /repos/NixOS/nixpkgs/actions/runs/12278495895 --jq .conclusion
success

Let's print the conclusion when it's not "success" to debug this.


This work is funded by Tweag and Antithesis

Add a 👍 reaction to pull requests you find important.

Sometimes successful workflows trigger that condition,
see https://github.com/NixOS/nixpkgs/actions/runs/12278493443/job/34260660227:

    Comparing against "https://github.com/NixOS/nixpkgs/actions/runs/12278495895"
    Workflow not done, waiting 10 seconds before checking again
    Workflow was not successful, cannot make comparison

Even though

    $ gh api /repos/NixOS/nixpkgs/actions/runs/12278495895 --jq .conclusion
    success

Let's print the conclusion when it's not "success" to debug this.
@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 11, 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 11, 2024
@Mic92 Mic92 merged commit 1cac0e7 into NixOS:master Dec 11, 2024
19 of 20 checks passed
@infinisil infinisil deleted the eval-debug branch December 11, 2024 19:25
@infinisil
Copy link
Member Author

Just caught this: https://github.com/Infinisil-s-Test-Organization/nixpkgs/actions/runs/12385167025/job/34571123648?pr=37

Workflow was not successful (conclusion: ), cannot make comparison

So we just need to also check that it's not "" in addition to not being null

infinisil added a commit to tweag/nixpkgs that referenced this pull request 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: NixOS#364308 (comment)
@infinisil
Copy link
Member Author

#366049

infinisil added a commit to tweag/nixpkgs that referenced this pull request 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: NixOS#364308 (comment)

Co-Authored-By: Reno Dakota <[email protected]>
doronbehar pushed a commit to unclechu/nixpkgs that referenced this pull request Dec 22, 2024
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]>
getchoo pushed a commit to getchoo-contrib/nixpkgs that referenced this pull request Jan 1, 2025
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]>
(cherry picked from commit 79dca9a)
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants