| 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. |
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.