Skip to content

workflow/labels: fix scheduled runs#417250

Merged
wolfgangwalther merged 4 commits intoNixOS:masterfrom
wolfgangwalther:ci-approvals-fix-2
Jun 16, 2025
Merged

workflow/labels: fix scheduled runs#417250
wolfgangwalther merged 4 commits intoNixOS:masterfrom
wolfgangwalther:ci-approvals-fix-2

Conversation

@wolfgangwalther
Copy link
Contributor

@wolfgangwalther wolfgangwalther commented Jun 16, 2025

See commit messages for a little bit of details, but most of that should be clear from the code and the discussion in #416808.

The job will now run all PRs to completion before reporting errors and it should report them nicely via GitHub annotations, too. The only I thing I don't really know is how to add more context to those errors. I.e., I'd like to add the PR number this failed for to it.

Things done

Will run another double check in my fork with this.


Add a 👍 reaction to pull requests you find important.

This would fail, because no previous workflow can be found.
@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. 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-24.11 labels Jun 16, 2025
This runs all PRs in scope to completion, before reporting errors.
Previously, the artifacts of different PRs would overwrite each other,
thus leading to odd JSON parsing errors.
Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

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

The code looks good. Each commit explains itself.

@wolfgangwalther
Copy link
Contributor Author

Found a way to add that error context, too. Annotations look like this:

2025-06-16T16:28:28,274963212+02:00

(the logs have them in the right order, though)

@github-actions github-actions bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 16, 2025
Copy link
Contributor

@MattSturgeon MattSturgeon left a comment

Choose a reason for hiding this comment

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

Very clear, and very nice. Thanks!

The original error is kept, but the PR number is printed as well. Makes
debugging much easier.
@github-actions github-actions bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Jun 16, 2025
@wolfgangwalther wolfgangwalther merged commit e1a3aac into NixOS:master Jun 16, 2025
13 of 16 checks passed
@wolfgangwalther wolfgangwalther deleted the ci-approvals-fix-2 branch June 16, 2025 15:08
@wolfgangwalther wolfgangwalther added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 16, 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: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants