Work Culture & Behind the Scenes

Release Engineering the Google Way: Self-Service Releases, Hermetic Builds and Controlled Frequent Releases

According to the Google SRE Book, software release is an engineering discipline. Teams automate releases, ensure builds are repeatable, and restrict who is allowed to release.

By Oemah Solution Editorial 4 min read

This article was prepared with AI assistance from the official sources listed below, and checked automatically before publication.

A container ship moored in a port with a large crane under a clear blue sky
Photo: COSCO Shipping Danube (ship, 2016) IMO 9731913, Amazonehaven, Port of Rotterdam pic5 by Alf van Beem · Public domain · Wikimedia Commons

Many IT teams release software infrequently, in large batches of changes, and depend on manual steps held by a single person. As a result, every release feels risky and is hard to trace when something goes wrong. In the "Release Engineering" chapter of the Google SRE Book, Dinah McNutt explains how Google treats the release process as an engineering discipline in its own right. This article summarises its principles as learning material, not as practices followed at our company.

What Is Release Engineering

According to the Google SRE Book, release engineering is a relatively new and fast-growing discipline, which in short means building and delivering software. At Google, it is a distinct job function. Release engineers work together with software engineers and SREs to define all the steps of a release: from how code is stored in the repository and the build rules, to testing, packaging and deployment.

The reasoning is simple: reliable services require a reliable release process. Binaries and configuration must be built automatically and be reproducible, so that every release can be repeated rather than being a one-off "unique" event. Changes to the release process must also be deliberate, not accidental.

The Underlying Principles

The source names four main principles:

  • Self-service. Teams must be self-sufficient and control their own release process. Teams decide how often and when to release. The process is automated so that engineer involvement is minimal, and is only needed when problems arise.
  • High velocity. Google follows the philosophy that frequent releases mean fewer changes between versions, which makes testing and troubleshooting easier. Some teams build every hour and then choose which version from that set of builds goes to production, based on test results and the features it contains.
  • Hermetic builds. Two people building the same revision on different machines must get identical results. Builds depend on known versions of tools and libraries, not on whatever happens to be installed on the build machine.
  • Enforcement of policies and procedures. Several layers of access control determine who may perform certain release operations.

How It Works in Practice

Google has an automated release system called Rapid. Its workflow includes the following.

  • Branching. All code goes into the mainline. Large projects branch from the mainline at a specific revision and never merge that branch back.
  • Cherry-picking. Bug fixes are submitted to the mainline, then picked one by one into the release branch. This way other unrelated changes are not carried along, and the contents of each release are known with certainty.
  • Rebuilding old releases. To fix a bug in the version running in production, the build is repeated at the same revision plus specific changes. The build tools themselves are versioned according to the project revision, so the compiler from this month is not used to rebuild last month's release.
  • Change reports. The release system produces a report of all changes in a release and archives it together with the build artefacts, making issue tracking faster.

Pitfalls to Watch For

From the source's description, several risks can be inferred:

  • Machine-dependent builds. Without hermetic builds, results can differ between machines, and rebuilding old releases becomes difficult.
  • Picking up unwanted changes. Releasing directly from the mainline risks bringing along other changes that are not ready.
  • Uncontrolled release access. Google restricts operations such as approving code changes, creating new releases, deploying releases, and changing build configuration.
  • Neglected configuration. According to the source, configuration management is an area of very close collaboration between release engineers and SREs, because configuration changes can be a source of instability.

Applying This in Teams and for Clients

Teams do not need to operate at Google's scale to adopt these principles. Some steps in line with the chapter:

  1. Automate builds and deployments through a CI/CD pipeline so they do not depend on a single person.
  2. Fix the versions of tools and dependencies so that builds can be repeated.
  3. Release more often, in small changes.
  4. Use release branches and cherry-picking for hotfixes.
  5. Determine who is authorised to approve and execute releases, and keep a record of the changes.

For managers of government or business systems, the questions worth asking a service provider are: can a release be repeated, are the contents of each release known, and who is allowed to release. Clear answers reduce risk when the system is upgraded.

#release engineering#devops#ci-cd#sre#configuration management

Sources & references

This article is a summary and interpretation by the Oemah Solution team of the sources below. Refer to the original sources for full details and context.

  1. Google SRE: Role of Release Engineer and Best Practices Google SRE Book · sre.google