aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jco...@apache.org
Subject aurora-packaging git commit: Clean up README for packaging repo, update release-candidate script to generate the vote email.
Date Tue, 25 Oct 2016 18:00:15 GMT
Repository: aurora-packaging
Updated Branches:
  refs/heads/master b8edaf2c6 -> 2d5acd41b


Clean up README for packaging repo, update release-candidate script to generate the vote email.

Reviewed at https://reviews.apache.org/r/53102/


Project: http://git-wip-us.apache.org/repos/asf/aurora-packaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora-packaging/commit/2d5acd41
Tree: http://git-wip-us.apache.org/repos/asf/aurora-packaging/tree/2d5acd41
Diff: http://git-wip-us.apache.org/repos/asf/aurora-packaging/diff/2d5acd41

Branch: refs/heads/master
Commit: 2d5acd41bcb2cf076d6d2ad6b309599803acf204
Parents: b8edaf2
Author: Joshua Cohen <jcohen@apache.org>
Authored: Tue Oct 25 12:59:58 2016 -0500
Committer: Joshua Cohen <jcohen@twitter.com>
Committed: Tue Oct 25 12:59:58 2016 -0500

----------------------------------------------------------------------
 README.md                               |  16 +++++--
 build-support/release/release-candidate |  62 ++++++++++++++++++++++++++-
 docs/images/bintray-upload.png          | Bin 145853 -> 0 bytes
 3 files changed, 73 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/2d5acd41/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 440aff2..56d8c0e 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,10 @@ Now run the [Building a binary](#building-a-binary) procedure detailed
above.
 
 #### Hash, sign and upload the binaries
 
-Run the following which will create a tarball for each distribution platform that can be
uploaded to bintray:
+Run the following which will create a tarball for each distribution platform that can be
uploaded to
+bintray:
+
+N.B.: the release-candidate script requires bash 4.x or higher.
 
     ./build-support/release/release-candidate
     Signing artifacts for centos-7...
@@ -53,10 +56,15 @@ Run the following which will create a tarball for each distribution platform
tha
     Created archive for ubuntu-trusty artifacts at /home/jsirois/dev/aurora/jsirois-aurora-packaging/artifacts/aurora-ubuntu-trusty/upload.tar.
     All artifacts prepared for upload to bintray.
 
-In the bintray UI, create a new version in your release-candidate repo, for example '0.12.0'.
 Then, in the version UI you can
-upload the tarballs, ensuring you select 'Explode this archive'.
+In the bintray UI, create a new version in your release-candidate repo, for example '0.12.0'.
 Then,
+in the version UI you can upload the artifacts. Bintray theoretically supports exploding
tarballs on
+upload, but currently this functionality does not work (it fails to detect tarballs as explodable
+artifacts or, if it does, it tries to sign the artifacts, but fails due to a signature already
being
+present, even when signing is disabled at the repo level).
 
-![bintray upload](docs/images/bintray-upload.png)
+This is all to say, it's easier to just un-tar the various upload.tar files and upload their
+contents directly. This can be accomplished by dragging and dropping all files into the upload
UI
+for the version you created.
 
 Finally, 'publish' the results.
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/2d5acd41/build-support/release/release-candidate
----------------------------------------------------------------------
diff --git a/build-support/release/release-candidate b/build-support/release/release-candidate
index c08c885..98df824 100755
--- a/build-support/release/release-candidate
+++ b/build-support/release/release-candidate
@@ -8,6 +8,13 @@ set -o errexit
 set -o nounset
 set -o pipefail
 
+
+RELEASE=$(git rev-parse --abbrev-ref HEAD)
+if [[ "$RELEASE" = "master" ]]; then
+  echo "This script must be run from a branch named for the release, e.g. 0.16.x"
+  exit 1
+fi
+
 ROOT_DIR=$(git rev-parse --show-toplevel)
 cd "${ROOT_DIR}"
 
@@ -70,4 +77,57 @@ for os in $(oses); do
     echo "Skipping artifacts for ${os} (not found built under ${dist_dir})."
   fi
 done
-echo "All artifacts prepared for upload to bintray."
+echo "All artifacts prepared for upload to bintray. The following draft email has been created"
+echo "to send to the dev@aurora.apache.org mailing list"
+echo
+
+# Create the email template for the release candidate to be sent to the mailing lists.
+if [[ $(uname) == Darwin ]]; then
+  vote_end=$(date -v+3d)
+else
+  vote_end=$(date -d+3days)
+fi
+
+MESSAGE=$(cat <<__EOF__
+To: dev@aurora.apache.org
+Subject: [VOTE] Release Apache Aurora $RELEASE packages
+
+All,
+
+I propose that we accept the following artifacts as the official deb and rpm packaging for
+Apache Aurora ${RELEASE}:
+
+https://dl.bintray.com/${USER}/aurora/
+
+The Aurora deb and rpm packaging includes the following:
+
+---
+
+The branch used to create the packaging is:
+https://git1-us-west.apache.org/repos/asf?p=aurora-packaging.git;a=tree;hb=refs/heads/${RELEASE}
+
+The packages are available at:
+https://dl.bintray.com/${USER}/aurora/
+
+The GPG keys used to sign the packages are available at:
+https://dist.apache.org/repos/dist/release/aurora/KEYS
+
+Please download, verify, and test. Detailed test instructions are available here:
+https://git1-us-west.apache.org/repos/asf?p=aurora-packaging.git;a=tree;f=test;hb=refs/heads/${RELEASE}
+
+
+The vote will close on ${vote_end}
+
+[ ] +1 Release these as the deb and rpm packages for Apache Aurora ${RELEASE}
+[ ] +0
+[ ] -1 Do not release these artifacts because...
+
+__EOF__
+)
+
+echo "--------------------------------------------------------------------------------"
+echo
+echo "${MESSAGE}"
+echo
+echo "--------------------------------------------------------------------------------"
+echo

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/2d5acd41/docs/images/bintray-upload.png
----------------------------------------------------------------------
diff --git a/docs/images/bintray-upload.png b/docs/images/bintray-upload.png
deleted file mode 100644
index 5fd9296..0000000
Binary files a/docs/images/bintray-upload.png and /dev/null differ


Mime
View raw message