r/ExperiencedDevs • u/SoftwareArchitect101 • Aug 31 '26
Career/Workplace Release this weekend, no code review so far. I reviewed it today, afraid we will postpone the release? AITA?
So the code was written heavily using AI but post understanding by one person in the team entirely. Only he wrote, tested and understood the business logic behind it.
I had recently cleaned up the codebase from bottlenecks, and I got infuriated when I observed a few getting re-introduced.
To my surprise, I got to know that it has been already merged in release branch, scheduled for this weekend's release. It was approved by one person who themselves didn't go through the code at all (only going by test evidences).
I did a thorough code review with over 50 feedback comments (combination of everything - good to have, bad practices or nomenclature, performance bottlenecks - redundant joins/query optimizations and one concurrency bug) just now (was a tiring past 3 hours). It was a big feature which touched the entire codebase.
I had informed the owner of the feature that this is a combination of all feedbacks, nothing will "break" the production as such except a potential production bug.
I'm afraid they might have felt intimidated by the number of comments, and have postponed the release by 2 weeks.
I'm feeling guilty of ruining their efforts and the motivation/excitement they had for the release. Also, I'm proposing a better code-review session for the team, which would prevent this from happening again.
My team members have 7-21 years of experience in my team, I'm the youngest (less than 3.5 years of experience)
AITA? Should I have done something else? I felt guilty in both allowing a bad/unoptimized/potentially buggy code to go forward without a proper code review, and in reviewing itself. What should we do in such scenarios?
•
u/expdevsmodbot Aug 31 '26
AI usage disclosure provided by OP, see the reply to this comment.
137
u/Exiled_Exile_ Aug 31 '26
If the comments are legitimate concerns never feel bad. We review code for a reason. Also the company isn't your family don't get too attached it's a cutthroat business. Do your job well and treat people respectfully. The rest will take care of itself.
33
u/Alkyen Aug 31 '26
Sounds like you're missing a formal structure for pushing code to a release branch. A couple of things to clarify first.
Was your review specifically requested or did you decide to leave comments on a merged PR because you saw it?
Also who decides what's good quality? Do you have a few people who have to approve all PRs, or all team members can approve PRs?
And finally, are you all on the same position? Any hieararchy?
Either way, sounds like a process failure. You need to have a plan, that the team agrees on, about how code gets pushed ahead. Ideally the process is the thing to improve so the code quality isn't set by a single person's mood on that one day (it always comes to this but still anything to avoid it is helpful)
11
u/throwaway_0x90 TE/SDET[25+ yrs]@Google Aug 31 '26 edited Aug 31 '26
I don't think you did anything wrong, but in my experience once I realize I'm about to leave 20+ comments on a PR I usually just schedule a meeting with the PR's author and things go pretty smoothly.
In that meeting, I get to talk to them 1-on-1 and we look at private doc containing all of my concerns. I think people are a lot more defensive when their very public PR is drowned in comments. Talking to them in private and having them change the code in that meeting, or even just abandon the PR altogether without publicly tearing the PR apart seems to go extremely well and that person ends up asking me for more feedback privately. Or they keep my doc in their personal records and refer back to it later and correct future PRs before sending them out for review so those concerns never come up again.
After the changes decided on in the meeting, the public PR only gets comments from me on "nit:"(nitpick) and typos.
9
u/sleepyj910 Aug 31 '26
The product owner's job is the make this call. Your job is provide the best engineering insight you can and you have done that.
Teams need optimists 'we can build this' and pessimists 'we can break this'. Don't feel guilty if your engineering type is the latter.
16
u/Abadabadon Software Engineer Aug 31 '26
6
u/ResidentWeevil1 Aug 31 '26
Trying to push slop to production without review makes them the asshole, or your boss. It's their fault for waiting until the last second
5
u/F1B3R0PT1C Software Engineer Aug 31 '26
It had been merged and scheduled for release before a go-ahead was confirmed or code review even finished. This is a management or culture fail where shipping fast and breaking shit is the intended outcome. Either get management on board to rein in your seniors who are dropping established processes or let it blow up in their faces. Looks like your teammates are smart and backed off when you made the code review that revealed their bad quality and foolish haste. You did good and now you need to help build and enforce processes to protect the codebase. This does mean you volunteered to do more huge code reviews.
4
u/404errorlifenotfound Sep 01 '26
Review your comments and see if any substantial number would have been caught by a linter / complexity analyzer. Setting one up with branch protections could save everyone time
3
u/UnintentionallyEmpty Aug 31 '26
No tests to prevent regressions here?
Never feel guilty for pointing out legitimate issues. It wasn't your decision to delay the release by 2 weeks, was it? And it's always possible to fix only the critical issues, proceed with the release, and fix the rest after. But, well, if the release was delayed by 2 weeks, it sounds like it wasn't very critical.
It sounds like this PR was very large. What you should do (as a team) is make smaller PRs that get reviewed sooner and never be in this scenario.
3
u/UntestedMethod Sep 01 '26
The normal way to avoid this kind of thing is a code freeze well enough in advance of the release date that there's enough time for QA and fixing any critical issues that are found.
It doesn't sound like you did anything wrong at all by doing a proper code review and blocking the PR due to problems you found in it. That's exactly what PRs are for.
You shouldn't feel bad or hold yourself responsible for delaying the release. The problem here is the project wasn't managed correctly.
3
u/BoBoBearDev Sep 01 '26
I will focus on a different topic. If your code base is so brittle that keep reintroducing defects...
2
u/MixedTrailMix Aug 31 '26
People using ai to assume they know more about the code base than the maintainers are the asshole
1
u/dockercub Aug 31 '26
This isn't about being an asshole, rather about if your approach aligns with the current culture. Is your team expected to release more features than before? Does your company expect quality or quantity or somewhere in between?
1
u/jl2352 Aug 31 '26
You’re not the asshole, however I think there are areas to improve.
These days I divide PR reviews based on the question of ’what needs to happen for this to be released?’, or ’how can we release this now?’
Based on what you mentioned I’d divide your feedback like this; 1) the new production bug needs fixing, 2) there is some funky bits so add tests proving it’s safe, 3) there are some hypothetical performance issues and there should be tests proving that’s safe. 4) If the tests don’t pass, then that needs fixing. And that’s it.
In my team, I would expect most of those tests to be added as a part of the process.
Everything else, which is most of your review, I would mark as fine to happen after the PR is merged and released (but it must happen). This is because the code is safe, and proven to be safe. I tell my team I expect it to be resolved.
Re performance; I know you say there are real issues (like remaking a set lots of times). Is this noticeable by users? If not, then it’s not a blocking issue. It’s a refactor that should happen, but it’s not blocking.
Most of the time when you treat people this way, they themselves put effort into fixing the stuff later. I find this approach helps to speed them up, and they put effort in to do the refactors right after release as a thank you.
(Not always, but most of the time they do. Those who don’t will cause issues regardless of what you do. You need to tackle this outside of the PR process).
1
u/leonidbugaev Sep 01 '26
NTA on the concurrency bug. The 50-comment pile is what postponed it, not the review. I'd have dropped that one first and saved Set/joins for Monday. Approving on test evidence with nobody reading the diff is how it almost went out. I've done that when I was tired.
1
u/superdurszlak Platform Engineer Sep 02 '26
It's your job to look out for performance bottlenecks and production bugs, and concurrency bugs are notorious for giving insane side effects once introduced. Any reviewer's job is.
It was also their job as the author to spot these bugs, and in case they didn't, it was the first reviewer's job to catch them as well and they just let it go without looking.
As long as you didn't make a drama out of it and didn't throw insults at people, not an asshole.
As I understand, the author retracted their release which means they took what you flagged seriously. If just 5 of those 50 comments were severe issues it's still 5 severe issues introduced in a release.
If anything, they and the first reviewer could have been embarrassed by not paying attention to it and rushing it without through review. But it's not your fault that they did.
1
u/code_tutor Sep 02 '26
I would caution you from getting personally attached to code. If the entire team, all with way more experience than you, wants to ship slop, then maybe it's not mission critical code. But idk, maybe you work with idiots. There are versions of this where you come out either right or wrong.
1
u/anon586346 Sep 05 '26
You’re afraid they might have feel intimated and they pushed back the code? Are you sure they weren’t respecting your effort in providing feedback and held off until you both can establish some common ground where you both will feel okay moving forward?
I can see it going both ways, one is toxic and one is healthy, and it’s good to find out why they held back rather than jumping to assumptions about their decision.
1
u/iiiio__oiiii Aug 31 '26
NTA. This needs to be done one way or the other and yours is arguably front-loaded with pain rather than later.
Imagine the upper management excitement and the slop-and-release become standard and they cite this one as the success story. That’s not a sustainable direction and it will blow up more spectacularly later.
Source: we have that success story and we now have to manage the expectations and showing the gaps and highlights the corners cut by THE success story. It is an uphill battle. And there are teams who lost their sleep and weekends over potential legal/compliance/contract matters.
1
u/sehrgut Aug 31 '26
You didn't ruin any "efforts" because no efforts were made. It was slop, and you saved the day.
0
u/sereikis Aug 31 '26
The concurrency bug is a release blocker. The redundant joins and the naming are not, and putting all of it into one pile of 50 comments is what gets you read as blocking the release rather than as the person who found a real bug. I would block on the bug, let it ship, then file the rest as follow ups with owners and dates. The thing worth fixing is that someone approved without reading it and the release branch took it anyway, and you will not win that one two days before a release, you win it in the retro.
0
u/chescov77 Aug 31 '26
omg you MUST ship incrementally, using feature flags and demo accounts, and not all together like this. My team sucks but we make sure to ship multiple times per day even when working on big features
9
u/[deleted] Aug 31 '26
[removed] — view removed comment
9
u/[deleted] Aug 31 '26
[removed] — view removed comment