logoalt Hacker News

BadBadJellyBean • yesterday at 8:24 PM • 0 replies • view on HN

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