You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ge...@apache.org on 2021/10/12 11:06:50 UTC

[incubator-annotator] branch release-automation updated (f755247 -> dd3c1d6)

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

gerben pushed a change to branch release-automation
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git.


 discard f755247  Add scripts to (semi)automate release steps (WIP)
     new dd3c1d6  Add scripts to (semi)automate release steps (WIP)

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (f755247)
            \
             N -- N -- N   refs/heads/release-automation (dd3c1d6)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 scripts/publish-rc.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

[incubator-annotator] 01/01: Add scripts to (semi)automate release steps (WIP)

Posted by ge...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gerben pushed a commit to branch release-automation
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit dd3c1d6bd31577c58e32b0d36090f03e9cf83ba7
Author: Gerben <ge...@treora.com>
AuthorDate: Tue Oct 12 12:59:50 2021 +0200

    Add scripts to (semi)automate release steps (WIP)
---
 scripts/create-rc.sh  | 11 +++++++++++
 scripts/obtain-rc.sh  | 12 ++++++++++++
 scripts/publish-rc.sh | 24 ++++++++++++++++++++++++
 scripts/verify-rc.sh  | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 99 insertions(+)

diff --git a/scripts/create-rc.sh b/scripts/create-rc.sh
new file mode 100755
index 0000000..56e043c
--- /dev/null
+++ b/scripts/create-rc.sh
@@ -0,0 +1,11 @@
+set -e
+
+if [ -z "$VERSION" ] || [ -z "$RC" ]
+then
+  echo "First set the VERSION and RC environment variables."
+  exit 1
+fi
+
+git tag -s "v$VERSION-rc.$RC" -m "v$VERSION-rc.$RC"
+git push origin tag "v$VERSION-rc.$RC"
+make distsign
diff --git a/scripts/obtain-rc.sh b/scripts/obtain-rc.sh
new file mode 100755
index 0000000..b365365
--- /dev/null
+++ b/scripts/obtain-rc.sh
@@ -0,0 +1,12 @@
+set -e
+
+if [ -z "$VERSION" ] || [ -z "$RC" ]
+then
+  echo "First set the VERSION and RC environment variables."
+  exit 1
+fi
+
+curl -O https://dist.apache.org/repos/dist/dev/incubator/annotator/source/$VERSION/rc.$RC/apache-annotator-$VERSION-rc.$RC-incubating.tar.gz
+curl -O https://dist.apache.org/repos/dist/dev/incubator/annotator/source/$VERSION/rc.$RC/apache-annotator-$VERSION-rc.$RC-incubating.tar.gz.asc
+curl -O https://dist.apache.org/repos/dist/dev/incubator/annotator/source/$VERSION/rc.$RC/apache-annotator-$VERSION-rc.$RC-incubating.tar.gz.sha256
+curl -O https://dist.apache.org/repos/dist/dev/incubator/annotator/source/$VERSION/rc.$RC/apache-annotator-$VERSION-rc.$RC-incubating.tar.gz.sha512
diff --git a/scripts/publish-rc.sh b/scripts/publish-rc.sh
new file mode 100755
index 0000000..836e60a
--- /dev/null
+++ b/scripts/publish-rc.sh
@@ -0,0 +1,24 @@
+set -e
+
+if [ -z "$VERSION" ] || [ -z "$RC" ]
+then
+  echo "First set the VERSION and RC environment variables."
+  exit 1
+fi
+if [ -z "$APACHE_USERNAME" ]
+then
+  echo "First set the APACHE_USERNAME environment variable."
+  exit 1
+fi
+
+svn co https://dist.apache.org/repos/dist/dev/incubator/annotator/source dev
+mkdir -p dev/$VERSION/rc.$RC
+cp apache-annotator-$VERSION-rc.$RC-incubating.tar.gz* dev/$VERSION/rc.$RC
+if [ $RC == "1" ]
+then
+  svn add dev/$VERSION
+else
+  svn add dev/$VERSION/rc.$RC
+fi
+svn propset svn:mime-type text/plain dev/$VERSION/rc.$RC/*.gz.asc dev/$VERSION/rc.$RC/*.gz.sha*
+svn ci --username $APACHE_USERNAME -m "Add Annotator $VERSION rc.$RC to dev tree" dev
diff --git a/scripts/verify-rc.sh b/scripts/verify-rc.sh
new file mode 100755
index 0000000..b7b53f5
--- /dev/null
+++ b/scripts/verify-rc.sh
@@ -0,0 +1,52 @@
+set -e
+
+#VERSION=0.2.0
+#RC=1
+
+if [ -z "$VERSION" ] || [ -z "$RC" ]
+then
+  echo "First set the VERSION and RC environment variables."
+  exit 1
+fi
+
+gpg --verify apache-annotator-*.tar.gz.asc
+
+sleep 5
+
+sha256sum --check apache-annotator-*.tar.gz.sha256
+sha512sum --check apache-annotator-*.tar.gz.sha512
+
+sleep 5
+
+tar xzf apache-annotator-$VERSION-rc.$RC-incubating.tar.gz
+cd apache-annotator-$VERSION-incubating
+
+git remote show origin
+
+sleep 5
+
+git fetch --unshallow origin tag v$VERSION-rc.$RC
+
+git describe
+
+sleep 5
+
+git status --ignored
+
+sleep 5
+
+# Expects Apache RAT 0.13 jar to be present in home directory
+# wget https://dlcdn.apache.org/creadur/apache-rat-0.13/apache-rat-0.13-bin.zip
+# unzip apache-rat-0.13-bin.zip
+java -jar ~/apache-rat-0.13.jar -E .ratignore -d .
+
+sleep 5
+
+make
+yarn build
+make check
+
+sleep 5
+
+yarn clean
+git status --ignored