Rendered at 18:15:41 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
Nedomas 3 hours ago [-]
It’s impossible to move fast with human PR review now. Extensive e2e testing with mutation tests, fuzzing, pbt, preferably some formal verification on top. I’ve been supporting mission critical open-source infra this way for the last ~1y and as much mechanical verification is the only way that keeps me sane. I’ve gone to MC/DC coverage and mutation tests, but there’s lack of good tooling in here, so even had to write some of my own https://supercov.com
mejutoco 2 hours ago [-]
The PR was always an inelegant concept. Git does not have the concept, the name is about the mechanics of how it gets done (pull request) and not about the thing it does (group of changes).
I, too, think it will be replaced by something else, something more clear and elegant.
orsorna 13 hours ago [-]
A PR is a collection of commits that get merged in. It's also a staging area for discussion on those commits, and importantly the existence of the PR implies intent to merge it in to a target branch. This is not apparent from just branches and commits strewn in a repo. It's a necessary abstraction regardless of who (or what) writes the PR.
janpeuker 5 hours ago [-]
I like calling it a "staging area for discussion". I think PRs should stay for that - I am much less sure about _branches_ and _commits_, especially because agents tend to branch and commit too much and not semantically at all.
Ironically I think the Piper/Perforce model, but distributed, works best with agents, a Changelist (CL) is exactly such a staging area, but one that stores a history of syncs, conflicts and discussion - and in the future maybe agent traces and context logs. But all of that has nothing to do with real history that needs to be rewritten.
forkqx 5 hours ago [-]
In my opinion, PRs are still valid today. Basically, what is a PR about? A way to view and review changes. That should stay.
What I've been thinking about lately is how we review these changes. When I'm reviewing a small feature or fix it's fine, but when there's a big feature with lots of files changed, it gets hard. What's been sitting in my head is that for big features, the view of changes could be split into several "layers". First you go over a high-level summary, and only then down to the low-level diff view. That way you can catch high-level problems without polluting your mental context with low-level details.
codingdave 7 hours ago [-]
I don't feel this question can be asked in isolation. You would need to know whether or not your engineers will ever need to read the code in the future for maintenance or security efforts. Even if not, you need to know how your future AI is going to troubleshoot problems. Would future AIs even need that? Does a PR process, even if 100% AI-driven, create commentary and artifacts that would provide context for a future AI? Going even farther, do you even need git? Do commits and commit messages provide data it might need to debug a problem, for example with a bisect? Or do we need an entire new source control paradigm?
Without digging deep enough to answer all those questions, I'm not sure we have enough of a vision of the future to answer just the small slice of how we manage PRs.
trio8453 8 hours ago [-]
1. Human develops locally with AI assistance, takes as many iterations as they need until they're satisfied. (At least for my own work I know that if I was just sending the first thing the agent produces, I'd be shipping a lot of garbage.)
2. Human author opens a PR (please don't send me a wall of Claude text as the PR description, try to write it yourself).
3. (optional: AI bot automatically reviews the PR and leaves some comments - mixed experience with these so far)
4. Another human reviews the PR, either just by reading, or by pulling it locally and inspecting it with the help with an agent.
5. Some comments left by human, author keeps iterating until everyone is happy and the reviewer approves the PR.
6. Author merges.
For 1. and 4. it's down to the human's own discretion how closely they'll read the code and understand every detail as opposed to skimming, checking general approach or trusting that it's a mechanical enough change that reading every line doesn't matter.
fwlr 11 hours ago [-]
Maybe the concept of AI coding should be updated for PRs? A human PR is created by human effort and is an implicit promise by the submitter that they will provide more human effort in response to reviewer questions and suggestions; perhaps an AI-driven PR should likewise include a link to the live conversation and some complimentary tokens for the reviewers to elicit more AI effort.
13 hours ago [-]
eezing 13 hours ago [-]
I have been wondering this myself. The entire software development life cycle is shifting. The GitHub pull request was originally designed for humans reviewing human-written code. It feels quite antiquated these days, and I presume it is fading away.
bustermellotron 12 hours ago [-]
Even if you’re just having AI review, if you don’t post the comments, they might go round in circles.
14 hours ago [-]
sourav_biswas 11 hours ago [-]
Well I treat my AI work more like proposals that need validations
jmathai 12 hours ago [-]
Unpopular opinion. Replace human PR reviews with comprehensive automated end-to-end tests that validate functionality, performance, security, etc.
Humans in the loop to get agents unstuck and to make sure they aren’t being dumb. This doesn’t require code review.
trio8453 8 hours ago [-]
> Replace human PR reviews with comprehensive automated end-to-end tests that validate functionality, performance, security, etc.
How is that a replacement? We've had automated tests for a very long time and we've been doing code reviews because passing tests aren't enough.
jmathai 4 hours ago [-]
It's not a one-for-one replacement. You can have a significantly more robust and thorough suite of tests and validations than you could with a team of humans.
trio8453 3 hours ago [-]
It's not a replacement of any kind, it's an improvement on a completely different axis. An axis which has barely changed since the introduction of LLMs - we had tests before, now it's a bit easier to have tests, that's about it.
jmathai 2 hours ago [-]
I understand. That is not my experience though. My proof is this app which I've launched to both App Stores with new features being added on nearly a weekly basis - mostly while I sleep. https://trysojourn.app
ToJans 10 hours ago [-]
I've been doing this for half a year now. The current models can handle it.
But they do have extensive documentation about the vision/mission/strategy/tactics, combined with client info, adrs for architectural choices (that they write themselves), hundreds of loops (most code) that check lots of things etc
jmathai 4 hours ago [-]
Agree and I'm doing the same. The thoroughness you can get from using AI across the stack does not compare to what I've seen in my professional career (includes work at big tech).
anttiharju 11 hours ago [-]
What do you think about these human aspects?
- I generally like to chat beforehand with who would review (I guess its mostly stamping these days) the PR whether the idea makes sense. If it's nontrivial.
- If I get a large-ish PR to review I generally go chat with the author to see if they are able to articulate what's happening in it and why. Not really reviewing code these days, but reviewing the human haha.
jmathai 4 hours ago [-]
- I find the models are becoming very good at understanding what to do with much less input from me. It helps to have a lot of context in the repo about the overall goals and guidelines though.
- I can watch the tests run by the pipeline or I can ask the AI the same questions I'd ask a dev. In fact, I can ask more questions and be more direct without worrying about offending a dev.
sky2224 8 hours ago [-]
Not that I disagree, but how do you build a pipeline you're confident in with this? Tests have to be written... how do you evaluate the quality of said tests?
You can do mutation testing, but I don't think that covers all of your bases.
jmathai 4 hours ago [-]
You build that confidence. It takes work because you have to give the AI a lot of prerequisite context. But watch the tests that it runs and how it verifies the work. It does a lot more than would do. For example, it will take screenshots of the pages to measure and verify things are lined up precisely.
bob1029 7 hours ago [-]
I think the answer is to look at the PR differently. Not to change it structurally or to eliminate it.
Every bottlenecked code review process I've ever experienced had very little to do with risk to the customers production environment. A lot of developers seem to use the PR as an opportunity to play PvP with their peers rather than advocate for the customer or business.
If we are looking at PRs entirely through the lens of risk and liability to the business, we can eliminate most of the bullshit here.
Note that this has nothing to do with AI in principle. AI is just a scalar over something that was already a broken trash fire in many cases.
bigstrat2003 12 hours ago [-]
If you don't understand the code, you are derelict in your duty as an engineer. If the person submitting the code has chosen to not do his job of understanding the code, the rest of the team has a responsibility to push back. Yes, PRs are still necessary.
I, too, think it will be replaced by something else, something more clear and elegant.
Ironically I think the Piper/Perforce model, but distributed, works best with agents, a Changelist (CL) is exactly such a staging area, but one that stores a history of syncs, conflicts and discussion - and in the future maybe agent traces and context logs. But all of that has nothing to do with real history that needs to be rewritten.
What I've been thinking about lately is how we review these changes. When I'm reviewing a small feature or fix it's fine, but when there's a big feature with lots of files changed, it gets hard. What's been sitting in my head is that for big features, the view of changes could be split into several "layers". First you go over a high-level summary, and only then down to the low-level diff view. That way you can catch high-level problems without polluting your mental context with low-level details.
Without digging deep enough to answer all those questions, I'm not sure we have enough of a vision of the future to answer just the small slice of how we manage PRs.
2. Human author opens a PR (please don't send me a wall of Claude text as the PR description, try to write it yourself).
3. (optional: AI bot automatically reviews the PR and leaves some comments - mixed experience with these so far)
4. Another human reviews the PR, either just by reading, or by pulling it locally and inspecting it with the help with an agent.
5. Some comments left by human, author keeps iterating until everyone is happy and the reviewer approves the PR.
6. Author merges.
For 1. and 4. it's down to the human's own discretion how closely they'll read the code and understand every detail as opposed to skimming, checking general approach or trusting that it's a mechanical enough change that reading every line doesn't matter.
Humans in the loop to get agents unstuck and to make sure they aren’t being dumb. This doesn’t require code review.
How is that a replacement? We've had automated tests for a very long time and we've been doing code reviews because passing tests aren't enough.
But they do have extensive documentation about the vision/mission/strategy/tactics, combined with client info, adrs for architectural choices (that they write themselves), hundreds of loops (most code) that check lots of things etc
- I generally like to chat beforehand with who would review (I guess its mostly stamping these days) the PR whether the idea makes sense. If it's nontrivial.
- If I get a large-ish PR to review I generally go chat with the author to see if they are able to articulate what's happening in it and why. Not really reviewing code these days, but reviewing the human haha.
- I can watch the tests run by the pipeline or I can ask the AI the same questions I'd ask a dev. In fact, I can ask more questions and be more direct without worrying about offending a dev.
You can do mutation testing, but I don't think that covers all of your bases.
Every bottlenecked code review process I've ever experienced had very little to do with risk to the customers production environment. A lot of developers seem to use the PR as an opportunity to play PvP with their peers rather than advocate for the customer or business.
If we are looking at PRs entirely through the lens of risk and liability to the business, we can eliminate most of the bullshit here.
Note that this has nothing to do with AI in principle. AI is just a scalar over something that was already a broken trash fire in many cases.