openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rab...@apache.org
Subject [incubator-openwhisk-deploy-kube] branch master updated: Fixed couchdbHealthCheck() timeout handling (#120)
Date Mon, 11 Dec 2017 17:02:30 GMT
This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git


The following commit(s) were added to refs/heads/master by this push:
     new defc618  Fixed couchdbHealthCheck() timeout handling (#120)
defc618 is described below

commit defc6180718464947f6e280a8561c54ca243721a
Author: Naohiro Tamura <naohirot@jp.fujitsu.com>
AuthorDate: Tue Dec 12 02:02:28 2017 +0900

    Fixed couchdbHealthCheck() timeout handling (#120)
---
 tools/travis/build.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/travis/build.sh b/tools/travis/build.sh
index 7691097..2a05e03 100755
--- a/tools/travis/build.sh
+++ b/tools/travis/build.sh
@@ -23,6 +23,7 @@ couchdbHealthCheck () {
   TIMEOUT=0
   until [ $TIMEOUT -eq 30 ]; do
     if [ -n "$(kubectl -n openwhisk logs $POD_NAME | grep "successfully setup and configured
CouchDB v2.0")" ]; then
+      PASSED=true
       break
     fi
 
@@ -30,7 +31,7 @@ couchdbHealthCheck () {
     sleep 10
   done
 
-  if [ $TIMEOUT -eq 25 ]; then
+  if [ "$PASSED" = false ]; then
     echo "Failed to finish deploying CouchDB"
 
     kubectl -n openwhisk logs $POD_NAME

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message