From: Ian Campbell Subject: Re: [OSSTEST PATCH 6/6] sg-run-job: Do blocked check globally, in run-job Date: Wed, 21 May 2014 12:57:49 +0100 Message-ID: <1400673469.4856.29.camel@kazak.uk.xensource.com> References: <1400672528-16185-1-git-send-email-ian.jackson@eu.citrix.com> <1400672528-16185-6-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wn59d-0000CQ-Ip for xen-devel@lists.xenproject.org; Wed, 21 May 2014 11:57:53 +0000 In-Reply-To: <1400672528-16185-6-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-05-21 at 12:42 +0100, Ian Jackson wrote: > 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. > > Signed-off-by: Ian Jackson > --- > sg-run-job | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/sg-run-job b/sg-run-job > index c1dfa86..e903869 100755 > --- a/sg-run-job > +++ b/sg-run-job > @@ -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