[ARVADOS-DEV] created: a00ef8633a3fbed5baecc5c47e9a330943dc8f8e
git at public.curoverse.com
git at public.curoverse.com
Wed Mar 18 14:03:03 EDT 2015
at a00ef8633a3fbed5baecc5c47e9a330943dc8f8e (commit)
commit a00ef8633a3fbed5baecc5c47e9a330943dc8f8e
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Mar 17 11:01:55 2015 -0400
5416: Add --retry flag: when a test suite fails, prompt to try that suite again.
diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh
index 38d8318..c81f3bd 100755
--- a/jenkins/run-tests.sh
+++ b/jenkins/run-tests.sh
@@ -215,6 +215,9 @@ do
leave_temp[GOPATH]=1
leave_temp[GEMHOME]=1
;;
+ --retry)
+ retry=1
+ ;;
*_test=*)
suite="${arg%%_test=*}"
args="${arg#*=}"
@@ -370,11 +373,11 @@ echo "pip install -q PyYAML"
pip install -q PyYAML || fatal "pip install PyYAML failed"
checkexit() {
- if [[ "$?" != "0" ]]; then
- title "!!!!!! $1 FAILED !!!!!!"
- failures+=("$1 (`timer`)")
+ if [[ "$1" != "0" ]]; then
+ title "!!!!!! $2 FAILED !!!!!!"
+ failures+=("$2 (`timer`)")
else
- successes+=("$1 (`timer`)")
+ successes+=("$2 (`timer`)")
fi
}
@@ -387,6 +390,17 @@ timer() {
}
do_test() {
+ while ! do_test_once ${@} && [[ "$retry" == 1 ]]
+ do
+ read -p 'Try again? [Y/n] ' x
+ if [[ "$x" != "y" ]] && [[ "$x" != "" ]]
+ then
+ break
+ fi
+ done
+}
+
+do_test_once() {
if [[ -z "${skip[$1]}" ]] && ( [[ -z "$only" ]] || [[ "$only" == "$1" ]] )
then
title "Running $1 tests"
@@ -404,8 +418,10 @@ do_test() {
else
"test_$1"
fi
- checkexit "$1 tests"
+ result="$?"
+ checkexit $result "$1 tests"
title "End of $1 tests (`timer`)"
+ return $result
else
title "Skipping $1 tests"
fi
@@ -430,7 +446,7 @@ do_install() {
else
"install_$1"
fi
- checkexit "$1 install"
+ checkexit $? "$1 install"
title "End of $1 install (`timer`)"
else
title "Skipping $1 install"
commit 3c0d0df8f6d287e83ea959881afedddc5d4b784a
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Mar 17 11:00:45 2015 -0400
5416: Add arv-git-httpd.
diff --git a/jenkins/run-build-packages.sh b/jenkins/run-build-packages.sh
index 006e3a4..62bd6f9 100755
--- a/jenkins/run-build-packages.sh
+++ b/jenkins/run-build-packages.sh
@@ -413,6 +413,21 @@ go get "git.curoverse.com/arvados.git/services/datamanager"
cd $WORKSPACE/debs
build_and_scp_deb $GOPATH/bin/datamanager=/usr/bin/arvados-data-manager arvados-data-manager 'Curoverse, Inc.' 'dir' "$PKG_VERSION" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=Datamanager ensures block replication levels, reports on disk usage and determines which blocks should be deleted when space is needed."
+# arv-git-httpd
+cd "$GOPATH/src/git.curoverse.com/arvados.git/services/arv-git-httpd"
+ARVGITHTTPD_VERSION=$(version_from_git)
+ARVGITHTTPD_TIMESTAMP=$(timestamp_from_git)
+
+if [[ "$GO_SDK_TIMESTAMP" -gt "$ARVGITHTTPD_TIMESTAMP" ]]; then
+ PKG_VERSION=$GO_SDK_VERSION
+else
+ PKG_VERSION=$ARVGITHTTPD_VERSION
+fi
+
+go get "git.curoverse.com/arvados.git/services/arv-git-httpd"
+cd $WORKSPACE/debs
+build_and_scp_deb $GOPATH/bin/arv-git-httpd=/usr/bin/arv-git-httpd arv-git-httpd 'Curoverse, Inc.' 'dir' "$PKG_VERSION" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=Provides authenticated http access to Arvados-hosted git repositories."
+
# crunchstat
cd "$GOPATH/src/git.curoverse.com/arvados.git/services/crunchstat"
PKG_VERSION=$(version_from_git)
diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh
index 713ffda..38d8318 100755
--- a/jenkins/run-tests.sh
+++ b/jenkins/run-tests.sh
@@ -544,6 +544,7 @@ do_install services/api apiserver
declare -a gostuff
gostuff=(
+ services/arv-git-httpd
services/crunchstat
services/keepstore
services/keepproxy
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list