Files
cozystack/docs/release/pre-release-checklist.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.9 KiB

Pre-release verification checklist

For RCs and final releases, run this before merging the release PR. Each item is here because something has shipped without it and broken users.

  • The published rc passed mandatory full E2E. Confirm the promote PR says ✅ RC full e2e was verified; the normal promote PR itself runs no E2E. Add full-e2e manually only when a repeat is required, and treat a ⚠️ bypass line as an explicit release-risk decision.
  • Upgrade from previous patch (vX.Y.(Z-1)) on a real cluster. helm upgrade succeeds, all HelmReleases reach Ready, no CRD schema rejections.
  • Upgrade from previous minor (v(X-1).Y.0) for RC and minor releases. Same assertions.
  • At least one tenant with publishing.ingressName != tenant-root and a real Let's Encrypt-staging cert issuance.
  • Apply-mutate-reapply on the kubernetes umbrella HelmRelease (catches second-reconcile bugs).
  • For every CRD-source bump (kubevirt, cert-manager, flux, cilium, kamaji): helm template | kubectl apply --dry-run=server against the freshly-installed CRDs.
  • For every flux / helm-controller / kubevirt-operator / cert-manager bump: paste the upstream breaking-changes section of the bump's CHANGELOG into the PR body before merge.
  • After cutting the tag, watch pull-requests-release.yaml::Finalize Release. If it fails on Draft release for v... not found while the release is still a draft, nothing has been written to the registry yet, so undrafting the release by hand would publish it without its stable images and chart. If the release is already published, this is a re-run after Publish draft release failed past the undraft: the images and the chart went out in the earlier attempt, so only check that latest sits on the newest stable (gh release edit <tag> --latest). Fix the cause and re-run the failed job; a re-run uses the same workflow file, so for a workflow regression run hack/promote-retag.sh and push the stable chart by hand first (the commands are the Retag rc images to stable and Publish stable cozy-installer chart steps), then undraft. If the step lost its github-token again, file the workflow regression: it lists releases with the CI app token, and while it ran without it, until 7d2fe2f7, the lookup found no draft on any release.
  • The promote PR carries docs/changelogs/vX.Y.Z.md and it was verified per Changelog pre-publish verification. Finalize publishes this file as the release body, so verifying it before merge is verifying the release notes.
  • The cozystack/website docs PR stays parked until publish. Promotion opens it early; merging it before the GitHub release for vX.Y.Z is live 404s the new version's docs and API links. Merge it right after finalize publishes the release (regular-release step 6, patch step 7).