Skip to content

Commit

Permalink
ARROW-2960: [Packaging] Fix verify-release-candidate for binary packa…
Browse files Browse the repository at this point in the history
…ges and fix release cutting script for lib64 cmake issue

Author: Phillip Cloud <[email protected]>

Closes apache#2356 from cpcloud/ARROW-2960 and squashes the following commits:

5f92c9f6 <Phillip Cloud> ARROW-2960:  Fix verify-release-candidate for binary packages and fix release cutting script for lib64 cmake issue
  • Loading branch information
cpcloud committed Aug 1, 2018
1 parent 36ec3c8 commit 301d221
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions dev/release/02-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ cpp_install_dir=${PWD}/${extract_dir}/cpp/install
cd ${extract_dir}/cpp/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=${cpp_install_dir} \
-DCMAKE_INSTALL_LIBDIR=${cpp_install_dir}/lib \
-DARROW_BUILD_TESTS=no
make -j8
make install
Expand Down
27 changes: 21 additions & 6 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,19 @@ case $# in
esac

set -ex
set -o pipefail

HERE=$(cd `dirname "${BASH_SOURCE[0]:-$0}"` && pwd)

ARROW_DIST_URL='https://dist.apache.org/repos/dist/dev/arrow'

download_dist_file() {
curl -f -O $ARROW_DIST_URL/$1
curl \
--silent \
--show-error \
--fail \
--location \
--remote-name $ARROW_DIST_URL/$1
}

download_rc_file() {
Expand All @@ -71,18 +77,27 @@ fetch_archive() {

verify_binary_artifacts() {
# download the binaries folder for the current RC
download_rc_file binaries
rcname=apache-arrow-${VERSION}-rc${RC_NUMBER}
wget -P "$rcname" \
--quiet \
--no-host-directories \
--cut-dirs=5 \
--show-progress \
--no-parent \
--reject 'index.html*' \
--recursive "$ARROW_DIST_URL/$rcname/binaries/"

# verify the signature and the checksums of each artifact
find binaries -name '*.asc' | while read sigfile; do
find $rcname/binaries -name '*.asc' | while read sigfile; do
artifact=${sigfile/.asc/}
gpg --verify $sigfile $artifact
gpg --verify $sigfile $artifact || exit 1

# go into the directory because the checksum files contain only the
# basename of the artifact
pushd $(dirname $artifact)
shasum -a 1 -c $artifact.sha1
shasum -a 256 -c $artifact.sha256
base_artifact=$(basename $artifact)
shasum -a 1 -c $base_artifact.sha1 || exit 1
shasum -a 256 -c $base_artifact.sha256 || exit 1
popd
done
}
Expand Down

0 comments on commit 301d221

Please sign in to comment.