Files
cozystack/docs/agents/releasing.md
T
Myasnikov Daniil e1472e58de fix(ci): publish the release only after the stable images and chart exist
Finalize undrafted the release before it retagged the images and
published the cozy-installer chart, so for the length of the retag the
release page announced a version whose images and chart returned
manifest unknown. The retag took 80-95 seconds on the 1.6.x patches and
several minutes on v1.7.0. A failure in either step also left a public
release that a re-run could not repair, because the re-run looked for a
draft and found none.

Move the draft lookup and the latest decision into their own step that
runs before any registry write, hand the decision to the retag, the
chart and the release page as step outputs, and undraft last. A missing
draft now fails while no stable name exists, and a failed retag leaves
the draft in place for a re-run. The comments and docs that took the
release to be public by the time finalize pushes the stable tag now say
when it is published.

Deciding latest before the retag opens minutes in which two release PRs
merged close together would both decide they are the newest, leaving
latest on the older line on the page, the image aliases and the chart.
Finalize therefore runs one release at a time, in a concurrency group
that only release PRs join and that queues every merged release rather
than cancelling the one waiting.

The finalize bats suites run both github-script steps under node against
a stubbed API: a missing draft, an orphaned draft, an older patch after
a newer minor, and every shipped changelog's tag. A contract test fails
on a registry step allowed to fail, a publish step that runs after a
failure, a `latest` that moves without the decision, or finalize runs
that may overlap.

Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-27 10:25:01 +00:00

2.3 KiB

Release Process

This document provides instructions for AI agents on how to handle release-related tasks.

When to Use

Follow these instructions when the user asks to:

  • Create a new release
  • Prepare a release
  • Tag a release
  • Perform release-related tasks

Instructions

For detailed release process instructions, follow the steps documented in the pages under docs/release/, starting from their index:

docs/release.md

Quick Reference

The release process is promotion-based — a stable release is a renamed release-candidate, never a hand-cut tag or a rebuild. At a high level it involves:

  1. Cutting a release candidate (Cut Pre-release Tag workflow) and watching its mandatory full E2E.
  2. Promoting the rc (Promote RC workflow), which generates the changelog, opens the parked cozystack/website docs PR, and opens the promote PR.
  3. Reviewing and merging the promote PR (no squash-merge).
  4. Finalize on merge (CI cuts the write-once tag, retags the rc images to stable by digest, publishes the stable chart, and last publishes the release from the merged changelog).
  5. Merging the parked website docs PR once the release is published.

All detailed steps, workflows, and failure modes are documented in the pages under docs/release/, one per topic, and docs/release.md links each of them.

What a patch release carries is decided by the rules in docs/release/backports.md, not per pull request: fixes reach the release lines through the backport batch, and nobody labels or opens a backport. For a patch release, or any rc cut from a release-X.Y branch, check the branch before tagging: build the batch tool with go build ./cmd/backport-batch, then run ./backport-batch check --line release-X.Y --cut. It exits 1 while a pull request the rules take is not on the line, including one that is only on the open batch pull request, which the cut would not carry, and prints the URLs; what the batch deferred prints as warnings. See cmd/backport-batch/README.md and Cherry-pick triage before a patch. Do not report a branch as ready to cut on the strength of a list of merged pull requests or of the batch pull request's description — they list what merged or was picked, not what arrived.