This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 088c1975e5 [#9400]improvement(release): Add copying and signing for
Gravitino Lance REST server binary distribution (#9401)
088c1975e5 is described below
commit 088c1975e5b03607d297b90bdd73b43bc74d6af2
Author: Mini Yu <[email protected]>
AuthorDate: Tue Dec 9 14:27:57 2025 +0800
[#9400]improvement(release): Add copying and signing for Gravitino Lance
REST server binary distribution (#9401)
### What changes were proposed in this pull request?
This pull request adds support for packaging and signing the Gravitino
Lance REST server binary distribution in the release build script. This
ensures that the Lance REST server binary is properly copied, signed,
and its checksum is generated alongside other distributions.
Distribution packaging and signing:
* Updated `dev/release/release-build.sh` to copy the
`gravitino-lance-rest-server-$GRAVITINO_VERSION-bin.tar.gz` file, sign
it with GPG, and generate its SHA-512 checksum, similar to the existing
process for other distributions.
### Why are the changes needed?
We are going to release the Lance REST service in 1.1.0 release
Fix: #9400
### Does this PR introduce _any_ user-facing change?
N/A.
### How was this patch tested?
Test locally.
---
dev/release/release-build.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dev/release/release-build.sh b/dev/release/release-build.sh
index 72e1e6e84d..5bd14b90eb 100755
--- a/dev/release/release-build.sh
+++ b/dev/release/release-build.sh
@@ -247,6 +247,13 @@ if [[ "$1" == "package" ]]; then
--detach-sig gravitino-iceberg-rest-server-$GRAVITINO_VERSION-bin.tar.gz
shasum -a 512 gravitino-iceberg-rest-server-$GRAVITINO_VERSION-bin.tar.gz
> gravitino-iceberg-rest-server-$GRAVITINO_VERSION-bin.tar.gz.sha512
+ echo "Copying and signing Gravitino Lance REST server binary distribution"
+ cp
gravitino-$GRAVITINO_VERSION-bin/distribution/gravitino-lance-rest-server-$GRAVITINO_VERSION-bin.tar.gz
.
+ echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \
+ --output gravitino-lance-rest-server-$GRAVITINO_VERSION-bin.tar.gz.asc \
+ --detach-sig gravitino-lance-rest-server-$GRAVITINO_VERSION-bin.tar.gz
+ shasum -a 512 gravitino-lance-rest-server-$GRAVITINO_VERSION-bin.tar.gz >
gravitino-lance-rest-server-$GRAVITINO_VERSION-bin.tar.gz.sha512
+
echo "Copying and signing Gravitino Trino connector binary distribution"
cp
gravitino-$GRAVITINO_VERSION-bin/distribution/gravitino-trino-connector-$GRAVITINO_VERSION.tar.gz
.
echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \
@@ -270,7 +277,7 @@ if [[ "$1" == "package" ]]; then
error 'The environment variable PYPI_API_TOKEN is not set. Exiting.'
fi
- echo "Uploading Gravitino Python package $RC_RC_PYGRAVITINO_VERSION to
PyPi"
+ echo "Uploading Gravitino Python package $RC_PYGRAVITINO_VERSION to PyPi"
twine upload -u __token__ -p $PYPI_API_TOKEN \
--repository-url https://upload.pypi.org/legacy/ \
"apache_gravitino-$RC_PYGRAVITINO_VERSION.tar.gz"