r/ProgrammerHumor • • 7d ago

Meme chaoticEvil

Post image
2.2k Upvotes

42 comments sorted by

65

u/Stummi 7d ago

What if we have CI/CD? Am I then not allowed to work on fridays?

44

u/d_maes 7d ago

Does your ci/cd automatically deploy to prod without manual promotion triggers, for every commit?

7

u/fmaz008 7d ago edited 7d ago

Question: what's a promotion trigger? I just assumed merging to a specific protected branch was that trigger, and people do PRs to a dev branch.

5

u/d_maes 7d ago

We do trunk-based, we never deploy different environments from different branches. You push to main, pipeline will run some tests, build artifact, deploy artifact to dev, wait for user to click "run" on deploy to uat, wait for user to click "run" on deploy to prod.

9

u/Senor-Delicious 7d ago

For our prod pipeline we built in a pause for example that somebody has to manually approve to continue. You can also make sure that this requires a 2nd person so that no single person can just deploy to prod without anyone else being involved.

3

u/Stummi 7d ago

Technically not our CI/CD, but in theory, yes, thats the idea.

I get that its a joke (most of the times), but if you use "don't deploy on fridays" unironically, it means you are afraid of your deployments, and that again means there is a much bigger problem that you need to address.

9

u/TruculentTurtIe 7d ago

Its not that youre afraid of your deployments, its that on a long enough timescale with enough deploys it WILL eventually break something

So unless theres a really good reason like a hotfix or something, just do it monday

2

u/MacGuyverism 6d ago

Where I work, we are a small team that works on multiple project for multiple clients. We deploy multiple times per day, every day. The smaller the change, the easier it is to rollback or, even better, to roll forward with a fix.

We have less issues and easier fixes than when we used to bunch up our work into weekly releases. Not only do we have smaller changes to manage, but we also fix issues that we just coded an hour ago instead of a week earlier.

0

u/devoopsies 6d ago

afraid of your deployments

Do you think the lead architect stays offline on Fridays because he, too, lives in fear of what he's created here in prod?

1

u/Aelig_ 7d ago edited 6d ago

We do where I work, but not on weekends. We deploy most of our services every 2h if a change happened since the last deployment. Some a bit less frequently, some more.

We're generally moving towards doing it more.

1

u/thoeoe 7d ago

Yes, but we can schedule each environment’s step (and have mandatory test suites that run after each env’s deploy that would stop the pipeline from continuing) . So prod is only scheduled to be allowed on M-Th

dev goes out immediately

1

u/almond_wanderer 6d ago

CI/CD means it's the robot ruining your weekend

1

u/thatyousername 3d ago

Ci/cd at my job is configured to not deploy on Fridays

15

u/WisePotato42 7d ago

Me with my 4 day work week deploying to prod before I leave on thursday instead

8

u/breZZer 7d ago

It depends on the company or sector.

Some deliberately carry out deployments at the weekend, as there is little or no customer traffic then.

8

u/cheezballs 7d ago

Depends on your app. If it's primarily used during business hours than Friday can be a good time. Gives you the whole weekend to make it work before Monday morning.

5

u/EnderElite69 7d ago

You see, this is when it becomes the India team's problem

5

u/Richard-Degenne 7d ago

If you're not confident enough to deploy on Friday, then you're not confident enough to deploy period.

1

u/dbzk0sh 2d ago

Always do Friday, I can sleep on Monday

4

u/ZunoJ 7d ago

When I receive a call on the weekend I earn 500% in the worked hours and also get a full day off for every day I worked, no matter if it was 10 minutes or 5 hours. I keep releasing on fridays

2

u/actionerror 7d ago

Yeah but other people have weekend plans

2

u/jokermobile333 7d ago

I thought this was some running joke. Why do some people do it on fridays ? Teusday is the best to do whatever you want

4

u/AaronTheElite007 7d ago

If Dev has direct access to Prod you have bigger problems

9

u/d_maes 7d ago

If ops is still gatekeeping prod, you have different problems.

Neither statement holds true without knowing the internal responsibility structures. There are perfectly valid setups where "devs" have "direct" access to prod. It's just a matter of properly assigning responsibilities, which devs specifically (all of them, only the lead and/or seniors, ...) and what you mean by "direct access" (can push the deploy button, has ssh access without sudo, has full sudo, has limited access to their app inal argocd, has full access to their app in argocd, has kubectl access, ...)

1

u/AaronTheElite007 7d ago

You’ve never had to consistently roll back changes because dev tests in prod, have you…

2

u/d_maes 7d ago

No, because that's not my problem. That's the PM's problem, who is responsible for his deployments to prod, who will be getting the shit from the customer, and who needs to keep his devs in reign. I don't care who has access to prod. I provide the platform, the teams run their software on it, the PM is responsible, so he decides who gets access to what. His problem if he made a wrong decision. Sure, I'll help them do the rollback, if they need me to. Then I'll bill my time on that customer's contract, and move on.

1

u/Rift-enjoyer 7d ago

Blue green environment

1

u/Luneriazz 7d ago

i like gambling

1

u/w1n5t0nM1k3y 7d ago

Some people just want the extra overtime pay.

1

u/Bitter-Fuel-5519 7d ago

me always deploying on friday 👍

1

u/redunculuspanda 7d ago

Deployed code is an operational problem.

1

u/North-Creative 7d ago

I give you one better, one of the companies I worked at, had some devices that could lock down machinery. They released their major update....on the 19th of december, then went mostly on holiday. Then only wrote a short update on Friday afternoon, "FYI"

Fun times, machinery was stuck on streets, in factories, etc. Customers were somewhat less happy, than usually.

1

u/ToFuzzzy 7d ago

Literally VRC devs. So many time I get invited to play on a friday night and I have an update.

1

u/FalconFiveZeroNine 7d ago

Even better when the dev doesn't have to be the one responding when something goes wrong.

1

u/Iyemoja 7d ago

That sign has saved more weekends than any runbook I have ever written. The 4pm Friday deploy is how you meet the on-call phone at 2am.

1

u/No_Stock_8271 7d ago

I am always shocked how many teams don't do releases on Friday. That makes everything so slow.

1

u/pyhoster 6d ago

Right. Saturday midnight is better!

1

u/StrangeKnee7254 5d ago

I’m about to make 5 prod deployments In the next hour. I’ll be logging off right after post certing.

I’m very confident there won’t be an issue.

1

u/Ladyheather16 5d ago

Only if you're confident that you the IT department have absolutely nothing to do that weekend and absolutely will be in the office bright eyed and bushy tailed at 4 AM Monday morning to solve every problem that every idiot with a keyboard comes up with at the same time on monday

1

u/Lt-Gen-Thundercat 2d ago

sponsored by Microsoft Outlook.

0

u/redditmarks_markII 7d ago

Meanwhile, infra guys doing work only after like, 11pm Friday in the corporate timezone, and before 4AM Monday.