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:

  • dev is where you stage the source distribution and other user convenient artifacts (distributions, helm charts, …)
  • release is 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 version and appVersion fields
    • update the Documentation link in the artifacthub.io/links annotation to point to https://polaris.apache.org/releases/x.y.z/
  • helm/polaris/README.md
  • helm/polaris/values.yaml
    • update the image.tag field from "latest" to "x.y.z"

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 -rcN suffix to the previously generated versioned CHANGELOG section.
  • Rerun the patchChangelog command
  • 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:

  1. Go to Nexus and log in
  2. In the left menu, click on “Staging Repositories”
  3. Select the Polaris repository
  4. At the top, select “Close” and follow the instructions
  5. 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 Development to [major].[minor].[patch].
  • Remove the alert warning block 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.

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/ or https://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.