Keeping PRs small won't solve your code review bottleneck

Posted by StableStack@reddit | ExperiencedDevs | View on Reddit | 5 comments

The vast majority of engineering teams seem to be struggling with how to handle code reviews. And a big issue is the size and volume of PRs, you know the drill :-)

And there is one thing that is often mentioned as THE solution: "we keep our PR small so that humans can review them".

We've tried that; it does not work:

Here is what has been working for us

  1. Change PR requirements

Require the following as part of a checklist:

Have the bot assess complexity and impact to categorize the PR. We have 3 categories: low, medium, and high.

To illustrate the point:

Based on this risk, the PR receives varying levels of human attention.

  1. Optimize for rollout

Have everything behind a feature flag and instrument your code. When deploying, enable for the team first, then a handful of customers, then 10%, then everyone. If anything fishy appears in your observability, roll back.

For us, the summary was that the size of the diff stopped being a useful signal. The blast radius is.

Curious to see if others are using similar or different methodlogies?