From: Loic Dachary Date: Fri, 8 May 2015 15:06:25 +0000 (+0200) Subject: install-deps.sh: increase pip install timeout X-Git-Tag: v9.0.2~208^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dc863fb75e77e009e6e6f35d8535bd7475ef0162;p=ceph.git install-deps.sh: increase pip install timeout It is not uncommon for pip install to timeout with: Cannot fetch index base URL https://pypi.python.org/simple because the default timeout is 15 seconds. When running from a CI, it translates into bursts of false negatives when the network is saturated. Increase the timeout to 10 minutes which is hopefully large enough to only happen when there is a serious network problem. Signed-off-by: Loic Dachary --- diff --git a/install-deps.sh b/install-deps.sh index 93297869fbf8..81ef5320f65a 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -92,7 +92,7 @@ for interpreter in python2.7 python3 ; do rm -fr install-deps virtualenv --python $interpreter install-deps . install-deps/bin/activate - pip --log install-deps/log.txt install wheel || exit 1 + pip --timeout 600 --log install-deps/log.txt install wheel || exit 1 find . -name tox.ini | while read ini ; do ( cd $(dirname $ini) @@ -100,7 +100,7 @@ for interpreter in python2.7 python3 ; do if test "$require" ; then # although pip comes with virtualenv, having a recent version # of pip matters when it comes to using wheel packages - pip --log install-deps/log.txt wheel $require 'distribute >= 0.7' 'pip >= 6.1' || exit 1 + pip --timeout 600 --log install-deps/log.txt wheel $require 'distribute >= 0.7' 'pip >= 6.1' || exit 1 fi ) done