Skip to content

Commit af50b6f

Browse files
Increase BDD Startup Timeout
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 <[email protected]>
1 parent c891561 commit af50b6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bddtests/scripts/start-peer.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

77
if [ -n "$MEMBERSHIP_IP" ]; then
88
echo "membersrvc detected, waiting for it before starting with a $TIMEOUT second timout"

bddtests/steps/peer_basic_impl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def step_impl(context, composeYamlFile):
4040

4141
bdd_compose_util.parseComposeOutput(context)
4242

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

0 commit comments

Comments
 (0)