ChiselOps

Case 01

Releasing took 40 minutes and broke once a week

A team of eight, three services. Four weeks of work brought the release down to six minutes; over the following eleven weeks it failed once.

The first of two cases. The second one is about restoring from backups.

Client
Internal logistics software, central Europe. Not named, at their request.
Team
Eight people, one of whom spent about a quarter of their time on infrastructure
Audit
2 December 2024
Work
9 December 2024 – 17 January 2025
Handover
20 January 2025
Result measured
7 April 2025, eleven weeks later

What was there

A release was fourteen manual steps performed from a page in the internal wiki. The page had last been edited seven months before the audit, and three of its fourteen steps no longer matched the system - people knew this and silently did it their own way.

The build was not reproducible. We built one commit ten times: artefact checksums matched on three runs out of ten. The cause was ordinary - some dependency versions were unpinned, and a lock file existed but was never verified during the build.

A rollback took 25 minutes, was done by hand, and in the previous quarter had failed to complete three times: halfway through, the previous artefact turned out to have been deleted by a cleanup schedule.

And the thing that actually got us called in: one person knew the whole sequence. In November he was on holiday on the day an urgent release was needed, and it took everybody else four hours.

What we did

  1. Pinned every dependency version and made the build verify the lock file.
  2. Made the build reproducible: removed timestamps and build-machine paths from the artefact and fixed the file order inside archives. Ten builds of one commit then produced ten identical checksums.
  3. Collapsed the fourteen steps into a single script with meaningful exit codes and a dry run. Their engineer wrote it; we reviewed and rewrote three places.
  4. Made rollback routine: the last five artefacts are no longer deleted on a schedule, and a rollback is the same command with a version number.
  5. Ran a practice release with the team and without us, then another with a deliberately broken dependency, to watch a rollback happen for real.
  6. Wrote the document and tested it on somebody who had not been involved. He got stuck twice, and both times we edited the text.
Release: forty minutes before the work, six after. Rollback: twenty-five minutes before, four after Release before after Rollback before after 40 min 6 min 25 min 4 min
One scale across all four bars. The bottom bar is four minutes, forty-two pixels wide.

Before and after

Measured on 7 April 2025. A «release failure» is any case where the release did not complete or needed a fix applied mid-flight.
MeasureBeforeAfter
Release time40 min6 min
Manual steps141
Matching checksums, out of 10 builds310
Rollback time25 min4 min
Release failures per quarter111
People able to release15

In the eleven weeks after handover the team released 51 times. The single failure, on 3 February, came from an expired certificate at an external service nothing to do with us - and it demonstrated that the rollback works: four minutes, without us and without panic.

What did not work out

Approving database schema changes stayed manual. We proposed automating it, the team declined, and we agreed: on their data a failed automatic migration would cost more than the two minutes a human spends pressing a button. The report records this as a knowingly accepted risk rather than an unfinished item.

The tests still take 23 minutes. They are not part of the six-minute release - they are a separate stage before it, and speeding up their contents was outside our scope. Anybody quoting «six minutes» without that caveat is misleading you.

One more: we did not touch the way access is granted there. It is bad, it is the first item in the report’s «not touched» section, and as of our last conversation it was unchanged.

The second case covers three years of backups being restored for the first time. The stages of a project are described on a separate page.