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.
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.
I actually got so drunk trying to fix an issue late on a friday that I forgot I fixed it. Came in on the monday to try and fix it thinking I cant see the problem
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.
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.
Not so much in the more common workflows, but remember that git is designed to be incredibly flexible. Maybe you want to indicate that all descendants of this commit are to be excluded from Release 26.1. Maybe you want to trigger some secondary review process, based on changes that aren't captured in Git. Maybe you have some zany review process where reviewers submit their feedback as a git commit message on a blank commit.
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.
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.
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...
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.
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
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.
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.
489
u/InfernoronsDev Oct 01 '26 •
They are all safe. No changes happen on production! No problems!
51
u/faultydesign Oct 01 '26
Considering that ci/cd does the deployment for me I guess 1?
85
u/ducon__lajoie Oct 01 '26
๐บ๐บ๐บ๐บ๐บ๐บ๐บ โForgot I'm a developer
39
u/JackNotOLantern Oct 01 '26
How tf do you commit without making any change?
24
u/alvares169 Oct 01 '26
Time to remind yalls about Ballmer Peak (its true), rel xkcd https://xkcd.com/323/
41
u/rosuav Oct 01 '26
I don't need any amount of alcohol to do all three.
5
u/ScaredyCatUK Oct 01 '26
laptop + 20 beers ....
3
u/IchBinEinZwerg Oct 01 '26
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 Oct 01 '26
The more I drink the more changes, but also a higher chance of rollback.
3
u/Educational_Bottle74 Oct 01 '26
Forgot to Make changes. Forgot to Commit & Push. Forgot to Deploy.
3
u/chomu_lal Oct 03 '26
Make changes โ Deploy. Then wonder why the changes don't reflect on prod ๐ฅ
2
u/bigmanbiggerguy Oct 01 '26
What did git pickup if there werenโt any changes? What did I commit?
2
u/EkoChamberKryptonite Oct 01 '26
How can you commit and push without any local changes?
2
u/Most-Club-254 Oct 01 '26
1
u/dim13 Oct 01 '26
1
u/Bannon9k Oct 01 '26
Been in charge long enough to do all 3... I need to retire
1
u/megayippie Oct 01 '26
All of the above
1
u/leon_nerd Oct 01 '26
Mostly #3
1
u/GolemT Oct 01 '26
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 Oct 01 '26
How many beers is accidental large AWS bill?
And how many beers is "key got leaked an larger AWS bill"?
1
u/Luneriazz Oct 01 '26
Just remove the damn laptop
1
u/_almostNobody Oct 01 '26
Forgot to merge
1
u/DeepanshuHQ Oct 01 '26
The last one is just coding while drunk and hoping for the best.
1
u/Some_Useless_Person Oct 01 '26
None, the moment I touch any food item, even beverages and shit, I. OPEN. YOUTUBE.
1
u/cheezballs Oct 01 '26
Coulda been funny until that last one.
1
u/saurabia Oct 01 '26
I do all this without any beers.
1
u/Jonathan_the_Nerd Oct 01 '26
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 Oct 01 '26
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 Oct 01 '26
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 Oct 01 '26
All of these are just ADHD
1
u/competitive-dust Oct 01 '26
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 Oct 01 '26
Forgot to make
1
u/yesseruser Oct 01 '26
I code sober: โ Forgot to make changes โ Forgot to commit & push โ Forgot to deploy โ Depression
1
u/_Weyland_ Oct 01 '26
Don't drink and code, kids. It's not safe.
1
u/Bakoro Oct 01 '26
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 Oct 01 '26
None, I don't drink. I smoke weed though.
1
u/Common-Brush-7027 Oct 01 '26
I'm not listed there....I'm more of drink coffee and sleep and don't join the scrum call
1
u/LamermanSE Oct 01 '26
That's why you have automated deploys after commits
1
u/dangerous_service Oct 01 '26
Forgot that I am a dev
1
u/Ven0mspawn Oct 01 '26
Worried about the day I forget to highlight WHERE
1
u/melonangie Oct 02 '26
forgot introduce bugs
1
u/Abhilash26 Oct 02 '26
Sounds like ADHD. Speaking from experience.
1
u/dharknesss Oct 02 '26
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 Oct 02 '26
I dont drink so i guess the one that pushes to prod
1
u/Sermuns Oct 03 '26
git commit --allow-empty -m "no changes"1
u/wildrabbit12 Oct 01 '26
None
0
u/collabskus Oct 01 '26
I didn't do nothing ๐ญ