Dealing with huge PR culture

Posted by semaphoreslimshady42@reddit | ExperiencedDevs | View on Reddit | 71 comments

I joined a company 8 months back and while the team is very smart and capable, they love pushing out monstrous pull requests

The team is fond of AI and I give credit that I think they use it fairly well. The code is good quality, and while they lean heavily onto AI, it's clear that everyone here has a strong programming ability

The situation I face is they're pumping out these monster pull requests. It's usually at least 100 file changes, but 200-300 is normal

They implement entire features, full vertical slices. They'll perform adhoc renames and refractors, so in a 300 file PR, maybe 100 are actual new code, and the others are just tweaks. It is a mono repo too so it's all there.

The team bangs on about delivering smaller units of work, but it's seemingly just talk. One guy, credit to him, will do multiple PRs into an intermediary branch so it's more digestible, so you can review one piece at a time. But otherwise it's just these crazy sized ones

I'm struggling to figure out how to deal with this. If I review them manually it takes a long time, and I'm doubtful of my ability to effectively review after seeing so much code in one go. I have tried to leverage AI to help me distill the PR into something readable... but that gives me a bad taste, getting AI to review AI code.

I'm imagining this is a growing problem now we have AI tools. I don't blame the AI here, it's obviously the developers getting overzealous and wanting to pump out a feature per pull request.

It feels like there's little point raising this to them, because they all acknowledge it's a bad practice to move away from, but none of them actually are... and as a relatively new hire I don't have the social capital to try do anything about it

Feels like my options are either to manually review, to use the AI to help me review, to rubberstamp, or to not engage (not ideal)

Can't imagine I'm the only one facing this. Anyone got any tips?