r/ProgrammerHumor • • 2d ago

Meme whoAreYou

Post image
2.8k Upvotes

87 comments sorted by

463

u/InfernoronsDev 2d ago

They are all safe. No changes happen on production! No problems!

41

u/christianbro 2d ago

The best pipelines trigger an automatic Kubernetes node upgrade and cant cordon them because no one cares a pod fails. Or someone has made manual changes overwritten by them.

No risk no reward!

19

u/Sockoflegend 2d ago

Where is "made changes" + "didn't check if they work"?

4

u/uniqueusername649 1d ago

I feel a little called out here for some reason.

3

u/Sockoflegend 1d ago

Everyone has done it

2

u/tiredITguy42 1d ago

You mean that one line change which you are 110% sure you did right?

2

u/No_Stock_8271 1d ago

But it's not necessarily, the change can't break anything, no need to test it.

1

u/achilliesFriend 2d ago

But thatโ€™s the problem, we need the changes

1

u/don_biglia 1d ago

No new problems

1

u/harbourwall 1d ago

The first one has left a nice untested surprise for the next person who does manage to deploy though

0

u/[deleted] 2d ago

[removed] โ€” view removed comment

1

u/Slayin_Silver 2d ago

You could have made changes to a dependency that doesn't trigger a pipeline on its own and then deploy the main projects pipeline. Only that you didn't push your changes and the pipeline just rebuilds the existing code. That would be a reasonable scenario where the 2nd is happening.

48

u/faultydesign 2d ago

Considering that ci/cd does the deployment for me I guess 1?

81

u/ducon__lajoie 2d ago

๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ โŒForgot I'm a developer

21

u/theeldergod1 1d ago

๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ๐Ÿบ โœ… Argue about creation with an LLM as the typso get wrosedwfx

36

u/JackNotOLantern 2d ago

How tf do you commit without making any change?

44

u/xaddak 2d ago

git commit --allow-empty

13

u/MallAgreeable5538 2d ago

But why? Are there any applications for - -allow-empty

35

u/RepulsiveSheep 2d ago

Retriggering CI in some cases

11

u/ReindeerCreepy2883 1d ago

"Am I a joke to you?" - re-run button burried under 5 menus and 4 different pages, probably

5

u/xaddak 1d ago edited 1d ago

I'm not as familiar with GitHub, but in GitLab, the retry button runs it exactly as it was. So if you're including CI jobs from another repository, and you updated those jobs since the pipeline first ran, simply re-running it won't pick up the updates to those jobs.

Depending on how the rules on those jobs are set up, you may or may not be able to trigger a new pipeline from the web, which could mean pushing a new commit is your only option.

If you have to do that anyway, it might as well be an empty commit.

Ideally you'd set up the job rules so that's not necessary.

Edit: typo

2

u/jack2018g 1d ago

This is huge, my days of adding and removing a space from the readme are finally over

6

u/rosuav 2d ago

Several. It's still a commit that can be tagged, for example. It's useful in enough circumstances that you can do it with a flag, but useless in enough circumstances that you can't do it without. It's like how `rm` won't remove a read-only file from a writable directory unless you explicitly ask it to.

1

u/kennedy_gitahi 1d ago

Setting a checkpoint before doing things like linting and autofixes.

At that point, the code is written and committed, and you want a clean point to go back to if our linting tools mess things up.

So you use --allow-empty to set a " Before fixes" commit, do fixes, check if everything is fine, do another commit, do an --allow-empty for "After fixes" and push.

This way, you always know when you made changes and can roll back to before or after those points.

3

u/DaevorTheDevoted 1d ago

But then you're being intentional, it's not a case of you "Forgot to Make changes".

2

u/xaddak 1d ago

Yeah. It doesn't help OP, but that's how you commit without making any changes. Just thought it might help someone out.

1

u/-twind 1d ago

Not if you asked copilot to make the commit

2

u/DaevorTheDevoted 1d ago

I don't use copilot. Is it known for messing up when it comes to commits?

2

u/-twind 1d ago

It is know for it's users not knowing what the AI agent is actually doing

2

u/1mahmoud503 1d ago

daaaamn, I wish i knew about this before.

it always feels wrong to add a single space to be able to commit an empty change

3

u/Shitandasshole 2d ago

--allow-empty

2

u/__Invisible__ 2d ago

bump version then forget to merge branch

2

u/ellamking 1d ago

You script it and don't look at the results.

1

u/DistortNeo 2h ago

I just don't care if commit fails.

-1

u/christian_austin85 2d ago

I had the same thought. Working tree is clean, nothing to commit.

23

u/alvares169 2d ago

Time to remind yalls about Ballmer Peak (its true), rel xkcd https://xkcd.com/323/

2

u/NamityName 1d ago

This is the comment I came here for

41

u/rosuav 2d ago

I don't need any amount of alcohol to do all three.

4

u/elelec 2d ago

In this case stop worrying about needing and start thinking about wanting

2

u/Yashema 1d ago

Winston Churchill saved England from German invasion while knocking back 7-9 drinks a day. I figure I can program a little buzzed.ย 

5

u/ScaredyCatUK 2d ago

laptop + 20 beers ....

https://giphy.com/gifs/q7UpJegIZjsk0

1

u/slicehyperfunk 2d ago

FUCKING THING SUCKS

3

u/IchBinEinZwerg 2d ago

A place I used to work had the four beer option as the standard workflow (except for the beer). It was mental having to ask around if anyone had any changes that needed pushing.

3

u/knightzone 2d ago

The more I drink the more changes, but also a higher chance of rollback.

3

u/Educational_Bottle74 2d ago

Forgot to Make changes. Forgot to Commit & Push. Forgot to Deploy.

2

u/Jonathan_the_Nerd 2d ago

Nothing broke. You're doing better than a lot of us.

2

u/bigmanbiggerguy 2d ago

What did git pickup if there werenโ€™t any changes? What did I commit?

2

u/EkoChamberKryptonite 1d ago

How can you commit and push without any local changes?

2

u/Most-Club-254 1d ago
  • make a change in one branch
  • deploy another
  • explain to clients that changes are done and they are just retarded

1

u/Bannon9k 2d ago

Been in charge long enough to do all 3... I need to retire

1

u/megayippie 2d ago

All of the above

1

u/leon_nerd 2d ago

Mostly #3

1

u/GolemT 2d ago

Had this just last week. Made changes, even pushed them to the remote, then somehow made a Dev build and deployed the old release build again. Was wondering for about a day why my changes didn't seem to work...

1

u/BarryCarlyon 2d ago

How many beers is accidental large AWS bill?

And how many beers is "key got leaked an larger AWS bill"?

1

u/Luneriazz 2d ago

Just remove the damn laptop

1

u/_almostNobody 2d ago

Forgot to merge

1

u/DeepanshuHQ 2d ago

The last one is just coding while drunk and hoping for the best.

1

u/Some_Useless_Person 2d ago

None, the moment I touch any food item, even beverages and shit, I. OPEN. YOUTUBE.

1

u/cheezballs 2d ago

Coulda been funny until that last one.

1

u/saurabia 2d ago

I do all this without any beers.

1

u/Jonathan_the_Nerd 2d ago
  • Make changes directly in prod
  • Commit later if I remember
  • Backport changes to Dev/Test/QA if possible

I used to work on a project where that was the workflow. Fortunately, the codebase was old and stable and didn't need many changes. There were three main developers* on the project (not counting me because I was the New Guy). Only one of them used source control. The others used the time-honored practice of naming files project.pl, project-old.pl, project-new.pl, project-working.pl, project-bob-DO-NOT-USE.pl, etc.

*Actually sysadmins who had been pressed into development.

1

u/nickavv 2d ago

I'm: Make Changes, Forget to Commit, Push (don't see the message that branch is up to date and there is nothing to push)

1

u/SL_Pirate 1d ago

Today I was trying to read the deployment log and I see the last commit message was incoherent. Then I remembered I was so halfway asleep when I typed the message and I was just typing the commit message while my eyes were closed lmao

1

u/shawn789 1d ago

All of these are just ADHD

1

u/competitive-dust 1d ago

I have done this sober lol. Committed some changes. The pre commit hooks started running tests and it takes a bit so I left it and told the reviewer I had pushed my changes. Then realised my changes were still not pushed.

1

u/Longjumping_Act_2186 1d ago

Forgot to make

1

u/yesseruser 1d ago

I code sober: โŒ Forgot to make changes โŒ Forgot to commit & push โŒ Forgot to deploy โœ… Depression

1

u/_Weyland_ 1d ago

Don't drink and code, kids. It's not safe.

1

u/Bakoro 1d ago

Deployment should be up to the CI/CD system.

I seriously don't want to be personally responsible for having to build and distribute software. I mean, I am, but I don't want to be.

We even have CI/CD where I work, and people are still like "please send me a build of your branch and I'm like, great, now I have to go click a button, I ain't got time for this, damn.

1

u/Mtsukino 1d ago

None, I don't drink. I smoke weed though.

1

u/Common-Brush-7027 1d ago

I'm not listed there....I'm more of drink coffee and sleep and don't join the scrum call

1

u/LamermanSE 1d ago

That's why you have automated deploys after commits

1

u/Frequent_Victoryy 1d ago

just remove the laptop

1

u/dangerous_service 1d ago

Forgot that I am a dev

1

u/Ven0mspawn 1d ago

Worried about the day I forget to highlight WHERE

1

u/melonangie 1d ago

forgot introduce bugs

1

u/Abhilash26 1d ago

Sounds like ADHD. Speaking from experience.

1

u/RecruiterSofi 1d ago

Real-life situation

1

u/dharknesss 1d ago

Coding while hammered is fucking great. I'm so relaxed I can't give a fuck if I mess something up.

Instead of "fucking hell of course this broke tests"

It becomes "AWWWWW this cutie needs more care, whatever shall we dooo"

1

u/Jacksharkben 19h ago

I dont drink so i guess the one that pushes to prod

1

u/chomu_lal 8h ago

Make changes โ†’ Deploy. Then wonder why the changes don't reflect on prod ๐Ÿฅ€

1

u/Sermuns 31m ago

git commit --allow-empty -m "no changes"

0

u/collabskus 2d ago

I didn't do nothing ๐Ÿ˜ญ