Skip to content

Comments

workflows/check-by-name: Better error when base branch also fails#257735

Merged
roberth merged 1 commit intoNixOS:masterfrom
tweag:check-by-name-base
Oct 3, 2023
Merged

workflows/check-by-name: Better error when base branch also fails#257735
roberth merged 1 commit intoNixOS:masterfrom
tweag:check-by-name-base

Conversation

@infinisil
Copy link
Member

@infinisil infinisil commented Sep 27, 2023

Description of changes

Previously, even if the check also failed on the base branch, it would look like the PR introduced the failure (though I don't think this even happened).

We can have a better error message for such cases by also running the tool on the base branch, which is achievable with little extra effort.

However the main motivation really is that this paves the road towards #256788.

Note that due to using pull_request_target instead of pull_request, this PR itself does not trigger the new workflow.

Things done

@github-actions github-actions bot added the 6.topic: policy discussion Discuss policies to work in and around Nixpkgs label Sep 27, 2023
@infinisil infinisil added this to the RFC 140 milestone Sep 27, 2023
@ofborg ofborg 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 Sep 27, 2023
@infinisil infinisil marked this pull request as ready for review September 28, 2023 01:17
@infinisil infinisil requested review from a team, Mic92 and zowoq as code owners September 28, 2023 01:17
@infinisil infinisil force-pushed the check-by-name-base branch 2 times, most recently from 84f162a to 6e5e814 Compare October 2, 2023 19:58
@infinisil
Copy link
Member Author

@roberth @RonnyPfannschmidt Now added a github workflow summary!

Previously, even if the check also failed on the base branch, it looked
like the PR introduced the failure.

We can easily have a better error message for such cases.

Meanwhile this also paves the road for something like
NixOS#256788
@roberth roberth merged commit 51067bf into NixOS:master Oct 3, 2023
@infinisil infinisil deleted the check-by-name-base branch October 3, 2023 14:15
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-10-03-nixpkgs-architecture-team-meeting-44/33798/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants