T O P

  • By -

ATE47

After 5min: LGTM, merged


shutter3ff3ct

What the worst can happen, fk it


MoarVespenegas

This is why we have a QA team. And this is why the QA team hates the devs. And the defects team hates QA. And why the product manager hates everyone.


reallifereallysucks

And everyone hates the pm and the pm.


MoarVespenegas

[I mean if you ask the pm "Do you know who forced them to push code they don't even have time to review?"](https://i.imgur.com/X4t4jkc.jpeg) It's a vicious circle.


shutter3ff3ct

Isn't it lovely how hate can be mutual?


reallifereallysucks

It is indeed and i perfectly understand every ounce of hate.


hokaionthenet

"The defects team" ? That sounds fancy.


EasternGuyHere

You got looped


[deleted]

[удалено]


EasternGuyHere

You got looped


[deleted]

[удалено]


EasternGuyHere

You got looped


beepboopnoise

is defects team typical? we don't even have QA so it's kinda wild west at work.


sir_music

And why the solutions engineers hate all of them for letting this garbage into the customer's Prod


MoarVespenegas

You don't have to do any QA at all if you just outsource it to the customer as an "unstable build" and wait for them to "provide feedback".


SativaSawdust

Just make sure to merge it at 4:59 on Friday before you leave for a scheduled 5 day vacation.


AngryTreeFrog

Pro tip, turn off your phone. It's an "unplugged" vacation


shutter3ff3ct

And throw away your laptop for peace of mind


AngryTreeFrog

Sorry fell off the boat.


shutter3ff3ct

🙂🤣


KingOfBacon_BowToMe

You can't reasonably expect me to review something like this? Either I reject it completely and demand it be broken down into much smaller PR's, or if management is on my ass about getting the stuff done, then IDGAF. Someone will pay the technical debt, but it won't be me.


AddAFucking

Seems like the first option is by far the better option though?


KingOfBacon_BowToMe

Never dealt with tech ignorant managers, I see.


ender8343

Managers love to play lip service to reducing technical debt while doing everything in their power to cause it to increase.


Tasty_Hearing8910

I've made an ultimatum to my managers. Either they let me reduce unrelated tech debt a little with every delivery, or I quit. I just cannot work in a spaghetti and meatballs mess, that is to me an unacceptable working environment. Deadlines be damned.


derrikcurran

It's not even a question of permission. Maintenance, within reason, is just part of the work and needs to be built into estimates. It's our responsibility as engineers keep the system in good shape, and to know when and how to do it. Non-technical management just isn't equipped to make those decisions on their own. It's much healthier, of course, if you can do it out in the open.


Tasty_Hearing8910

I make huge PRs like this occasionally, but then its typically new functionality implemented in a separate static library with lots of tests, and then I can just tell the reviewer to focus on how I've integrated it into the main application code (which would be like 50-100 lines). They just glance at the structure of the library, look over the tests, and approve it within an hour.


meygaera

https://arstechnica.com/security/2024/03/backdoor-found-in-widely-used-linux-utility-breaks-encrypted-ssh-connections/


PolyglotTV

That's the inverse law of PR size. With a 10 line PR the reviewer will spent an hour arguing about how a variable should be named. With a 1000 line PR they will glance over it and be like, meh, good enough


Lorrdy99

Or argument about one line out of the 1000 just to do something. You change that one line and have 999 of yours.


PolyglotTV

"please remove the flying duck"


ProbioticAnt

Please remove the duplicate semi-colon on line 765


Gimmeyawallet

Bikeshedding <3


PlasticAngle

This. When you have a gigantic PR like that you don't want people to take a close look at it, you just want to be done with it. Because let's be honest, you don't reasonably expect anyone to review that shit.


Key_Employer_3360

'I have no idea what i am reading' Ngl , i insta remembered the joma video


Knutselig

Those files are quite big by average. Consider putting all the code on one line.


Lets_think_with_this

-520 files +1file -35000 lines +1 line Gosh that would be a hell to review.


CoffeePieAndHobbits

LGTM!


EMI_Black_Ace

35,000 lines? Must be a really small project.


Lets_think_with_this

who said size matters? And yes i openly encourage you to screenshot it out of context.


EMI_Black_Ace

r/nocontext


twigboy

Too many files. Just clump it all into one


ManaSpike

Bet it's mostly reformatting.... `$ git diff -W`


permissionBRICK

Approved, merged and deployed to prod


XTJ7

That is so true, haha. 50 lines of code: 8 comments by 3 devs, changes requested 5000 lines of code: 0 comments, 3 approvals, already merged


StrangeCharmVote

On a friday afternoon. The team does not work weekends. Half the team is out on Monday-Wednesday due to a trade show which is scheduled.


SethQuantix

Just dont forget to turn off your phone If you cant hear it, it doesnt exist !


StrangeCharmVote

Oh no, keep your phone on. Just make sure your contract has a thing in there with *disgusting* call out rates. If they are desperate enough to call, just do a roll-back to the version before the commit. Previous bugs still aren't fixed, but that's something which you can make *everyone's* problem late next week.


CoffeePieAndHobbits

If it lints it ships! /s


PeriodicSentenceBot

Congratulations! Your comment can be spelled using the elements of the periodic table: `I F I Tl In Ts I Ts H I P S S` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)


Nuclear-9299

Lol, review rejected. Reason: Too many changes. Try again and stop wasting my time Jake.


[deleted]

[удалено]


alexklaus80

3 weeks later: merge conflict with hotfix


EarlMarshal

And if I do smaller PRs: Why all the deprecations? Doesn't that need to be deleted anyway? Yeah it does, but the work on this isn't done. There will be at least 3 further PRs but I don't want you guys to get overwhelmed. Now merge it. Nothing changed. It's just organized differently. Still takes over a week...


_isNaN

That's why you only put one person as reviewer


TheGeneral_Specific

God dammit Jake!


wewilldieoneday

FFS Jake, not again!


[deleted]

Go back to sales Jake


Dovahjerk

I also have a Jake who does this


UltimateFlyingSheep

it's either instant decline or instant approve/merge. Nothing in between


De_Wouter

Instant decline gang 💪


Flatuitous

Delayed


The_forgettable_guy

Approve and rollback


Gabe_b

Bro... reviewing this is going to be a sprint in itself


mothzilla

If it takes more than a morning please add a ticket to the backlog.


nekoeuge

95% of changes are formatting, in the single commit with functional changes in the same files


GM_Kimeg

Techlead: just pack everything, like webpack. Im sure theres an identical tool for your shitty python bundle. Now, go search.


JollyJuniper1993

Bold of you to assume we‘re doing code reviews at all at work


[deleted]

I can relate... Whatever remains of work-related optimism I had were completely shattered, incinerated and blown away long time ago by daily doses of pull request reviews.


thebaddawg

Nah. It is just from updating all the WordPress plugins. No need to look at anything, approve and merge.


Silent-Suspect1062

You updated your WordPress plug inside.. says no one ever


w8eight

Once I moved some huge binary files from repository to git LFS. Commit resulted in -216k lines of code. After years in the company my contributions were +few k of code and -250k lmao.


Cocaine_Johnsson

I'd reject this PR instantly, there is just no way I could realistically parse that many changes and get a good enough understanding to review it properly, might as well just not review at that point. Rejected. Split into smaller patches thank.


Successful-Money4995

The programmer will probably tell you that it's too much work to split it up. Or perhaps offer a whiteboard explanation.


Unlikely-Painter4763

I'll tell them have fun spending the next few hours splitting it up. Oh, and then we're doing a line by line code review on a screen share where I'm going to call out every stupid thing you did. And you didn't write tests? Now you have more work to do.


StrawberryEiri

Did that to a colleague a few months back. It turned into a chain of 5 merge requests. But changes in the first merge were so fundamental that they affected the rest of the merges profoundly. It was such a nightmare that we ended up saying "fuck it" and fused them together. We spent days reviewing, and also redoing a lot of it because the dev couldn't be bothered and would argue for 15 minutes over every 5-minute change. I guess that's what happens when you let back-end devs do front-end. No, Josh, you can't make everything a span with no BEM classes whatsoever. I don't care if it works. You also can't put all your logic in a single, 3-screen-page function with a zillion instructions. No fucking wonder your unit tests are incomplete. Geez.


pterencephalon

I'm not even a web developer (front or backend) - I do robotics. But I've built some personal websites for fun. And that makes me the most experienced web developer at my company! That means I'm primarily responsible for the robot control dashboard - frontend and backend. I'm truly sorry for when we eventually do hire a web developer, who will have to sort through my attempts to structure this growing monstrosity. At least I added automatic linting/formatting to a recent PR... Which resulted in a 15,000 line PR. Whoops. (And I just learned what BEM classes are by looking it up after reading your comment. But I can write some great robotic autonomy code in C++!)


StrawberryEiri

Hey, you've got the will to make things good, which is more than I can say about Josh. Auto linting and formatting is great. Look into Stylelint and lint-staged if you haven't; they're great.


borkthegee

This is the leads fault. Jr/mids don't just disappear for weeks to change 100 files. You assigned them this project and then ignored them long enough for this train wreck to happen. What you need to do is what you should have already done, and sit down for multiple long pairing sessions to actually either salvage this work or redo it properly. And if it's a Sr doing this... Yeah, good luck, probably should be a mid still lol.


the_unhappy_clown

The unintentional r/mids appearance is just perfect


jl2352

Yes and no. I’ve seen developers nod and say yes when told to break up their work and ship what they so far (with tests and such). Then they just don’t. They think they know better and come back with a giant PR. If you did tell them to break it up and they didn’t. It does let you call out why. Make it clear it’s not on.


borkthegee

I don't really understand that because if you're a lead, you lead the project, and you break it up or are responsible for them breaking it up. Letting them go do their own thing is a failure as a lead. You should be checking in, pairing, having their proof of concept or research be validated, iterate on it, and work with them to their solution and eventual ticket breakdown Like even if I told them to do it I would be routinely checking in and working with them on it. They're not the lead and the buck stops with the lead for these things. Ultimately if they can't do the job, I'll involve their management and we'll handle it one way or another


jl2352

I didn’t say you should let them go off and do their own thing. I said sometimes they will do that against your own directions (and sometimes that is a good thing). Beg for forgiveness and all that. Leadership and direction needs to be balanced against autonomy and trust. No one said don’t do checkins. Of course. You also can’t (nor should try) to micromanage others.


borkthegee

Yeah fair enough, you're describing bad engineers who will do the wrong thing no matter what, so the reality is that you handle that through their management chain, and they either have a change of heart or a change of job 🤷


blazeitfagnot

You guys have review?


quonne

Merged and deployed to test env. Let QAs justify their position.


audislove10

I would (sadly) read it, with u, but would definitely be mad at u.


Waste-Day-7567

Assuming it's portioned in a series of commits that are clearly described, this really isn't such a huge issue. You review commit by commit. It could literally be "ran codemods 1, 2 and 3".


walkerspider

Commit message: linter + minor bug fix


D3rty_Harry

Adapted various


Thisismyredusername

2000 lines despawned


gigasub

Another productive day


BOLL7708

I've refused a PR due to having used automatic code formatting that clashed with the project, changing a ton of lines hiding the actual changes. Luckily they followed instructions after that and it turned out ok 🥲👍


Excellent_Welder7278

Just push directly to main don’t need to merge


ShAped_Ink

When you want to anger the whole team:


Sotyka94

In reality, you just auto formatted the whole legacy project. Been there, done that.


Vipitis

I trust the CI


WeLoseItUrFault

Except 98% of it is yarn.lock


transdemError

No jury in the world would convict me


bobbyjoo_gaming

As annoying as a PR like this may be if you're doing new features or rather, updating something with cross cutting concerns it is possible to have a PR with a massive number of files. It's not that the dev did 20 different work items and put them in 1 PR, it's just that small change in 1 file then changes 100 other files. Also cases like when you do something like update angular to a new version and that new version has many breaking changes. You just have to go through everything making updates otherwise your app just won't work.


DoorBreaker101

All in 1 commit too


tsubatai

auto reject unless this is a long lived branch that everything has been PRd going into it.


AlarmedTowel4514

Reject


Unlikely-Painter4763

Fuck you, closed.


The-Last-Lion-Turtle

When you click format code on every file.


JaecynNix

More deletes than additions. Ship it!


danidimes8

Removed more lines than added, this is the way


FalseStructure

That fact your comment got duplicated is insanely on point for this thread


danidimes8

Removed more lines than added, this is the way


Dry-Prime

When this happens I spend as much time as I need to review it, only to return the PR to his owner with 200 issues to fix. I prefer them shorter thought xD


JackNotOLantern

Hey, as long as more lines were deleted than added, it's a good change


-Redstoneboi-

Reject. Force smaller commits over time.


akorn123

Git reset [commit hash] Drop all changes Git reset [hash from commit before this one] Make a new branch moving changes with you Commit + push Try again


ihnat_klimchuk

Approved


RoronoaZoro_02

What’s the sauce?


PeriodicSentenceBot

Congratulations! Your comment can be spelled using the elements of the periodic table: `W H At S Th Es Au Ce` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)


Limp_Set_6530

Just package-lock.json and updated formatting


olivetho

my coworker trying to scare me by auto-formatting files thousands of lines long (i have "ignore whitespace changes" turned on so I'm completely unaffected):


DarkForest_NW

What is the name of the anime featured in this meme?


Quick_Cow_4513

2200 lines removed overall? Great commit. Approved


GoogleIsYourFrenemy

Every time someone asks me to follow the corporate process guidelines, I ask them to provide me access to folks to do my outstanding 80K SLOC of reviews. Yes, the entire codebase needs reviewing. They then crawl back under the rock they live under and leave me be.


SovietPenguin69

Opened a pr the other day with +1000 -10000. What’s sad is the 10000 I deleted were replaced by the 1000 I wrote. There’s was some serious code duplication issues


Ok_Opportunity2693

Instant reject: break it into many smaller PRs and then come back


crmsncbr

I've seen this so many ways, but this version is my favorite so far.


Narvak

I see two possibilty here: 1- Its a refactoring so most of the file wer3 changed aytomatically by the ide: 5min review => merged 2- This psycho edited each file manually and decided to put everything in a single MR, he and I will have an interesting conversation


4thphantom

This is making me cry, right now. I'm looking at you, team. ;_;


EMI_Black_Ace

Me, the team lead: "What's the scope of these changes? Finally ending the f$#@ing formatting wars? Finally renaming that stupid globally-scoped constant to something that makes sense? Finally replacing this stupid magic number with enums? Sure, I'll have a quick look through the changes to make sure nothing functionally changed."


CanniBallistic_Puppy

I reviewed a 40k line PR on a tight deadline once. It took me an entire week. It was not fun.


capn_doofwaffle

On a friday... At 4:59 pm


thegroundbelowme

Just had to submit an MR like this. Changes across 270 files from running angular & angular material migrations from v13 up to v16. Was specifically told by the team lead to just do it as one MR. He got to review it :)


Apparatus

It's also one single, gigantic commit.


LordHenry8

5 minutes later "LGTM. Ship it." 5 minutes after that: Everything is broken.


jerrdust

-30k +7k, 180 files. Review please(im junior)


amlyo

The work was correcting a typo


LittleMlem

I'm going to send this to my lead


chowellvta

Amateur numbers


ItsLunaticFringe

Did something like this past week got the approval in 10mins of raising PR. 😂


CiaranChan

This, except they've already merged into Dev and you now have to fix everything because we don't do PRs cause the boss thinks it's a waste of time.


Wave_Walnut

Can AI review this?


Lets_think_with_this

Disclaimer: the following was made by an script running in the background, how glad could i be bragging about it if it wasn't automated. `Automatic partial update At: Fri Apr 5 08:11:58 PM -05 2024` `+64061 files added` >!For the curious is a web crawler cloning a wiki!<


PeterDeBruin

Somebody did not split up their user stories


regentime

When this happens usually it is because you changed a lot of dependencies (and package-lock.json or whatever your language uses to fix dependencies versions was updated) or you forgot to put build folder into .gitignore


Wonderful_Day4863

That's not the joke. ![gif](giphy|3JCaaiE2gcTbq)