You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ho...@apache.org on 2021/08/12 06:30:47 UTC

[arrow-datafusion] branch master updated: update release automation scripts (#857)

This is an automated email from the ASF dual-hosted git repository.

houqp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/master by this push:
     new 83ce64a  update release automation scripts (#857)
83ce64a is described below

commit 83ce64a2c58c2defb25a797011e57b8eb2e14bdd
Author: QP Hou <qp...@scribd.com>
AuthorDate: Wed Aug 11 23:30:41 2021 -0700

    update release automation scripts (#857)
    
    * depend on rc tag to extract release commit
    
    * check for cargo publish in verify release script
---
 dev/release/create-tarball.sh           | 21 ++++++++++-----------
 dev/release/verify-release-candidate.sh |  4 ++++
 2 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/dev/release/create-tarball.sh b/dev/release/create-tarball.sh
index 8d6d942..ffcb430 100755
--- a/dev/release/create-tarball.sh
+++ b/dev/release/create-tarball.sh
@@ -46,27 +46,26 @@ SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 SOURCE_TOP_DIR="$(cd "${SOURCE_DIR}/../../" && pwd)"
 
 if [ "$#" -ne 2 ]; then
-    echo "Usage: $0 <tag> <rc>"
+    echo "Usage: $0 <version> <rc>"
     echo "ex. $0 4.1.0 2"
   exit
 fi
 
-tag=$1
+version=$1
 rc=$2
+tag="${version}-rc${rc}"
 
+echo "Attempting to create ${tarball} from tag ${tag}"
 release_hash=$(cd "${SOURCE_TOP_DIR}" && git rev-list --max-count=1 ${tag})
 
-release=apache-arrow-datafusion-${tag}
+release=apache-arrow-datafusion-${version}
 distdir=${SOURCE_TOP_DIR}/dev/dist/${release}-rc${rc}
 tarname=${release}.tar.gz
 tarball=${distdir}/${tarname}
 url="https://dist.apache.org/repos/dist/dev/arrow/${release}-rc${rc}"
 
-echo "Attempting to create ${tarball} from tag ${tag}"
-
-
 if [ -z "$release_hash" ]; then
-    echo "Cannot continue: unknown git tag: $tag"
+    echo "Cannot continue: unknown git tag: ${tag}"
 fi
 
 echo "Draft email for dev@arrow.apache.org mailing list"
@@ -74,11 +73,11 @@ echo ""
 echo "---------------------------------------------------------"
 cat <<MAIL
 To: dev@arrow.apache.org
-Subject: [VOTE][RUST][Datafusion] Release Apache Arrow Datafusion ${tag} RC${rc}
+Subject: [VOTE][RUST][Datafusion] Release Apache Arrow Datafusion ${version} RC${rc}
 Hi,
 
 I would like to propose a release of Apache Arrow Datafusion Implementation,
-version ${tag}.
+version ${version}.
 
 This release candidate is based on commit: ${release_hash} [1]
 The proposed release tarball and signatures are hosted at [2].
@@ -99,7 +98,7 @@ echo "---------------------------------------------------------"
 
 
 # create <tarball> containing the files in git at $release_hash
-# the files in the tarball are prefixed with {tag} (e.g. 4.0.1)
+# the files in the tarball are prefixed with {version} (e.g. 4.0.1)
 mkdir -p ${distdir}
 (cd "${SOURCE_TOP_DIR}" && git archive ${release_hash} --prefix ${release}/ | gzip > ${tarball})
 
@@ -117,5 +116,5 @@ gpg --armor --output ${tarball}.asc --detach-sig ${tarball}
 echo "Uploading to apache dist/dev to ${url}"
 svn co --depth=empty https://dist.apache.org/repos/dist/dev/arrow ${SOURCE_TOP_DIR}/dev/dist
 svn add ${distdir}
-svn ci -m "Apache Arrow Datafusion ${tag} ${rc}" ${distdir}
+svn ci -m "Apache Arrow Datafusion ${version} ${rc}" ${distdir}
 
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index 5bbf82d..43e440a 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -125,6 +125,10 @@ test_source_distribution() {
 
   cargo build
   cargo test --all
+
+  pushd datafusion
+    cargo publish --dry-run
+  popd
 }
 
 TEST_SUCCESS=no