mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-27 00:19:36 -05:00
4.9 KiB
4.9 KiB
Release Checklist
This checklist will prepare v1.3.0
from v1.2.0
(minor release) or v1.3.1
from v1.3.0
(patch release). Adjust your version numbers accordingly.
Preparation
- Search the code for TODOs and FIXMEs that should be resolved before releasing.
- Update titles and labels for all PRs relevant for this release to aid in the changelog generation.
Automated release
Releases should be performed using the automated release pipeline.
Patch release
cherry-pick
(only) the required commits frommain
- Check PRs with label needs-backport to find candidates that should be included in a patch release.
- trigger the automated release pipeline from the existing minor version branch:
ver=v1.3.1 # replace me minor=$(echo $ver | cut -d '.' -f 1,2) gh workflow run release.yml --ref release/v$minor -F version=$ver -F kind=patch
- wait for the pipeline to finish
- while in editing mode for the release, clear the textbox, select the last patch release for the current release branch and click "Generate release notes".
- look over the autogenerated draft release. When fixing the changelog, prioritize updating the PR title/labels/description and regenerating the changelog over fixing things in the final changelog.
- publish.
Minor release
- Merge ready PRs
- trigger the automated release pipeline from
main
:ver=v1.3.0 # replace me minor=$(echo $ver | cut -d '.' -f 1,2) gh workflow run release.yml --ref main -F version=$ver -F kind=minor
- wait for the pipeline to finish
- while in editing mode for the release, clear the textbox, select the last minor release and click "Generate release notes".
- look over the autogenerated draft release. When fixing the changelog, prioritize updating the PR title/labels/description and regenerating the changelog over fixing things in the final changelog.
- publish.
Post release steps
-
Milestones management
- Create a new milestone for the next release
- Add the next release manager and an approximate release date to the milestone description
- Close the milestone for the release
- Move open issues and PRs from closed milestone to next milestone
-
If the release is a minor version release, tag the latest commit on main as the start of the next pre-release phase.
nextMinorVer=$(echo "${ver}" | awk -F. -v OFS=. '{$2 += 1 ; print}') git checkout main git pull git tag v${nextMinorVer}-pre git push origin refs/tags/v${nextMinorVer}-pre
Pipeline cleanup
When testing changes to the pipeline or when the pipeline fails during a release it might become necessary to clean up the images created by the pipeline. These are the necessary steps.
General
Depending on how far the pipeline ran we need to delete:
- the release tag create by the pipeline:
v1.3.0
/v1.3.1
- (only minor releases) the branch to merge changes back to main:
feat/release/v1.3.0
GCP
- Navigate to Images tab of the "constellation-images" project
- Search for the image version "v1-3-0-stable"
- Select the image and press "DELETE"
Azure
- Navigate to Azure compute galleries
- Select "Constellation_CVM" (this is for confidential vms on AMD SEV SNP)
- Select image definition "constellation"
- Select "Versions" submenu and search for "1.3.0"
- Press "Delete" button NEXT TO THE IMAGE VERSION TABLE. Do no delete the image definition.
- Go back to "Azure compute galleries" page and select "Constellation" gallery (this is for trusted launch)
- Select image definition "constellation"
- Select "Versions" submenu and search for "1.3.0"
- Press "Delete" button NEXT TO THE IMAGE VERSION TABLE. Do no delete the image definition.
AWS
Important: You need to repeat the following steps for every region supported by Constellation! Currently, this includes:
- Frankfurt (eu-central-1)
- Ohio (us-east-2)
- Mumbai (ap-south-1)
- Navigate to AMI
- Search for release version "constellation-v1.3.0" and select the AMI
- On the "Actions" button (top right) select "Deregister AMI"
- Either follow the link on the deletion confirmation leading you to the Snapshots panel or navigate there yourself
- Search for a snapshot by the same name "constellation-v1.3.0" and select it
- On the "Actions" button (top right) select "Delete snapshot"