-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Allow commiters to merge any PR after CI is green #95
Comments
Would be a nice feature indeed. This or merge queues. |
+1 for the merge queue, I believe we have a similar thing in Nixos-hardware already. I try to "approve PRs" before merging, so I could get back after CI passes green. But sometimes PRs fall through the cracks despite being approved by a commiter. |
A while ago I attempted to implement this functionality in nixpkgs using GitHub actions: NixOS/nixpkgs#261800 Unfortunately I got stuck, but maybe this can give some insights for a new implementation in nixpkgs-merge-bot. |
So apparently our docs need to be better. Currently if you use the merge bot it waits for all checks to pass and then merges the pr. It only skips Darwin tests because the ci for that is sometimes broken |
Oh, and it works on any PR? |
I think, it does by-name checks. But we can probably remove this restrictions for committers. |
It does by-name checks and checks whether the invoking person is listed as the maintainer of the package. But currently if CI is not green, it errors out, providing no merge queue functionality. |
Disabling those two checks if the invoker is a committer is basically the core of this feature request.
That would/should be expected behaviour. |
It probably needs a proper database at this point. On the other side, can we not just add mergify to nixpkgs` as well? |
@JohnRTitor It provides an error message, that it will try again later. Or is this not working for some reason? |
It does not suppress by name checks for commiters I am afraid. NixOS/nixpkgs#333074 (comment) |
Perhaps I'm not understanding something, but this seems like an existing github feature that can be enabled. |
The existing GitHub feature would not work for us, because it only looks at required checks, and most (all?) CI checks in Nixpkgs are not required. It would be non-trivial to make them required, because sometimes there's a legitimate need for them to be bypassed — we'd have to see if we could make permissions more widely available to be able to do that than they currently are. (I think it's currently restricted to org owners, which would absolutely not be enough since there's not a lot of overlap between org owners and the most active Nixpkgs committers.) |
Several issues tied to ofborg CI should also be addressed for this auto-merge feature to be a QoL boost:
|
Some of the common failures happen on Linux too. |
|
I sometimes have the case where I approve a PR but would like to wait for CI checks to be green before actually merging. What happens then is that I leave the tab open and return to it some time later but that can sometimes be weeks or even months when it should have been merged after an hour or so.
Would this be in scope for the merge bot?
The text was updated successfully, but these errors were encountered: