]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
make-hosts-flight: Impose a timeout
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 16 May 2017 13:35:06 +0000 (14:35 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 17 May 2017 22:53:57 +0000 (23:53 +0100)
If we cannot acquire a particular host for more than 20ks (~5.5h),
give up on it.  This allows flights to complete if hosts are blocked
for a long time.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
make-hosts-flight

index bbd33439722b16aaf14667147c94ff800bdb65c1..d619de605a771049a8614167faacfc2161812462 100755 (executable)
@@ -28,6 +28,8 @@ buildflight=$5
 : ${ALL_ARCHES:=amd64 i386 arm64 armhf}
 : ${ALL_SUITES:=jessie stretch}
 
+: ${PERHOST_MAXWAIT:=20000} # seconds
+
 flight=`./cs-flight-create $blessing $branch`
 
 . ./cri-common
@@ -61,6 +63,7 @@ hosts_iterate () {
   while read <&3 host kern arch suite; do
     runvars="
               arch=$arch host=$host
+              hostalloc_maxwait_max=$PERHOST_MAXWAIT
             "
 
     case $kern in