bash

  • A pipeline that deploys on merge, and the four gates before it

    Eight deploys a week performed by a person, an hour after merge, by whoever was free. Continuous deployment needs confidence rather than automation.

  • The VPS that had been running since 2019

    A host provisioned in 2019, upgraded in place three times, and a provisioning script that has never been run against an empty machine.

  • The shell script that was rewritten and stayed shell

    A six-hundred-line deploy script rewritten in a compiled language in 2024, and a second rewrite back to shell. The rewrite was correct about the problem and wrong about…

  • An on-call rota of three

    A rota of two is not a rota. A third person joined in November, and the gap was everything learned in the shadowing month and never written down.

  • A rolling update in twenty lines of shell

    Compose has no rolling update, and the thing it does not have is twenty lines of shell for a two-replica service. Scaling up, waiting for health, then removing…

  • Handing over on-call to one other person

    One person who can fix anything, and a rota of one. Three years of incidents resolved by the same person, every time.

  • A shell script that should have been a program

    A deployment script that had grown to six hundred lines of bash with functions, associative arrays and a retry loop. Bash is the right tool for orchestrating commands…

  • Reproducing a build from six months ago

    A security question about a release from July, and no way to rebuild it. The same commit produces a different image, and neither of them is wrong.

  • Import blocks, and the resources we had been pretending to manage

    Terraform 1.5 in June, and an import that is part of the plan rather than a side effect. Fourteen resources created by hand in 2019.

  • The state file two people wrote to at once

    Two pipelines, one state file, and a plan that proposed deleting a database. A lock held by a run cancelled forty minutes earlier.