2.7 KiB
Releasing Arena
Prerequisites
-
Write permission for the kubeflow/arena repository.
-
Create a GitHub Token.
-
Install
PyGithub:pip install PyGithub==2.3.0
Versioning Policy
Arena version format follows Semantic Versioning. Arena versions are in the format of vX.Y.Z, where X is the major version, Y is the minor version, and Z is the patch version. The patch version contains only bug fixes.
Release Process
Update Versions
-
Modify
VERSIONfile in the root directory of the project:- For the RC tag as follows:
vX.Y.Z-rc.N- For the official release tag as follows:
vX.Y.Z -
Modify
versionandappVersioninChart.yaml:# Get version and remove the leading 'v' VERSION=$(cat VERSION | sed "s/^v//") # Change the version and appVersion in Chart.yaml # On Linux sed -i "s/^version.*/version: ${VERSION}/" arena-artifacts/Chart.yaml sed -i "s/^appVersion.*/appVersion: ${VERSION}/" arena-artifacts/Chart.yaml # On MacOS sed -i '' "s/^version.*/version: ${VERSION}/" arena-artifacts/Chart.yaml sed -i '' "s/^appVersion.*/appVersion: ${VERSION}/" arena-artifacts/Chart.yaml -
Commit and push the changes to your own branch:
git add VERSION git add arena-artifacts/Chart.yaml git commit -s -m "Release v${VERSION}" git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD) -
Open a new PR to the master branch.
Publish release
After VERSION file is modified and pushed to the master branch, a release workflow will be triggered to create a new draft release with the arena installer packaged as artifacts. After modifying the release notes, then publish the release.
Update Changelog
-
Update the
CHANGELOG.mdfile by running:# Use your GitHub token. GH_TOKEN=<github-token> # The previous release version, e.g. v1.7.1 PREVIOUS_RELEASE=vX.Y.Z # The current release version, e.g. v1.8.0 CURRENT_RELEASE=vX.Y.Z python hack/generate-changelog.py \ --token=${GH_TOKEN} \ --range=${PREVIOUS_RELEASE}..${CURRENT_RELEASE} -
Group PRs in the
CHANGELOG.mdfile into Features, Bug Fixes and Misc, etc. -
Finally, open a new PR to the master branch with the updated Changelog.