An unofficial, read-only Hacker News reader.

Microsoft declares 'Code Red' after historic outage, internal memos show (opens external site)

259 points by thm 4 days ago | www.reuters.com | 245 comments on HN

View full thread · View on Hacker News

Comment thread (21)

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

    Replies (8)
    1. 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.

    2. 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.
      Replies (1)
      1. Any reading or video you might recommend?
        Replies (1)
        1. Sorry I don't, it was that Dev ops at my job demanded it and got their way. Once I started doing it I realised they were right.
    3. 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.
      Replies (1)
      1. At least for ISO 27001, this is not correct. You can have a lean approach which allows deploying to prod in minutes after merge to main, and only a peer review as ‘approval ceremony’ before the merge.
        Replies (2)
        1. Yup. Sadly one of the areas B2B software often fails with an own goal is in contractual clauses agreed with customers who insist on being “notified” in advance of any change. Lots of lawyering required to suppress those in standard service agreements in my experience.
        2. Agreed. These regulations are mostly checklists at the end of the day; no reason why they can't be automated.
    4. > 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

      Replies (1)
      1. The mechanism for both should be the same. You just change the speed, based on an informed understanding of the risk.
        Replies (3)
        1. No.

          Sometimes a hotfix needs to be applied quicker. You may not have time to let it soak on a QA environment, go through your usual release approval process, etc.

          The purpose of the process is to reduce the anount of times a hotfix is even needed and evaluate the risk of what is being shipped.

          Replies (1)
          1. That does not contradict what I said. You have a mechanism to push very very quickly, and you almost always use it slowly.
        2. Why should the process be the same when the scale of the change is very different?

          Would you use the same process to build an extension to your home as you would to change a lightbulb or hang a picture?

          Replies (2)
          1. When you are going extremely fast you want to be using a system/tool that you use all the time and have high confidence in.
          2. > Would you use the same process to build an extension to your home as you would to change a lightbulb or hang a picture?

            In a way, yes: decompose each objective into a set of discrete problems to solve. If today’s problem is “need to climb to a height” (to change a lightbulb or lift a beam in, or whatever), I’d much rather use the ladder I know and have faith in than the rusty one I found in the yard that is the special “lifting beams in home extension” ladder whose integrity is unknown.

            It’s the same point here. Much safer to use the tool and process we use all the time. It helps us go faster, with more confidence, which ultimately has indirect but measurable benefits on the wider business.

        3. When you have a broken system the risk/reward changes. If you break it further the users may not notice so you might take more risk to get a hotfix out but then you keep it as simple as possible to limit that risk.

          In normal development one would let through much larger changes, having put them through much more checking.

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

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

    7. Because their hotfix process is a smell. Hotfixes like that should go through the same CI/CD pipelines, possibly with a few gates manually skipped. The manual QA signoff is the bottleneck; that should be automated IMO.
    8. To be clear, my point about laptop builds to prod and removing safeties was mostly tongue-in-cheek, although it does happen for "hotfixes" in many environments – more routinely than I'd care to admit.

      The crux of my point is that there should be one deployment path that can go faster or slower as the requirement dictates. We trust the human operating the process to make that decision and empower them with sufficient context to do so. If the automated path isn't safe or quick enough to use in an emergency, that needs fixing, and we only achieve the required levels of reliability and tease out the problems by doing it routinely. Process needs exercising to ensure it's going to work in an emergency situation, where stress is high and we need the reliability of routine the most. It's comforting to add gates, but if they're routinely worked around or there's non-compliance to get work done, they don't add value.

      Resilience engineering and especially Safety-II would call the gated path "work as imagined" while the hotfix path is "work as done". Safety-II advocates for studying and strengthening how work actually succeeds, so closing that gap is a good place to start. Surgeons don't have a "trauma mode" where they skip sterile technique and grab unfamiliar instruments, but in an emergency they can compress the timing because it's drilled. The work of software engineers rarely has the same consequences, but nevertheless, deployments should work the same way.