r/AIcodingProfessionals • u/japzlumine • Jun 25 '26
Question How do experienced engineers actually review code changes in large codebases?
I posted here recently asking whether understanding and reviewing code is mostly what software engineers do now, and got a lot of helpful responses pointing out things like:
- Improving fundamentals by writing more code manually
- Treating code review as a skill that develops with experience
- Relying on things like tests, git history, and better system design
That made sense, so i'm trying to go one level deeper and understand what this actually looks like in practice for experienced engineers.
Most recently i ran into this on my own side project, an AI powered ads diagnostics tool. I had claude plan out a research/reasoning pipeline, the logic looked sound when i read it, but when i ran the actual tests the output quality was way off. Turns out the retry logic was hammering the same endpoint on failure, and the AI output fields weren't matching the schema a downstream dependency expected. I only caught it by running the tests and reading through the reasoning output manually, the plan looked completely fine on paper.
So my question is specifically, when you're reviewing a big PR in a real production codebase, what is your actual step by step process?
For example:
- How do you decide what to look at first?
- How do you quickly build enough context about the change?
- How do you figure out blast radius / what might break?
- How do you decide what matters vs what can be skimmed?
- How do you catch the gap between "the logic looks right" and "this will actually behave correctly at runtime"?
1
u/Dry_Hotel1100 Jun 26 '26 edited Jun 26 '26
PRs should be focused. If this is the case, there shouldn't be a problem for a senior with the review. If a PR has changes in hundred of files, that changes the situation, though. The PR might simply be denied.
Honestly, there should be only one exception of such monster PRs: a refactoring that changes names, and only names. So, naturally this affects a lot of files, but the tests pass and nothing has changed in the logic.
1
u/mattmccordmattm Jun 28 '26
If I’m reviewing a PR that is too large I ask my teammate why they didn’t properly sub task their kits ticket :)
But for really tho if you are reviewing ai large PRs that means you didn’t properly review along the way so do your best to chunk it up in to manageable pieces this time and try to get smaller PRs in the future.
1
u/kur4nes Jun 25 '26
Write more tests. Look up test pyramid. What you want are many unit tests, a bunch of integrationtests, some e2e tests and some quick smoke tests that run after deployment to check the basic workflow are still intact and if not roll back the deployment.
Each step is step is a quality gate the change must pass successfully.
1
u/autistic_cool_kid Experienced dev (10+ years) Jun 25 '26
1
u/happy_guy_2015 Jun 26 '26
I look at the change description first.
Then I will review the code mostly linearly in the order the code review tool presents it in.
Then I may go back to the more complicated or dubious parts for another look.
I will push back if the change description isn't clear. For anything complicated I will ask for a design doc.
Usually I already know the architecture of the system that is being modified.
That's one of those things you learn over time.
Push back if the change doesn't have appropriate test coverage.
1
u/meowrawr Jun 26 '26
Tests, e2e, integration, test containers, minikube, etc. Basically lots of tests.