From commits-return-4279-archive-asf-public=cust-asf.ponee.io@openwhisk.apache.org Tue Apr 17 03:25:17 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id F2906180608 for ; Tue, 17 Apr 2018 03:25:16 +0200 (CEST) Received: (qmail 85428 invoked by uid 500); 17 Apr 2018 01:25:16 -0000 Mailing-List: contact commits-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list commits@openwhisk.apache.org Received: (qmail 85419 invoked by uid 99); 17 Apr 2018 01:25:16 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2018 01:25:16 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 3333980AD2; Tue, 17 Apr 2018 01:25:15 +0000 (UTC) Date: Tue, 17 Apr 2018 01:25:15 +0000 To: "commits@openwhisk.apache.org" Subject: [incubator-openwhisk-deploy-kube] branch master updated: configurable timeout for travis/build.sh (#181) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152392831515.6405.9758759116642760191@gitbox.apache.org> From: csantanapr@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-openwhisk-deploy-kube X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 2eb9aa4dc15d9e83a9871b307f20d79fb74be9e9 X-Git-Newrev: f9d840d07e5162771e522e9c54ce21aeaab4bf34 X-Git-Rev: f9d840d07e5162771e522e9c54ce21aeaab4bf34 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. csantanapr 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 f9d840d configurable timeout for travis/build.sh (#181) f9d840d is described below commit f9d840d07e5162771e522e9c54ce21aeaab4bf34 Author: David Grove AuthorDate: Mon Apr 16 21:25:12 2018 -0400 configurable timeout for travis/build.sh (#181) Add hook to allow overriding the timeout value used when waiting for a pod to be successfully deployed. I've found when running locally on a fresh minikube VM, it can sometimes take an excessively long time to pull images from dockerhub into the docker registry within the minikube cluster. Setting a high timeout limit avoids needing to run the script multiple times to pull in the needed images. --- tools/travis/build.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/travis/build.sh b/tools/travis/build.sh index e59c8d8..28f1d89 100755 --- a/tools/travis/build.sh +++ b/tools/travis/build.sh @@ -11,7 +11,7 @@ couchdbHealthCheck () { PASSED=false TIMEOUT=0 - until [ $TIMEOUT -eq 60 ]; do + until [ $TIMEOUT -eq $TIMEOUT_STEP_LIMIT ]; do if [ -n "$(kubectl -n openwhisk logs $POD_NAME | grep "successfully setup and configured CouchDB")" ]; then PASSED=true break @@ -39,7 +39,7 @@ deploymentHealthCheck () { PASSED=false TIMEOUT=0 - until $PASSED || [ $TIMEOUT -eq 60 ]; do + until $PASSED || [ $TIMEOUT -eq $TIMEOUT_STEP_LIMIT ]; do KUBE_DEPLOY_STATUS=$(kubectl -n openwhisk get pods -l name="$1" -o wide | grep "$1" | awk '{print $3}') if [ "$KUBE_DEPLOY_STATUS" == "Running" ]; then PASSED=true @@ -70,7 +70,7 @@ statefulsetHealthCheck () { PASSED=false TIMEOUT=0 - until $PASSED || [ $TIMEOUT -eq 60 ]; do + until $PASSED || [ $TIMEOUT -eq $TIMEOUT_STEP_LIMIT ]; do KUBE_DEPLOY_STATUS=$(kubectl -n openwhisk get pods -l name="$1" -o wide | grep "$1"-0 | awk '{print $3}') if [ "$KUBE_DEPLOY_STATUS" == "Running" ]; then PASSED=true @@ -102,7 +102,7 @@ jobHealthCheck () { PASSED=false TIMEOUT=0 - until $PASSED || [ $TIMEOUT -eq 60 ]; do + until $PASSED || [ $TIMEOUT -eq $TIMEOUT_STEP_LIMIT ]; do KUBE_SUCCESSFUL_JOB=$(kubectl -n openwhisk get jobs -o wide | grep "$1" | awk '{print $3}') if [ "$KUBE_SUCCESSFUL_JOB" == "1" ]; then PASSED=true @@ -138,6 +138,9 @@ ROOTDIR="$SCRIPTDIR/../../" # Default to docker container factory if not specified OW_CONTAINER_FACTORY=${OW_CONTAINER_FACTORY:="docker"} +# Default timeout limit to 60 steps +TIMEOUT_STEP_LIMIT=${TIMEOUT_STEP_LIMIT:=60} + cd $ROOTDIR # Label invoker nodes (needed for DockerContainerFactory-based invoker deployment) -- To stop receiving notification emails like this one, please contact csantanapr@apache.org.