[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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 <Ian.Jackson@xxxxxxxxxxxxx>
> ---
>  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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.