Apache DataFusion SQL Query Engine
update release automation scripts (#857)
QP Hou83ce64a2c58c
diff --git a/dev/release/create-tarball.sh b/dev/release/create-tarball.shindex 8d6d942d0b..ffcb430b5c 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"exitfi-tag=$1+version=$1rc=$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.gztarball=${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}"fiecho "Draft email for [email protected] mailing list"@@ -74,11 +73,11 @@ echo ""echo "---------------------------------------------------------"cat <<MAIL-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/distsvn 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.shindex 5bbf82d018..43e440a712 100755--- a/dev/release/verify-release-candidate.sh+++ b/dev/release/verify-release-candidate.sh@@ -125,6 +125,10 @@ test_source_distribution() {cargo buildcargo test --all++ pushd datafusion+ cargo publish --dry-run+ popd}TEST_SUCCESS=no