gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
869 stars 354 forks source link

PR Review throttling #2515

Open moul opened 1 month ago

moul commented 1 month ago

I propose that we define and set up a throttling mechanism for PR reviews to encourage contributors to make better contributions and discourage laziness.

In the future, we'll have various DAOs, including the "Code Review" one, where we'll be able to assess contribution quality and create per-PR and per-user reputation profiles. But in the meantime, I'm looking for a system where we give a higher chance of getting reviewed first to good contributors and newcomers, and progressively slow down the reviews of non-newcomers who aren't making an effort to provide high-quality contributions.

We face two challenges here:

  1. Define a simple rule set. I propose that the more often a contributor switches their PR to "non-draft" status, the slower the review will be. Reviewers should make rounds of reviews and maybe manually set the reviewed PR as draft again, so the contributor can spend time fixing before requesting a new review. Other ideas?

  2. Determine how to slow down reviews. One solution could be to use labels, which would allow reviewers to filter PRs. Another solution could be to create a GitHub project with a "weight" column managed by a bot, which could be used to sort PRs by weight. Over time, we could improve the weight calculation to manage more cases.

thehowl commented 1 month ago

I think, more than anything, that we're facing an issue of "prioritization"

We don't want to throttle PRs, but perhaps spend less time of the core team "schooling" contributors, and making sure newcomers and high-quality contributions get reviewed & merged faster

But then again, it has to be a system where even the PRs with low priority, after a while, do get at the top of the list. Otherwise, we just end up with PRs that are forgotten forever (which is similar to what's happening and happened).

There's another thing which I started discussing with @Kouteki, more in general, relating to how we can try to scale reviews: start delegating code reviews to high-quality non-staff contributors which have a proven expertise in a given area. I'm thinking @jefft0, @tbruyelle, @notJoon. I know it's not part of their job descriptions, but if the Gno core team is to be a mix of those who are good "OSS maintainers" and of "researching" programmers (ie. without much of a tendency to do a lot of reviews / codebase management); then we should extend the OSS maintainers beyond the core team. (This is something bound to happen anyway eventually; like Go core team is not composed only of people working at the Google Go team).