]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Add timeout for ceph-docker 786/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Jul 2017 12:02:22 +0000 (14:02 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Jul 2017 12:02:22 +0000 (14:02 +0200)
- Add the same timeout than for ceph-ansible PRs in ceph-docker PRs.
- Change logged error message

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-prs/build/build
ceph-docker-prs/build/build

index 285c0167b4fe8c3f67c8f961364c286a44316466..bb8b1d1f1c0b7f2701a6c1b9dd0a7fc61609ffc5 100644 (file)
@@ -15,7 +15,7 @@ restart_libvirt_services
 
 # the $SCENARIO var is injected by the job template. It maps
 # to an actual, defined, tox environment
-if ! timeout 5h $VENV/tox -rv -e=$RELEASE-$SCENARIO --workdir=$WORKDIR -- --provider=libvirt; then
-  echo "ERROR: Job didn't complete before the timeout exceeded (5h)."
+if ! timeout 3h $VENV/tox -rv -e=$RELEASE-$SCENARIO --workdir=$WORKDIR -- --provider=libvirt; then
+  echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
   exit 1
 fi
index 8b9adb4bc8be60a2fe5c5f267a5b189c548a5ba1..6eabf8e4e4efabb5799790302d19b840eb092011 100644 (file)
@@ -22,4 +22,7 @@ restart_libvirt_services
 # adding groups on the fly doesn't guarantee their availability
 # so we must use `sg` to execute the tests as part of the docker group to avoid
 # 'Permission Denied` when tryin to talk over the socket
-sg docker -c "$VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR"
+if ! timeout 3h sg docker -c "$VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR"; then
+  echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
+  exit 1
+fi