mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 12:16:03 +09:00
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>
2.9 KiB
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. Addfull-e2emanually 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 upgradesucceeds, 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-rootand 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=serveragainst 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 onDraft release for v... not foundwhile 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 afterPublish draft releasefailed past the undraft: the images and the chart went out in the earlier attempt, so only check thatlatestsits 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 runhack/promote-retag.shand push the stable chart by hand first (the commands are theRetag rc images to stableandPublish stable cozy-installer chartsteps), then undraft. If the step lost itsgithub-tokenagain, file the workflow regression: it lists releases with the CI app token, and while it ran without it, until7d2fe2f7, the lookup found no draft on any release. - The promote PR carries
docs/changelogs/vX.Y.Z.mdand 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/websitedocs PR stays parked until publish. Promotion opens it early; merging it before the GitHub release forvX.Y.Zis 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).