-
Notifications
You must be signed in to change notification settings - Fork 4
Rework review & locks rules #104
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
So, I have been researching the code: We need to add an extra review by the user itself and let the system check if it counts. |
@gavofyork do I understand correctly, considering that we will start to count PR initiator in according team condition, that we should also increase min_approvals to 3 for core-devs condition? a) Let's say one of core-devs created PR in:
b) Non-core-dev creates PR in:
|
Added the author of a PR as an approval. By doing this, if the author is part of the teams that need to review the PR, it will make him count as one required review less. Fixes #104
Reopened for now, until we test the fixes |
Fixes had been tested. Current staging server instance is running with the new update. As me and @mordamax are away until Friday, we decided to postpone the production release as we won't be able to monitor it during our absence. |
As I understood the request, people that are being part of "special groups" (aka not |
@bkchr As I understood
If not "knower" would contribute - that would be these just wanted to confirm |
But then an external contributor will require three reviews. Not sure that we want this. |
@bkchr, yes, and it seems to be corresponding to this requirement
I'm curious, whether it's more often happen that core-devs open PRs daily or external contributors? To what i see in PR list - it's more often core-dev authors, so in most cases this change is unnoticeable for people in parity. |
Just because people are part of |
Ok, i've merged bump to 3 core-devs in polkadot. so this should be closed now |
May 25
Gav: can we ensure that the author is also counted against the number of special reviewers? I.e. where we need 2 reviewers from a particular set, if the author of the PR is in this set, then of the two reviewers, we should only require one of them to be from that set. The point of having these privileged sets is not to hold up the review cycle or increase the reviews requried: it's to ensure particular eyes have seen code changes. It doesn't matter if those eyes saw it in the authoring process or in the review process.I asked for this a while back but just checking that it has been implemented: the locks system should take into account the initiator of the PR, not just the reviewers.
Also, a review by someone for one subcondition should also contribute to another subcondition.
Upd Jun 18:
i'm having a bit of trouble interpreting the CI log here
i authored the PR, kian reviewed it.
it says 2 reviews are needed for the change to runtime files and that there's only 1: Rule "Runtime files" needs in total 2 DISTINCT approvals, but 1 were given
it mentions kian's username: combinationApprovedByMostPeopleOverall: Map(1) { 'Runtime files[1]' => Set(1) { 'kianenigma' } }
yet the other required reviewers it mentions are all the people in locks-review group excluding me (which kian is not a member of): usersToAskForReview Map(4) { 'andresilva' => { teams: Set(1) { 'locks-review' } }, 'eskimor' => { teams: Set(1) { 'locks-review' } }, 'bkchr' => { teams: Set(1) { 'locks-review' } }, 'rphmeier' => { teams: Set(1) { 'locks-review' } } }
so i don't get it - is the script working properly and figured out that i as the author am a member of locks-review (but just hasn't mentioned it in the dump)?
Gav
ok - definitely seems like it's not doing what i want yet.
seems like it's not allowing reviewers enabling locks-review to pass to count in polkadot-review: Rule "Runtime files" needs in total 2 DISTINCT approvals, but 1 were given. Users whose approvals counted towards one criterion are excluded from other criteria. For example: even if a user belongs multiple teams, their approval will only count towards one of them; or even if a user is referenced in multiple subconditions, their approval will only count towards one subcondition. Subcondition "Runtime files[1]" does not have approval from the following users: andresilva (team: polkadot-review), eskimor (team: polkadot-review), athei (team: polkadot-review), stefan-sopic (team: polkadot-review), ordian (team: polkadot-review), bkchr (team: polkadot-review), rphmeier (team: polkadot-review), sandreim (team: polkadot-review).
This is a utterly bare minimum change to make the system developed actually usable.
I'd also like to see integration into a chat bot so that for PRs which have otherwise enough reviews but are blocked on locks-reviews, the relevant individuals are pinged in chat with a link and request to approve the PR
And with the planned move of the runtimes to the fellowship, we should also alter the locks reviews so that they take into account the fellowship rank via a smoldot query.
The text was updated successfully, but these errors were encountered: