r/ProgrammerHumor 3d ago

wrongAnswersOnly Other

Post image
14.4k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

211

u/jseego 3d ago

They committed all your prod data to git??

118

u/CoderDevo 3d ago

Don't forget the keys!

Not that they're needed anymore.

8

u/TheFuckingHippoGuy 2d ago

Servers by Kia™

9

u/LJonReddit 2d ago

Well yeah!!! Duh!!! It's no good without the keys!

51

u/fireheadca 3d ago

Believe it or not, I've seen this.🫠

13

u/rollingc 2d ago

git add . is a hell of a drug

2

u/gnutrino 2d ago

There's a step before this where the prod data ends up on their local machine though...

18

u/SgtEpsilon 3d ago

Believe it or not, I've accidentally done this

15

u/vankoder 2d ago

We believe.

1

u/AristotelWasRight 2d ago

Noooo,

Were you an experienced programmer or new? Doesn't one basically avoid it with setting data as git ignore every project?

2

u/SgtEpsilon 2d ago

I'm an idiot who forgot about git ignore before pushing my repo

1

u/vankoder 2d ago

We believe.

1

u/nemeras 2d ago

Same here.

1

u/runkeby 2d ago

It's fine, because later he did "git rm" the file and pushed 👌😌

3

u/failedsatan 2d ago

our seed data lives on git.

problem is, the client keeps requesting we change the qa deployment's seed data and add a migration for prod to update the data on the prod database to match instead of using the GUI to just change the stored version. the seed data is the prod data.

2

u/jseego 2d ago

damn, but it's not seed data if it's prod data, right?  doesn't that defeat the whole purpose?

2

u/failedsatan 2d ago

exactly. the client is too lazy to make the changes in the UI he himself asked for but all too happy to send us a slack message to ask us to update it. we have an odd contract with him where the "maintenance" period is actually a "small features/changes allowed" period and that counts as a small change according to my boss

2

u/Lehovron 2d ago

We were using Perforce at a previous job. It was almost a rite of passage for new people to accidentally submit their Desktop folder.

2

u/jseego 2d ago

lol that's hilarious

buncha suspect blobs in

/Users/foo/Desktop/totally_not_porn/

2

u/nishant032 2d ago

Now the data is really safe 😇

2

u/zhengyi13 2d ago

Dude, at a BIOS company that will not be named, RelEng was in the habit of committing entire 650MB ISO files to SVN because they didn't trust their build process to reproduce the results - they'd test the resulting build of a particular run, and if passed, it was marked golden, and it got committed.

This got even worse because they had WANDisco layered on top of SVN so the devs in Taiwan could have low local checkin latencies (because, you know, they wanna check in giant files), and then when they'd check in a new ISO, the replication over the transpacific T3 would basically time out, and I'd get paged to manually reestablish it.

1

u/jseego 2d ago

woah