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/check-by-name: Better error when base branch also fails #257735

Merged
merged 1 commit into from
Oct 3, 2023

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

@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
17 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants