Release Management Guide#
This page provides detailed information on the steps followed to perform a release. It can be used both as a guide to learn the Apache Arrow release process and as a comprehensive checklist for the Release Manager when performing a release.
Principles#
The Apache Arrow Release follows the guidelines defined at the Apache Software Foundation Release Policy.
Preparing for the release#
Before creating a source release, the Release Manager must ensure that any resolved JIRAs have the appropriate Fix Version set so that the changelog is generated properly.
Before creating a Release Candidate#
Ensure local tags are removed, gpg-agent is set and JIRA tickets are correctly assigned.
# Delete the local tag for RC1 or later
git tag -d apache-arrow-<version>
# Setup gpg agent for signing artifacts
source dev/release/setup-gpg-agent.sh
# Curate the release
# The end of the generated report shows the JIRA tickets with wrong version number assigned.
archery release curate <version>
Ensure a major version milestone for a follow up release is created on GitHub. This will automatically be used by our merge script as the new version for issues closed when the maintenance branch is created.
Patch Releases#
We usually create patch releases once a major breaking issue has been identified. Issues that are identified as major breaking issues can be security fixes, broken packages for specific builds and others.
Any developer can ask for a patch release to be generated sending an email to the Arrow development mailing-list with the reason of why a new release is necessary. If there is consensus and there is a Release Manager willing to take the effort to create the release a patch release can be created.
Committers can tag issues that should be included on the next patch release using the
backport-candidate
label. Is the responsability of the author or the committer to add the
label to the issue to help the Release Manager identify the issues that should be backported.
If a specific issue is identified as the reason to create a patch release the Release Manager should validate that, at least, this issue is correctly tagged and included in the patch release.
Be sure to go through on the following checklist:
Create milestone
Create maintenance branch
Include issue that was requested as requiring new patch release
Add new milestone to issues with
backport-candidate
labelcherry-pick issues into maintenance branch
Creating a Release Candidate#
These are the different steps that are required to create a Release Candidate.
For the initial Release Candidate on a major release, we will create a maintenance branch from main.
Follow up Release Candidates will update the maintenance branch by cherry-picking specific commits.
For the initial Release Candidate for a minor or a patch release we will create a maintenance branch from the previous corresponding release. For example, for a 15.0.1 patch we will create a maint-15.0.1 branch from maint-15.0.0 and for a maint-15.0.2 we will create it from maint-15.0.1. Once the maintenance branch is created we will update the created maintenance branch by cherry-picking specific commits.
We have implemented a Feature Freeze policy between Release Candidates. This means that, in general, we should only add bug fixes between Release Candidates. In rare cases, critical features can be added between Release Candidates, if there is community consensus.
Create or update the corresponding maintenance branch#
# Execute the following from an up to date main branch.
# This will create a branch locally called maint-X.Y.Z.
# X.Y.Z corresponds with the Major, Minor and Patch version number
# of the release respectively. As an example 9.0.0
archery release --jira-cache /tmp/jiracache cherry-pick X.Y.Z --execute
# Push the maintenance branch to the remote repository
git push -u apache maint-X.Y.Z
# First run in dry-mode to see which commits will be cherry-picked.
# If there are commits that we don't want to get applied ensure the version on
# JIRA is set to the following release.
archery release --jira-cache /tmp/jiracache cherry-pick X.Y.Z --continue
# Update the maintenance branch with the previous commits
archery release --jira-cache /tmp/jiracache cherry-pick X.Y.Z --continue --execute
# Push the updated maintenance branch to the remote repository
git push -u apache maint-X.Y.Z
Create the Release Candidate branch from the updated maintenance branch#
# Start from the updated maintenance branch.
git checkout maint-X.Y.Z
# The following script will create a branch for the Release Candidate,
# place the necessary commits updating the version number and then create a git tag
# on OSX use gnu-sed with homebrew: brew install gnu-sed (and export to $PATH)
#
# <rc-number> starts at 0 and increments every time the Release Candidate is burned
# so for the first RC this would be: dev/release/01-prepare.sh 4.0.0 5.0.0 0
dev/release/01-prepare.sh <version> <next-version> <rc-number>
# Push the release candidate tag
git push -u apache apache-arrow-<version>rc<rc-number>
# Push the release candidate branch in order to trigger verification jobs later
git push -u apache release-<version>-rc<rc-number>
Build source and binaries and submit them#
# Build the source release tarball and create Pull Request with verification tasks
#
# NOTE: You need to have GitHub CLI installed to run this script.
dev/release/02-source.sh <version> <rc-number>
# Submit binary tasks using crossbow, the command will output the crossbow build id
dev/release/03-binary-submit.sh <version> <rc-number>
# Wait for the crossbow jobs to finish
archery crossbow status <crossbow-build-id>
# Download the produced binaries
# This will download packages to a directory called packages/release-<version>-rc<rc-number>
dev/release/04-binary-download.sh <version> <rc-number>
# Sign and upload the binaries
#
# On macOS the only way I could get this to work was running "echo "UPDATESTARTUPTTY" | gpg-connect-agent" before running this comment
# otherwise I got errors referencing "ioctl" errors.
dev/release/05-binary-upload.sh <version> <rc-number>
# Sign and upload the Java artifacts
#
# Note that you need to press the "Close" button manually by Web interface
# after you complete the script:
# https://repository.apache.org/#stagingRepositories
dev/release/06-java-upload.sh <version> <rc-number>
# Sign and upload MATLAB artifacts to the GitHub Releases area.
#
# Note that you need to have GitHub CLI installed to run this script.
dev/release/07-matlab-upload.sh <version> <rc-number>
# Start verifications for binaries and wheels
dev/release/08-binary-verify.sh <version> <rc-number>
Verify the Release#
# Once the automatic verification has passed start the vote thread
# on dev@arrow.apache.org. To regenerate the email template use
SOURCE_DEFAULT=0 SOURCE_VOTE=1 dev/release/02-source.sh <version> <rc-number>
See Release Verification Process for details.
Voting and approval#
Start the vote thread on dev@arrow.apache.org and supply instructions for verifying the integrity of the release. Approval requires a net of 3 +1 votes from PMC members. A release cannot be vetoed.
Post-release tasks#
After the release vote, we must undertake many tasks to update source artifacts, binary builds, and the Arrow website.
Be sure to go through on the following checklist:
Update the released milestone Date and set to “Closed” on GitHub
Make the CPP PARQUET related version as “RELEASED” on JIRA
Start the new version on JIRA for the related CPP PARQUET version
Merge changes on release branch to maintenance branch for patch releases
Add the new release to the Apache Reporter System
Push release tag
Upload source
Upload binaries
Update website
Update GitHub Release Notes
Update Homebrew packages
Update MSYS2 package
Upload RubyGems
Upload JavaScript packages
Upload C# packages
Update conda recipes
Upload wheels/sdist to pypi
Publish Maven artifacts
Update R packages
Update vcpkg port
Update Conan recipe
Bump versions
Update tags for Go modules
Update docs
Update version in Apache Arrow Cookbook
Announce the new release
Publish release blog posts
Announce the release on Twitter
Remove old artifacts