-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
[Backport release-24.11] workflows/eval: Request reviews from changed package maintainers #370709
[Backport release-24.11] workflows/eval: Request reviews from changed package maintainers #370709
Conversation
Currently we need to rely on ofborg requesting reviews from package maintainers, which takes a while with ofborg's eval queue. Since recently we're doing faster evaluations with GitHub Actions, which contain all necessary information to determine reviewers of changed packages the same way ofborg does. This PR takes advantage of that. (cherry picked from commit b9d800d)
…ged packages The handles can change over time and there's nothing guaranteeing the ones in the maintainer list are up-to-date. In comparison GitHub IDs never change. (cherry picked from commit b844cba)
We can reuse the new process-reviewers.json part for requesting reviews from maintainers. (cherry picked from commit 0371b7f)
Filters out the PR author and avoids rerequesting reviews from people that already left a review. In a future commit, this can be expanded to also avoid requesting reviews from people not in the org (cherry picked from commit 0ebab0b)
We get this in "Eval / Process":
Do we need to backport something else as well? |
Ah, what happens here: The first commit adds the |
Marked as draft until the issues that came up in #370456 are resolved. |
The ${{ }} syntax is best avoided in scripts. While it wouldn't be a problem here, let's do this for consistency (cherry picked from commit ab248be)
Fixes this problem for maintainer-based reviews when the maintainer didn't yet accept or missed the automated invite: gh: Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the NixOS/nixpkgs repository. (HTTP 422) (cherry picked from commit 077007a)
This script assumed to get lowercased input before, but with the addition of pinging maintainers that's not necessarily true anymore. Since the checks for prAuthor and already-reviewed-by already lowercase, make sure to lowercase the handles in the users array, too. (cherry picked from commit 213dbf1)
fd28da3
to
58e9df7
Compare
Odd to have this in the "Tagging pull request" step, which is only about labels otherwise. (cherry picked from commit 2e61194)
This makes it easier to add ofborg's request-1-by-1 logic, where failed requests are OK for edge cases. (cherry picked from commit 62779fb)
This is to be able to ignore the odd failure for some users, who are listed as collaborators, but still fail to be requested properly. (cherry picked from commit 034613f)
This mirrors ofborg for now. (cherry picked from commit 240c82b)
This is to ensure that the eval summary is still set as commit status, even when the review requests fail due to too many reviewers. (cherry picked from commit 3c9794d)
We are still working on some things around maintainer reviews, but the current state is still ready to be backported imho. This will already be an improvement to get back maintainer reviews for backport PRs. |
Additionally, no permissions are needed so set it to an empty set Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com> (cherry picked from commit 3ff50a2)
Lock the Ubuntu runner to ubuntu-22.04 to avoid accidental updates [1] and increase reproducibility. [1]: actions/runner-images#10636 (cherry picked from commit 2660dd1)
Link: actions/runner-images#10636 (cherry picked from commit fcfbe6f)
(cherry picked from commit dbd20ce)
Removed in #356023 (comment) Due to #355847 (comment) #355847 (comment) #355847 (comment) (cherry picked from commit 9ccdc41)
I added three more PRs (see description). Those are not directly related to review requests, but this makes it easier to backport other changes in the future. I left out any changes to the periodic-merge workflows, because those run on a schedule and thus only from the master anyway. But I had to resolve some merge conflicts for those files, so the "check cherry-picks" should turn up red. |
Bot-based backport to
release-24.11
, triggered by a label in #366046.Includes the following PRs: