Skip to content

Chapter 7: Releases and Deprecation

Shipping is a contract with everyone downstream. Versions, changelogs, and deprecation windows are how that contract is stated, and automation from commit history is how it stays true. This chapter covers both ends of an interface’s life: the release that first promises it, and the policy that eventually retires it.

Concepts from other sections (4)

This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.

  • Semantic versioning (semver): MAJOR.MINOR.PATCH, where major signals breaking changes, minor compatible additions, and patch compatible fixes. Read more: 7.1 Commits, semver, and releases
  • Hyrum’s Law: with enough users, every observable behavior of an interface is depended on by somebody. Read more: 7.2 Deprecation policy
  • Exit condition: the measurable criterion, here a minimum window plus a period of zero use, that makes removal safe. Read more: 7.2 Deprecation policy
  • Readers first, then writers: the rollout order for a format change, so every message sent can be read by every peer. Read more: 7.2 Deprecation policy

A version number is a promise about compatibility. Semantic versioning says a major bump may break callers and a minor bump may not, and for this system the public API is the HTTP surface, the C ABI, and the file formats. The first section releases v1.0.0 from history rather than from memory: conventional commits make the next version and the changelog a function of the commits since the last tag, and a release workflow running in CI, never on a laptop, checks that the tag, the tested commit, and the changelog agree.

The second section deals with what happens after. With enough users, every observable behavior is depended on (Hyrum’s Law), so removing anything needs a policy: announce, warn, measure usage, migrate, then remove. Deprecation is a feature with a budget. It has an owner, a timeline, warnings in responses and logs (the Deprecation and Sunset HTTP headers), and telemetry that shows when the last caller is gone. The policy written here is the one the migrations in Maintenance follow.

Learning objectives

  • Apply semver to the system’s public interfaces and explain what 1.0.0 promises.
  • Release from an annotated, immutable tag with a workflow that verifies the tag and changelog agree.
  • Write a deprecation policy whose notices have an owner, a window, a meter, an exit condition, and a rollback.
  • Explain why format changes roll out readers first, then writers.

You need the CI gate and conventional commits from Code Review and CI, which the release builds on. Hyrum’s Law and deprecation at scale are discussed in Software Engineering at Google, which is useful background.

  1. Commits, semver, and releases: semver as a promise, an annotated v1.0.0 tag, a changelog grouped by user effect, and a tag-triggered workflow that checks the tested commit is the tagged one.
  2. Deprecation policy: what every notice must name, measured exit conditions, readers-first rollout for formats, and the review that must happen before anything is removed.