See also:
Exec: We have this elaborate deployment process that our team must follow every time. To deploy our <inconsequential product>, it has all these fancy gates, CI checks, approval workflows (in several companies, up to and including exec sign-off). Every change in the build is tracked back to Jira tickets, and it can’t ship if they’ve not all been signed off by QA. A “release” to our cloud platform takes hours to do well; it’s a very specialist task, and our whole scrum process is designed to ensure this build goes every 2 weeks without fail. Staff stay late to make sure it happens.
Engineer: What about hotfixes when we find a bug in prod, and customers are down or were embarrassed or whatever?
Exec: oh, we have a special _hotfix deployment_ process for that. You don’t use any of the tooling. You cut a branch, build locally and push direct to prod; whatever it takes.
Eng: so why isn’t that the standard process?
The number of times I’ve had to explain to dumbfounded management that the existence of this hotfix process with no safeties means it should be the standard deploy process, because it either works fine and doesn’t need all the comfort theatre that’s been engineered around a ship process, or it doesn’t work fine and we need to run it repeatedly to fix its problems before it really causes an issue.
Sometimes I’m successful.
In fairness, a hotfix is a very tactical low risk change so the risk is much different from a feature release.
That said, generally agree that process heavy release processes with tons of human gates are unproductive.
It took me a while to come round to full only deploy main, use feature flags, ci cd. I now realise I was an idiot about release branches and git flow and all that.
A lot of times the stupid elaborate deployment process needs to be done to check a box in the Three-Letter-Compliance standard (PCI, ISO, SOC or whatever), which you need to follow in order to be "certified" (tm) because your B2B customers REQUIRE you to be bullshit-certified so that their IT can wash their hands in a "not my problem, they were certified" manner when something happens.
Half serious rebuttal:
Because the hotfix is made by the guru Principal who has been there for 12 years and wrote the system, while 80% of "normal" commits are made by juniors.
> Eng: so why isn’t that the standard process?
Hotfixes are typically very minor changes to fix (or in many cases mitigate) a verified bug that is causing immediate pain. Or, quite often, just a straight rollback commit.
You follow the process for regular changes, because the process exists for a reason. Ensuring quality and security is important. When you have a customer base, not impacting your customers negatively often is more important than pushing whatever shit you farted in a PR.
That I have to explain this to someone I presume to be an engineer is weird
> so why isn’t that the standard process?
Because of people. I have once worked at a place that had no CI/CD and people made hotfixes in prod. What they didn't do was commit their changes back to git and when someone deployed a new version from git everything broke.
CI/CD provides a path from git to prod if you do it right.
I have worked at another company without CI/CD or tests for their legacy product. Every change by a developer was a shot in the dark. Will it work? Will everything explode? Who knew?
CI/CD would have given a way to have some confidence. It's not perfect but it's worlds better than nothing.
Now you might say: people should not forget to commit their stuff to git. True. But they do. Every process that is only written down and not enforced technically will be broken at some point. The more people the easier it happens.
That of course doesn't mean that there shouldn't never be a way to short circuit the default process. If everything is down you have a good chance you won't make it worse. But that's the point. It should be an emergency route not the norm. Just as the fire exit is not the normal exit even though it might be very fast and convenient.