-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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/eval: fix maintainer requests #370456
Conversation
fd82e60
to
b1924a1
Compare
We can reuse the new process-reviewers.json part for requesting reviews from maintainers.
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
The ${{ }} syntax is best avoided in scripts. While it wouldn't be a problem here, let's do this for consistency
b1924a1
to
56df03b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I left a couple of comments that can just be marked as resolved, they're questions and praise; not actionable issues. I can't find anything wrong with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
@infinisil This seems to arise from users not being contributors to the repo, however I think tit might be nice to omit the output as it might confuse people analyzing the logs: https://github.com/Infinisil-s-Test-Organization/nixpkgs/actions/runs/12592351001/job/35096822060#step:6:34
|
@GGG-KILLER I think it's better to show those errors, because it could also happen that it fails for a reason other than the user not being a collaborator, e.g. if GitHub is down. Without the error message we couldn't distinguish between the causes. |
I agree that it's not ideal though, I think this could be improved in a future PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good and tests look fine as well. Thanks for quickly implementing a fix for this!
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-24.11
git worktree add -d .worktree/backport-370456-to-release-24.11 origin/release-24.11
cd .worktree/backport-370456-to-release-24.11
git switch --create backport-370456-to-release-24.11
git cherry-pick -x 0371b7fb4b8d3f69f6cf7f1a7192a3c55b362006 0ebab0bccadbd38d9bc0aae3e53e9493afa9ec0b ab248be504bc38a3ea0f7409d31109b45e619224 077007a65827b7c8127458adf2c3661b91fc5545 |
Backport is included in #370709. |
Seems to still be having issues: https://github.com/NixOS/nixpkgs/actions/runs/12605350098/job/35134091088?pr=370749 |
@emilazy That's weird, by manually using the review request UI to check individually, I figured out that among the maintainers that would've been requested for that PR, only the user @pleshevskiy can't be requested for a review, even though they're a repo collaborator as part of the Nixpkgs maintainers team. The account looks "archived", but GitHub provides no such feature, and https://api.github.com/users/pleshevskiy doesn't show anything odd 🤔. I've also messaged pleshevskiy on Matrix to ask for help. |
Can we just reuse the logic Ofborg uses for this? |
FYI: https://github.com/NixOS/nixpkgs/actions/runs/12609376751/job/35142923617?pr=361515
|
This should be fixed by #370824. |
ofborg seems to be able to figure that out, see the last PR for sonic-server in #320496. r-ryantm mentioned pleshevskiy as a maintainer in the comment, but ofborg didn't request review from them. |
Or maybe not, seems like ofborg just requests reviews 1-by-1 and is OK with failing some of them? |
Created #370857 to do the 1-by-1 request. |
Your assumption was correct, see the same PR with the fix applied: https://github.com/NixOS/nixpkgs/actions/runs/12613829223/job/35152198458?pr=370749 It only fails for pleshevskiy. (It also shows we need to apply a limit - we requested review from all 30 potential reviewers there) |
Fixes the problems after #366046, including:
This reuses part of a script that deals with requests from code owners introduced in #336261
Best reviewed commit-by-commit
Things done
Add a 👍 reaction to pull requests you find important.