Skip to content

Commit

Permalink
Increase BDD Startup Timeout
Browse files Browse the repository at this point in the history
There have been a number of instances of BDD tests which were
starting correctly but due to high load on the Jenkins host were
unable to complete prior to the timeout expiry.

This can been seen in action during
https://jenkins.hyperledger.org/view/fabric/job/fabric-verify-behave-x86_64/19/
in the chaincode authorizable counter test. Looking at the peer logs
it can be seen that peers vp1, vp2, and vp3 started up in 9, 1 and 5
seconds respectively. vp0 however timed out and didn't start.

Increasing the timeout from 10 to 20 seconds for peers to connect to
membersrvc and from 15 to 30 seconds overall to combat this.

Change-Id: I5c45697a63b95dd31371f423d274de69f0dc5cd3
Signed-off-by: Julian Carrivck <cjulian@au1.ibm.com>
  • Loading branch information
juliancarrivick-ibm committed Sep 12, 2016
1 parent c891561 commit af50b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bddtests/scripts/start-peer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SCRIPT_DIR=$(dirname $0)
MEMBERSHIP_IP=$(cat /etc/hosts | grep membersrvc | head -n 1 | cut -f1)
TIMEOUT=10
TIMEOUT=20

if [ -n "$MEMBERSHIP_IP" ]; then
echo "membersrvc detected, waiting for it before starting with a $TIMEOUT second timout"
Expand Down
2 changes: 1 addition & 1 deletion bddtests/steps/peer_basic_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def step_impl(context, composeYamlFile):

bdd_compose_util.parseComposeOutput(context)

timeoutSeconds = 15
timeoutSeconds = 30
assert bdd_compose_util.allContainersAreReadyWithinTimeout(context, timeoutSeconds), \
"Containers did not come up within {} seconds, aborting".format(timeoutSeconds)

Expand Down

0 comments on commit af50b6f

Please sign in to comment.