This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new 4c03e90286 chore: update release instructions (#12188)
4c03e90286 is described below
commit 4c03e90286b2b176dd37cf08187a61c09b09acb7
Author: Jeffrey Vo <[email protected]>
AuthorDate: Fri Nov 13 00:45:39 2026 +0000
chore: update release instructions (#12188)
See each comment for explanation
---
.rat-excludes | 3 ++
dev/release/README.md | 94 +++++++++++++++++++++++++++++++++++++++++----------
licenserc.toml | 2 ++
3 files changed, 81 insertions(+), 18 deletions(-)
diff --git a/.rat-excludes b/.rat-excludes
new file mode 100644
index 0000000000..11d038ea03
--- /dev/null
+++ b/.rat-excludes
@@ -0,0 +1,3 @@
+# TODO: fill this in
+# example: https://github.com/apache/superset/blob/master/.rat-excludes
+# documentation: https://releases.apache.org/docs/license-checks
diff --git a/dev/release/README.md b/dev/release/README.md
index 82cbe492fc..8b029909cc 100644
--- a/dev/release/README.md
+++ b/dev/release/README.md
@@ -10,6 +10,9 @@
This file documents the release process for the "Rust Arrow Crates": `arrow`,
`arrow-flight`, `parquet`, and `parquet-derive`.
+For more information on the Apache release process, see [release creation
process](https://infra.apache.org/release-publishing.html)
+and [signing releases](https://infra.apache.org/release-signing.html).
+
### The Rust Arrow Crates
The Rust Arrow Crates are interconnected (e.g. `parquet` has an optional
dependency on `arrow`) so we increment and release all of them together.
@@ -22,6 +25,26 @@ Otherwise the new minor version incremented (e.g. `9.0.2` to
`9.1.0`).
# Release Mechanics
+## Prerequisites
+
+The following tools need to be installed locally for these instructions:
+
+- [Subversion](https://subversion.apache.org/)
+- [`git-cliff`](https://git-cliff.org/docs/installation/)
+- [`hawkeye`](https://github.com/fast/hawkeye)
+- If on MacOS, [`gnu-tar`](https://formulae.brew.sh/formula/gnu-tar)
+
+Make sure `gpg` is installed and you have setup your key. See reference
documentation
+on this process:
+
+- https://infra.apache.org/release-signing.html
+- https://infra.apache.org/openpgp.html
+- https://spark.apache.org/release-process.html
+
+Also ensure you have [an account on
crates.io](https://doc.rust-lang.org/cargo/reference/publishing.html)
+and are owner of all the crates; see owners of the [arrow
crate](https://crates.io/crates/arrow)
+who can invite you to be an owner.
+
## Process Overview
As part of the Apache governance model, official releases consist of
@@ -34,8 +57,6 @@ We create a `CHANGELOG.md` so our users know what has been
changed between relea
## Prepare CHANGELOG and version
-- Ensure [`git-cliff`](https://git-cliff.org/docs/installation/) is installed
-
Now prepare a PR to update `CHANGELOG.md` and versions on `main` to reflect
the planned release.
First copy the contents of `CHANGELOG.md` into `CHANGELOG-old.md`.
@@ -50,25 +71,28 @@ git checkout -b <RELEASE_BRANCH>
# Update versions.
sed -i '' -e 's/14.0.0/39.0.0/g' `find . -name 'Cargo.toml' -or -name '*.md' |
grep -v CHANGELOG.md | grep -v CHANGELOG-old.md | grep -v README.md`
cargo check # update Cargo.lock with new versions
-git commit -a -m 'Update version'
+
+# OPTIONAL: for non-major version updates, sanity check there are no semver
violations
+# https://github.com/obi1kenobi/cargo-semver-checks
+cargo semver-checks --baseline-version <PREVIOUS_VERSION>
# Assuming remote name is apache; if named differently ensure this is changed,
# since we need the tags from the GitHub repository
git fetch apache --tags
-# ensure your github token is available
+# Used by git-cliff to retrieve PR information from GitHub API
export GITHUB_TOKEN=<TOKEN>
# e.g. TAG=60.0.0; this is just used to format the CHANGELOG, so tag doesn't
# need to exist yet, and don't put an RC tag either
-# (we are excluding our above version bump commit from the changelog)
-git-cliff --tag <TAG> --unreleased --output CHANGELOG.md --skip-commit $(git
rev-parse HEAD)
+# Replace 59.3.0 with previous tag (on the same branch)
+git-cliff '59.3.0..' --tag <TAG> --output CHANGELOG.md
# review change log, adjust labels on PR's as required
# can rerun above git-cliff command if needed
-# commit the changelog
-git commit -a -m 'Create changelog'
+# commit the version bump & changelog
+git commit -a -m 'Bump version & create changelog'
git push
```
@@ -99,11 +123,6 @@ create a release candidate using the following steps. Note
you need to
be a committer to run these scripts as they upload to the apache `svn`
distribution servers.
-Install HawkEye 7.0.0 (`cargo install hawkeye --version 7.0.0 --locked`)
-before running `create-tarball.sh`. The script checks license headers in the
-source tarball before signing it, using the file rules and exclusions in
-`licenserc.toml`. It does not audit the licenses of every file in the archive.
-
### Pick a Release Candidate (RC) number
Pick numbers in sequential order, with `1` for `rc1`, `2` for `rc2`, etc.
@@ -197,11 +216,6 @@ standards.
An Arrow committer can publish this crate after an official project release has
been made to crates.io using the following instructions.
-Follow [these
-instructions](https://doc.rust-lang.org/cargo/reference/publishing.html) to
-create an account and login to crates.io before asking to be added as an owner
-of the [arrow crate](https://crates.io/crates/arrow).
-
Download and unpack the official release tarball
Verify that the Cargo.toml in the tarball contains the correct version
@@ -237,3 +251,47 @@ Rust Arrow Crates:
(cd parquet_derive && cargo publish)
(cd arrow-integration-test && cargo publish)
```
+
+## Fish version
+
+Some commands which differ in fish shell:
+
+```fish
+set -gx GITHUB_TOKEN "token"
+sed -i '' -e 's/59.3.0/59.3.1/g' (find . -name 'Cargo.toml' -or -name '*.md' |
grep -v CHANGELOG.md | grep -v CHANGELOG-old.md | grep -v README.md)
+
+# manually do arrow-buffer for sanity check
+cd arrow-buffer
+cargo publish
+cd ..
+for crate in \
+ arrow-schema \
+ arrow-data \
+ arrow-array \
+ arrow-cmp \
+ arrow-select \
+ arrow-ord \
+ arrow-cast \
+ arrow-ipc \
+ arrow-csv \
+ arrow-json \
+ arrow-arith \
+ arrow-string \
+ arrow-row \
+ arrow-pyarrow \
+ arrow \
+ arrow-avro \
+ arrow-flight \
+ parquet-variant \
+ parquet-variant-json \
+ parquet-variant-compute \
+ parquet-geospatial \
+ parquet \
+ parquet_derive \
+ arrow-integration-test
+ fish -c "cd $crate; and cargo publish"; or break
+end
+
+# Unset when done
+set -e GITHUB_TOKEN
+```
diff --git a/licenserc.toml b/licenserc.toml
index d3da9d45eb..643a296c8a 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -13,6 +13,8 @@ SPDX-FileContributor: Licensed to the Apache Software
Foundation (ASF) under one
[files]
excludes = [
+ # Exclusion file for ATR which runs its own header check
+ ".rat-excludes",
# License and attribution texts do not need source-file headers.
"**/LICENSE*",
"**/NOTICE*",