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
|
@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. |
GGG-KILLER
left a comment
There was a problem hiding this comment.
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. |
|
@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? |
|
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: 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.