Skip to content

workflows/pr: fix condition for no-pr-failures job#433097

Merged
wolfgangwalther merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-no-pr-failures
Aug 12, 2025
Merged

workflows/pr: fix condition for no-pr-failures job#433097
wolfgangwalther merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-no-pr-failures

Conversation

@wolfgangwalther
Copy link
Contributor

The cancelled() condition seems to only apply when the whole workflow was cancelled. This is not the case when a single job is cancelled due to timeout.

We can replicate this by checking each needs.result manually.

Fixes #433060 (comment). This time tested in my fork in all 3 conditions.

Things done


Add a 👍 reaction to pull requests you find important.

The `cancelled()` condition seems to only apply when *the whole
workflow* was cancelled. This is not the case when a single job is
cancelled due to timeout.

We can replicate this by checking each needs.result manually.
@philiptaron
Copy link
Contributor

What's going on with that eval error at 3min? Timeout?

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 12, 2025
@wolfgangwalther
Copy link
Contributor Author

What's going on with that eval error at 3min? Timeout?

Nope, that's an API error from GitHub. Should be gone when I re-run it.

@nixpkgs-ci nixpkgs-ci bot added 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 backport release-25.05 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 Aug 12, 2025
@wolfgangwalther wolfgangwalther merged commit 1e8218a into NixOS:master Aug 12, 2025
88 of 94 checks passed
@wolfgangwalther wolfgangwalther deleted the ci-no-pr-failures branch August 12, 2025 14:13
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Aug 12, 2025

Successfully created backport PR for release-25.05:

@github-actions github-actions bot added the 8.has: port to stable This PR already has a backport to the stable release. label Aug 12, 2025
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 8.has: port to stable This PR already has a backport to the stable release. 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.

2 participants