Skip to contentSkip to conversation

rumpuserxen: Increase build timeout for grievous bodge

PATCH In review Ian Jackson 2 participants 13 messages May 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 rumpuserxen: Increase build timeout for grievous bodge

This involves copying 90Mby of data. If the test machine is busy (in the worst case, running the kernel side of resize2fs which due to Linux's poor IO scheduling hogs the entire IO system) it can take a long time. In flight 26359 it was still running after 280s, when the machine was released.

Increase the timeout to 2000s.

---
 ts-rumpuserxen-build |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ts-rumpuserxen-build +1 -1
index e6adc75..3f72719 100755
@@ -67,7 +67,7 @@ sub massage() {
 	    print EO or die $!;
 	}
     });
-    target_cmd_build($ho, 200, $rux, "bash -x grievous-bodge-nblibs");
+    target_cmd_build($ho, 2000, $rux, "bash -x grievous-bodge-nblibs");
 
     # Rather poor
     target_editfile($ho, "$rux/Config.mk", sub {
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/6 crontab: Rearrange actually-daily branches

Make them start at roughly the same time, by using cr-for-branches for them all in one go. That increases the extent to which build hosts will be reused (saving on reinstallations), and hence also the extent to which the build hosts' ccache will be effective (saving on cpu).

Set them off at 04:18 UK time (currently equivalent to 21:18 Pacific time), in the hope that at least some of them might have produced answers during following the UK working day.

---
 crontab |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
crontab +2 -6
index 5a621e2..99e45bc 100644
@@ -4,11 +4,7 @@ [email protected],[email protected]
 49		1	* * *		cd testing.git && BRANCHES_ALWAYS=xen-unstable	./cr-for-branches branches -w "./cr-daily-branch --real"
 4-59/30		*	* * *		cd testing.git &&				./cr-for-branches branches -q "./cr-daily-branch --real"
 18		9	* * 1-5		cd testing.git && BRANCHES=linux-next		./cr-for-branches branches -w "./cr-daily-branch --real"
-18		10	* * *		cd testing.git && BRANCHES=linux-linus		./cr-for-branches branches -w "./cr-daily-branch --real"
-18		11	* * *		cd testing.git && BRANCHES=linux-mingo-tip-master ./cr-for-branches branches -w "./cr-daily-branch --real"
-18		12	* * *		cd testing.git && BRANCHES=linux-3.0		./cr-for-branches branches -w "./cr-daily-branch --real"
-18		13	* * *		cd testing.git && BRANCHES=libvirt		./cr-for-branches branches -w "./cr-daily-branch --real"
-18		14	* * *		cd testing.git && BRANCHES=rumpuserxen		./cr-for-branches branches -w "./cr-daily-branch --real"
+18		4	* * *		cd testing.git && BRANCHES='linux-linus linux-mingo-tip-master linux-3.0 libvirt rumpuserxen' ./cr-for-branches branches -w "./cr-daily-branch --real"
 6-59/15   	*	* * *		cd testing.git && EXTRA_BRANCHES='linux-linus linux-3.0 rumpuserxen libvirt' ./cr-for-branches bisects -w "./cr-try-bisect --real"
 #8-59/5		*	* * *		cd bisects/adhoc.git &&	with-lock-ex -q data-tree-lock bash -c "./cr-try-bisect-adhoc; exit $?"
-3		5	* * *		savelog -c28 testing.git/tmp/cr-for-branches.log >/dev/null
+3		4	* * *		savelog -c28 testing.git/tmp/cr-for-branches.log >/dev/null
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 3/6 make-flight: rumpuserxen amd64 too

In reply to Ian Jackson

Build and test amd64 rump kernel.

---
 make-flight |    5 +++--
 mfi-common  |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
make-flight +3 -2
index f812a2f..ba1bc5b 100755
@@ -292,13 +292,14 @@ test_matrix_do_one () {
   *)               test_xend=n ;;
   esac
 
-  for rumparch in i386; do
+  rumparch=$dom0arch
+  if true; then
       job_create_test test-$xenarch$kern-$dom0arch-rumpuserxen-$rumparch \
                       test-rumpuserxen xl \
             $xenarch $dom0arch                                       \
             rump_rumpuserxenbuildjob=build-$rumparch-rumpuserxen     \
             all_hostflags=$most_hostflags
-  done
+  fi
 
   # xend PV guest test on x86 only
   if [ x$test_xend = xy -a \( $dom0arch = "i386" -o $dom0arch = "amd64" \) ]; then
mfi-common +1 -1
index b08a675..e73da67 100644
@@ -181,7 +181,7 @@ create_build_jobs () {
     fi
 
     case $arch in
-    i386)
+    i386 amd64)
     ./cs-job-create $flight build-$arch-rumpuserxen build-rumpuserxen        \
                 arch=$arch                                                   \
         tree_xen=$TREE_XEN                                                   \
Signature · 1 line
1.7.10.4
#3 lore raw

Re: [OSSTEST PATCH 3/6] make-flight: rumpuserxen amd64 too

Quoted 13 lines · Ian Jackson

Build and test amd64 rump kernel.

---
 make-flight |    5 +++--
 mfi-common  |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
make-flight +0 -0
index f812a2f..ba1bc5b 100755

make-flight test_matrix_do_one () { · line 296

Quoted 6 lines
make-flight +2 -1
@@ -292,13 +292,14 @@ test_matrix_do_one () {
   *)               test_xend=n ;;
   esac
 
-  for rumparch in i386; do
+  rumparch=$dom0arch
+  if true; then

Intentional or left over debug?

Quoted 23 lines
make-flight +1 -1
       job_create_test test-$xenarch$kern-$dom0arch-rumpuserxen-$rumparch \
                       test-rumpuserxen xl \
             $xenarch $dom0arch                                       \
             rump_rumpuserxenbuildjob=build-$rumparch-rumpuserxen     \
             all_hostflags=$most_hostflags
-  done
+  fi
 
   # xend PV guest test on x86 only
   if [ x$test_xend = xy -a \( $dom0arch = "i386" -o $dom0arch = "amd64" \) ]; then
mfi-common +1 -1
index b08a675..e73da67 100644
@@ -181,7 +181,7 @@ create_build_jobs () {
     fi
 
     case $arch in
-    i386)
+    i386 amd64)
     ./cs-job-create $flight build-$arch-rumpuserxen build-rumpuserxen        \
                 arch=$arch                                                   \
         tree_xen=$TREE_XEN                                                   \
#4 lore raw

Re: [OSSTEST PATCH 3/6] make-flight: rumpuserxen amd64 too

Ian Campbell writes ("Re: [OSSTEST PATCH 3/6] make-flight: rumpuserxen amd64 too"):

Quoted 6 lines · Ian Jackson

make-flight test_matrix_do_one () { · line 296

Quoted 3 lines
make-flight +2 -1
-  for rumparch in i386; do
+  rumparch=$dom0arch
+  if true; then

Intentional or left over debug?

Intentional. I anticipate that we might want to filter these four jobs in the future, or iterate over different dom0s. But if you object I'll take it out (and reindent).

Ian.

#5 lore raw

Re: [OSSTEST PATCH 3/6] make-flight: rumpuserxen amd64 too

Quoted 11 lines · Ian Jackson

Ian Campbell writes ("Re: [OSSTEST PATCH 3/6] make-flight: rumpuserxen amd64 too"):

Quoted 6 lines · Ian Jackson

make-flight test_matrix_do_one () { · line 296

Quoted 3 lines
make-flight +2 -1
-  for rumparch in i386; do
+  rumparch=$dom0arch
+  if true; then

Intentional or left over debug?

Intentional. I anticipate that we might want to filter these four jobs in the future, or iterate over different dom0s. But if you object I'll take it out (and reindent).

Leaving it is fine by me.

Ian.

#6 lore raw

PATCH 4/6 FIX MAKE-FLIGHT

In reply to Ian Jackson
---
 mfi-common |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mfi-common +1 -1
index e73da67..d1b2737 100644
@@ -181,7 +181,7 @@ create_build_jobs () {
     fi
 
     case $arch in
-    i386 amd64)
+    i386|amd64)
     ./cs-job-create $flight build-$arch-rumpuserxen build-rumpuserxen        \
                 arch=$arch                                                   \
         tree_xen=$TREE_XEN                                                   \
Signature · 1 line
1.7.10.4
#7 lore raw

Re: [OSSTEST PATCH 4/6] FIX MAKE-FLIGHT

Did you mean to fold this into the predecessor?

Quoted 17 lines · Ian Jackson
---
 mfi-common |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mfi-common +1 -1
index e73da67..d1b2737 100644
@@ -181,7 +181,7 @@ create_build_jobs () {
     fi
 
     case $arch in
-    i386 amd64)
+    i386|amd64)
     ./cs-job-create $flight build-$arch-rumpuserxen build-rumpuserxen        \
                 arch=$arch                                                   \
         tree_xen=$TREE_XEN                                                   \
#8 lore raw

Re: [OSSTEST PATCH 4/6] FIX MAKE-FLIGHT

Ian Campbell writes ("Re: [OSSTEST PATCH 4/6] FIX MAKE-FLIGHT"):

Quoted 1 line

Did you mean to fold this into the predecessor?

Oops, yes. When sending it, I forgot that I hadn't squashed the series.

Ian.

#9 lore raw

PATCH 5/6 TestSupport::broken: Update status of `preparing' jobs

In reply to Ian Jackson

If the current job is preparing, and we call broken, then we should update the status to that supplied by broken's caller.

---
 Osstest/TestSupport.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/TestSupport.pm +1 -1
index e906dff..4187b6c 100644
@@ -206,7 +206,7 @@ sub broken ($;$) {
         $affected= $dbh_tests->do(<<END, {}, $newst, $flight, $job);
             UPDATE jobs SET status=?
              WHERE flight=? AND job=?
-               AND (status='queued' OR status='running')
+               AND (status='queued' OR status='running' OR status='preparing')
 END
     });
     die "BROKEN: $m; ". ($affected>0 ? "marked $flight.$job $newst"
Signature · 1 line
1.7.10.4
#10 lore raw

PATCH 6/6 sg-run-job: Do blocked check globally, in run-job

In reply to Ian Jackson

Only run-job can fully abandon the whole job. With the previous arrangements (in bc63a901), a blocked build job would go on to try to run ts-logs-capture and become broken (rather than blocked).

The downside of this is that it is not possible in the future to introduce a kind of job which can selectively carry on if some of its dependencies fail. This notion is IMO an acceptable casualty.

---
 sg-run-job |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
sg-run-job +4 -5
index c1dfa86..e903869 100755
@@ -39,9 +39,10 @@ proc run-job {job} {
         set need_build_host 0
     }
 
+    catching-otherwise blocked            check-not-blocked
+    if {!$ok} return
+
     if {[llength $need_xen_hosts]} {
-               catching-otherwise blocked   check-not-blocked
-	if {!$ok} return
         eval run-ts broken  =             ts-hosts-allocate + $need_xen_hosts
     }
 
@@ -340,9 +341,7 @@ proc run-job/build-rumpuserxen {} {
 }
 
 proc prepare-build-host {} {
-    global jobinfo ok
-    catching-otherwise blocked check-not-blocked
-    if {!$ok} return
+    global jobinfo
     run-ts broken = ts-hosts-allocate + host
     run-ts broken host-install(*) ts-host-install-twice
     run-ts . host-build-prep ts-xen-build-prep
Signature · 1 line
1.7.10.4
#11 lore raw

Re: [OSSTEST PATCH 6/6] sg-run-job: Do blocked check globally, in run-job

Quoted 7 lines · Ian Jackson

Only run-job can fully abandon the whole job. With the previous arrangements (in bc63a901), a blocked build job would go on to try to run ts-logs-capture and become broken (rather than blocked).

The downside of this is that it is not possible in the future to introduce a kind of job which can selectively carry on if some of its dependencies fail. This notion is IMO an acceptable casualty.

Just to be clear: This doesn't exclude the existing behaviour of ts-migrate-support-check, does it? (I think not because you talk about jobs and this is a step)

Ian.

Quoted 34 lines
---
 sg-run-job |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
sg-run-job +4 -5
index c1dfa86..e903869 100755
@@ -39,9 +39,10 @@ proc run-job {job} {
         set need_build_host 0
     }
 
+    catching-otherwise blocked            check-not-blocked
+    if {!$ok} return
+
     if {[llength $need_xen_hosts]} {
-               catching-otherwise blocked   check-not-blocked
-	if {!$ok} return
         eval run-ts broken  =             ts-hosts-allocate + $need_xen_hosts
     }
 
@@ -340,9 +341,7 @@ proc run-job/build-rumpuserxen {} {
 }
 
 proc prepare-build-host {} {
-    global jobinfo ok
-    catching-otherwise blocked check-not-blocked
-    if {!$ok} return
+    global jobinfo
     run-ts broken = ts-hosts-allocate + host
     run-ts broken host-install(*) ts-host-install-twice
     run-ts . host-build-prep ts-xen-build-prep
#12 lore raw

Re: [OSSTEST PATCH 6/6] sg-run-job: Do blocked check globally, in run-job

Ian Campbell writes ("Re: [OSSTEST PATCH 6/6] sg-run-job: Do blocked check globally, in run-job"):

Quoted 5 lines · Ian Jackson
Quoted 4 lines

Only run-job can fully abandon the whole job. With the previous arrangements (in bc63a901), a blocked build job would go on to try to run ts-logs-capture and become broken (rather than blocked).

Quoted 7 lines
Quoted 3 lines

The downside of this is that it is not possible in the future to introduce a kind of job which can selectively carry on if some of its dependencies fail. This notion is IMO an acceptable casualty.

Just to be clear: This doesn't exclude the existing behaviour of ts-migrate-support-check, does it? (I think not because you talk about jobs and this is a step)

Indeed, that remains unaffected. We're talking here only about inter-job dependencies which show up in "*buildjob" runvars.

Ian.