Manual Release Guide (deprecated)
Audience: Release Managers
โ ๏ธ Warning
This guide is deprecated. While it remains functional and comprehensive, we recommend using the Semi-Automated Release Guide for new releases when available. This manual process is maintained for reference and fallback scenarios.This guide walks you through the process of creating a release of the Apache Polaris podling.
Instructions how to verify a release candidate are available here.
Setup๐
To create a release candidate, you will need:
- your Apache credentials (for repository.apache.org and dist.apache.org repositories)
- a GPG key for signing artifacts, published in KEYS file
Publish your GPG key๐
If you haven’t published your GPG key yet, you must publish it before starting the release process:
svn checkout https://dist.apache.org/repos/dist/release/polaris polaris-dist-release
cd polaris-dist-release
echo "" >> KEYS # append a new line
gpg --list-sigs <YOUR KEY ID HERE> >> KEYS # append signatures
gpg --armor --export <YOUR KEY ID HERE> >> KEYS # append public key block
svn commit -m "add key for <YOUR NAME HERE>"
To send the key to the Ubuntu key-server, Apache Nexus needs it to validate published artifacts:
gpg --keyserver hkps://keyserver.ubuntu.com --send-keys <YOUR KEY ID HERE>
Dist repository๐
The Apache dist repository (dist.apache.org) is used to populate download.apache.org and archives.apache.org. There are two spaces on dist:
devis where you stage the source distribution and other user convenient artifacts (distributions, helm charts, …)releaseis where the artifacts will be copied when the release vote passed
Apache dist is a svn repository, you need your Apache credentials to commit there.
Maven repository๐
Apache uses Nexus as Maven repository (repository.apache.org) where releases are staged (during vote) and copied to Maven Central when the release vote passed.
You have to use Apache credentials on Nexus, configured in ~/.gradle/gradle.properties file using mavenUser and mavenPassword:
apacheUsername=yourApacheId
apachePassword=yourPassword
Note: an alternative is to use ORG_GRADLE_PROJECT_apacheUsername and ORG_GRADLE_PROJECT_apachePassword environment variables:
export ORG_GRADLE_PROJECT_apacheUsername=yourApacheId
export ORG_GRADLE_PROJECT_apachePassword=bar
PGP signing๐
During release process, the artifacts will be signed with your key, using gpg-agent.
To configure gradle to sign the artifacts, you can add the following settings in your ~/.gradle/gradle.properties file:
signing.gnupg.keyName=Your Key Name
To use gpg instead of gpg2, also set signing.gnupg.executable=gpg.
For more information, see the Gradle signing documentation.
Helm chart signing๐
Helm chart artifacts are signed with your key, using the helm gpg plugin. Ensure the plugin is installed locally.
GitHub Repository๐
The release should be executed against https://github.com/apache/polaris.git repository (not a fork).
Set it as remote with name apache for release if it’s not already set up.
Creating a release candidate๐
Initiate a discussion about the release with the community๐
This step can be useful to gather ongoing patches that the community thinks should be in the upcoming release.
The communication can be started via a [DISCUSS] mail on the dev@polaris.apache.org mailing list and the desired tickets can be added to the github milestone of the next release.
Note, creating a milestone in github requires a committer. However, a non-committer can assign tasks to a milestone if added to the list of collaborators in .asf.yaml.
Create release branch๐
If it’s the first RC for the release, you have to create a release branch:
git branch release/x.y.z
git push apache release/x.y.z
Go in the branch, and set the target release version:
git checkout release/x.y.z
echo "x.y.z" > version.txt
and update the version in the Helm Chart in:
helm/polaris/Chart.yaml- update
versionandappVersionfields - update the
Documentationlink in theartifacthub.io/linksannotation to point tohttps://polaris.apache.org/releases/x.y.z/
- update
helm/polaris/README.mdhelm/polaris/values.yaml- update the
image.tagfield from"latest"to"x.y.z"
- update the
and update the documentation URLs in helm/polaris/values.yaml and helm/polaris/values.schema.json to point to the released documentation.
Replace /in-dev/unreleased/ with /releases/x.y.z/ in all documentation URLs, for example:
sed -i~ 's|/in-dev/unreleased/|/releases/x.y.z/|g' helm/polaris/values.yaml helm/polaris/values.schema.json
and commit/push the version bump:
git commit -m "Bump version to x.y.z" version.txt helm/polaris/Chart.yaml helm/polaris/README.md helm/polaris/values.yaml helm/polaris/values.schema.json
Update CHANGELOG.md:
./gradlew patchChangelog
git commit CHANGELOG.md -m "Update CHANGELOG for x.y.z release"
git push
Note: You should submit a PR to propagate (automated) CHANGELOG updates from the release
branch to main.
If more changes are cherry-picked for the next RC, and those change introduce CHANGELOG entries, follow this update process:
- Manually add an
-rcNsuffix to the previously generated versioned CHANGELOG section. - Rerun the
patchChangelogcommand - Manually remove RC sections from the CHANGELOG
- Submit a PR to propagate CHANGELOG updates from the release branch to
main.
Note: the CHANGELOG patch commit should probably be the last commit on the release branch when
an RC is cut. If more changes are cherry-picked for the next RC, it is best to drop the
CHANGELOG patch commit, apply cherry-picks, and re-run patchChangelog.
Note: You should also submit a PR on main branch to bump the version in the version.txt file.
Create release tag๐
On the release branch, you create a tag for the RC:
git tag apache-polaris-x.y.z-rci
git push apache apache-polaris-x.y.z-rci
Switch to the tag:
git checkout apache-polaris-x.y.z.rci
Verify the build pass๐
This is an optional step, but good to do. The purpose here is to verify the build works fine:
./gradlew clean build
It’s also welcome to verify the regression tests (see regtests/README.md for details).
Build and stage the distributions๐
You can now build the source distribution:
./gradlew assemble sourceTarball -Prelease -PuseGpgAgent
The source distribution archives are available in build/distribution folder.
The binary distributions (for convenience) are available in:
runtime/distribution/build/distributions
Now, we can stage the artifacts to dist dev repository:
svn checkout https://dist.apache.org/repos/dist/dev/polaris polaris-dist-dev
cd polaris-dist-dev
mkdir x.y.z
cp /path/to/polaris/github/clone/repo/build/distribution/* x.y.z
cp /path/to/polaris/github/clone/repo/runtime/distribution/build/distributions/* x.y.z
svn add x.y.z
Stage Helm Chart package๐
You can now create a Helm package with the following command in the Polaris source folder:
cd helm
helm package polaris
helm gpg sign polaris-x.y.z.tgz
Create the signature and checksum for the Helm package tgz and prov files:
shasum -a 512 polaris-x.y.z.tgz > polaris-x.y.z.tgz.sha512
gpg --armor --output polaris-x.y.z.tgz.asc --detach-sig polaris-x.y.z.tgz
shasum -a 512 polaris-x.y.z.tgz.prov > polaris-x.y.z.tgz.prov.sha512
gpg --armor --output polaris-x.y.z.tgz.prov.asc --detach-sig polaris-x.y.z.tgz.prov
Copy and Add the Helm package files to dist folder:
cd ../polaris-dist-dev
mkdir helm-chart/x.y.z
cp ../helm/*.tgz* helm-chart/x.y.z
svn add helm-chart/x.y.z
You can now update the Helm index and copy the Artifact Hub metadata:
cd helm-chart
helm repo index .
svn add index.yaml
cp /path/to/polaris/github/clone/repo/helm/polaris/artifacthub-repo.yml .
svn add artifacthub-repo.yml
Note: artifacthub-repo.yml only needs to be added with svn add on the first release. On subsequent releases, it will already be versioned and the cp command will update it.
Dist repository is now “complete” and we can push/commit:
svn commit -m "Stage Apache Polaris x.y.z RCx"
Build and stage Maven artifacts๐
You can now build and publish the Maven artifacts on a Nexus staging repository:
export GITHUB_TOKEN = <YOUR_GITHUB_TOKEN>
Then run:
./gradlew publishToApache -Prelease -PuseGpgAgent -Dorg.gradle.parallel=false
Next, you have to close the staging repository:
- Go to Nexus and log in
- In the left menu, click on “Staging Repositories”
- Select the Polaris repository
- At the top, select “Close” and follow the instructions
- In the comment field, use “Apache Polaris x.y.z RCi”
Start the vote thread๐
The last step for a release candidate is to create a VOTE thread on the dev mailing list.
A generated email template is available in the build/distribution folder.
Example title subject:
[VOTE] Release Apache Polaris x.y.z (rci)
Example content:
Hi everyone,
I propose that we release the following RC as the official
Apache Polaris x.y.z release.
* This corresponds to the tag: apache-polaris-x.y.z-rci
* https://github.com/apache/polaris/commits/apache-polaris-x.y.z-rci
* https://github.com/apache/polaris/tree/<SHA1>
The release tarball, signature, and checksums are here:
* https://dist.apache.org/repos/dist/dev/polaris/x.y.z
Helm charts are available on:
* https://dist.apache.org/repos/dist/dev/polaris/helm-chart
NB: you have to build the Docker images locally in order to test Helm charts.
You can find the KEYS file here:
* https://downloads.apache.org/polaris/KEYS
Convenience binary artifacts are staged on Nexus. The Maven
repositories URLs are:
* https://repository.apache.org/content/repositories/orgapachepolaris-<ID>/
Please download, verify, and test.
Please vote in the next 72 hours.
[ ] +1 Release this as Apache polaris x.y.z
[ ] +0
[ ] -1 Do not release this because...
Only PMC members have binding votes, but other community
members are encouraged to cast non-binding votes.
This vote will pass if there are 3 binding +1 votes and
more binding +1 votes than -1 votes.
When a candidate is passed or rejected, reply with the vote result:
[RESULT][VOTE] Release Apache Polaris x.y.z (rci)
Thanks everyone who participated in the vote for Release Apache Polaris x.y.z (rci).
The vote result is:
+1: a (binding), b (non-binding)
+0: c (binding), d (non-binding)
-1: e (binding), f (non-binding)
We will proceed with publishing the approved artifacts and sending out the announcement soon.
Finishing the release๐
After the release votes passed, you need to release the last candidate’s artifacts.
Publishing the release๐
First, copy the distribution from the dist dev space to the dist release space:
svn mv https://dist.apache.org/repos/dist/dev/polaris/x.y.z https://dist.apache.org/repos/dist/release/polaris
svn mv https://dist.apache.org/repos/dist/dev/polaris/helm-chart/x.y.z https://dist.apache.org/repos/dist/release/polaris/helm-chart
Then, transfer the Helm index and Artifact Hub metadata from dist dev to dist release:
svn mv https://dist.apache.org/repos/dist/dev/polaris/helm-chart/index.yaml \
https://dist.apache.org/repos/dist/dev/polaris/helm-chart/artifacthub-repo.yml \
https://dist.apache.org/repos/dist/release/polaris/helm-chart/ \
-m "Transfer Helm index and artifacthub-repo.yml for x.y.z release"
Next, add a release tag to the git repository based on the candidate tag:
git tag -a apache-polaris-x.y.z apache-polaris-x.y.z-rci
Update GitHub with the release: https://github.com/apache/polaris/releases/tag/apache-polaris-x.y.z
Then release the candidate repository on Nexus.
Publishing the Docker images๐
You can now publish Docker images on DockerHub:
./gradlew :polaris-server:assemble :polaris-server:quarkusAppPartsBuild --rerun -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.docker.buildx.platform="linux/amd64,linux/arm64" -Dquarkus.container-image.tag=x.y.z
./gradlew :polaris-admin:assemble :polaris-admin:quarkusAppPartsBuild --rerun -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.docker.buildx.platform="linux/amd64,linux/arm64" -Dquarkus.container-image.tag=x.y.z
Upload the documentation๐
Now that the release artifacts have been published, the next step is to publish the associated documentation on the website.
First, checkout the release tag:
git checkout apache-polaris-[major].[minor].[patch]
Set up a worktree for the versioned docs and create a new branch:
site/bin/checkout-releases.sh
cd site/content/releases
git checkout -b versioned-docs-[major].[minor].[patch]
mkdir [major].[minor].[patch]
Copy the documentation from the release tag:
cp -r ../../content/in-dev/unreleased/* [major].[minor].[patch]/
Edit the file [major].[minor].[patch]/_index.md and perform the following modifications:
- Change the title from
In Developmentto[major].[minor].[patch]. - Remove the
alert warningblock that warns that the documentation is for the main branch.
Commit and push to your fork:
git add .
git commit -m "Add documentation for [major].[minor].[patch]"
git push <your-fork> versioned-docs-[major].[minor].[patch]
Clean up the worktree:
cd ../../..
site/bin/remove-releases.sh
Then open a PR against the versioned-docs branch with your changes.
Update the download links on the website๐
The final step is to update the “Download” page on Polaris website with links to the newly released artifacts. Checkout the main branch locally.
git checkout -b main-site-download-links-[major].[minor].[patch] main
Edit the file site/content/downloads/_index.md and add a new section for the release. The section should contain the following information:
- A table with links to each of the artifacts, its PGP signature and associated checksum. All links in this section MUST point to
https://dlcdn.apache.org/orhttps://downloads.apache.org/. - The release date.
- A paragraph with the release notes.
Then update the section of the previous release so that it references https://archive.apache.org instead of https://dlcdn.apache.org/ and https://downloads.apache.org/.
Finally, edit the file site/hugo.yaml. Add a new bullet point under active_releases for the new release. Also add a menu item under menu.main, after the In Development menu item, with have the following format:
- name: "[major].[minor].[patch]"
url: "/releases/[major].[minor].[patch]/"
parent: "doc"
weight: [previous release weight - 1]
Then open a PR against the main branch with your changes.
Announcing the release๐
To announce the release, wait until Maven Central has mirrored the artifacts.
Send a mail to dev@polaris.apache.org and announce@apache.org:
[ANNOUNCE] Apache Polaris x.y.z
The Apache Polaris team is pleased to announce Apache Polaris x.y.z.
<Add Quick Description of the Release>
This release can be downloaded https://www.apache.org/dyn/closer.cgi/polaris/apache-polaris-x.y.z.
Artifacts are available on Maven Central.
Apache Polaris is an open-source, fully-featured catalog for Apache Icebergโข. It implements Iceberg's REST API, enabling seamless multi-engine interoperability across a wide range of platforms, including Apache Dorisโข, Apache Flinkยฎ, Apache Sparkโข, Dremioยฎ, StarRocks, and Trino.
Enjoy !
How to verify a release๐
Validating distributions๐
Release vote email includes links to:
- Distribution archives (source, admin, server) on dist.apache.org
- Signature files (.asc)
- Checksum files (.sha512)
- KEYS file
After downloading the distributions archives, signatures, checksums, and KEYS file, here are the instructions on how to verify signatures, checksums.
Verifying signatures๐
First, import the keys in your local keyring:
curl https://downloads.apache.org/polaris/KEYS -o KEYS
gpg --import KEYS
Next, verify all .asc files:
gpg --verify apache-polaris-[...].asc
Verifying checksums๐
shasum -a 512 --check apache-polaris-[...].sha512
Verifying build and test๐
In the source distribution:
./gradlew build
Voting๐
Votes are cast by replying on the vote email on the dev mailing list, with either +1, 0, -1.
In addition to your vote, it’s customary to specify if your vote is binding or non-binding. Only members of the PMC have formally binding votes. If you’re unsure, you can specify that your vote is non-binding. You can find more details on https://www.apache.org/foundation/voting.html.