All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: wei.liu2@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH v2] OSSTEST: introduce a raisin build test
Date: Thu, 7 May 2015 10:40:16 +0100	[thread overview]
Message-ID: <1430991616.2660.345.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1505071022090.2640@kaball.uk.xensource.com>

On Thu, 2015-05-07 at 10:31 +0100, Stefano Stabellini wrote:
> On Thu, 7 May 2015, Ian Campbell wrote:
> > On Wed, 2015-05-06 at 17:02 +0100, Stefano Stabellini wrote:
> > > On Wed, 6 May 2015, Ian Campbell wrote:
> > > > On Wed, 2015-05-06 at 15:43 +0100, Stefano Stabellini wrote:
> > > > [...]
> > > > > +    echo >>config ENABLED_COMPONENTS=\\"seabios ovmf xen qemu qemu_traditional libvirt\\"
> > > > [...]
> > > > > +    echo >>config XEN_URL=\\"$r{tree_xen}\\"
> > > > > +    echo >>config QEMU_URL=\\"$r{tree_qemuu}\\"
> > > > > +    echo >>config QEMU_TRADITIONAL_URL=\\"$r{tree_qemu}\\"
> > > > > +    echo >>config SEABIOS_URL=\\"$r{tree_seabios}\\"
> > > > > +    echo >>config LIBVIRT_URL=\\"$r{tree_libvirt}\\"
> > > > > +    echo >>config OVMF_URL=\\"$r{tree_ovmf}\\"
> > > > 
> > > > What will raisin do if one or more of these runvars is not set for some
> > > > reason yet the thing is listed in ENABLED_COMPONENTS?
> > > 
> > > It will fail with an error and quit
> > 
> > Imagine a future version of this test script which has been extended to
> > support some new component, something which we cannot (or don't way to)
> > test with an older version of Xen (perhaps it doesn't build, or relies
> > on some newer Xen version somehow).
> > 
> > In that case we would want osstest to instruct raisin to not build that
> > component, which we would likely do by omitting the component from the
> > runvars I think.
> > 
> > So ENABLED_COMPONENTS needs to be generated too, not just hardcoded. I
> > suppose we could do it in an ad-hoc way every time we add a new
> > component to this base set, but that seems like it would get even uglier
> > than just doing it now.
> 
> I think you have a point there. we could get rid of ENABLED_COMPONENTS
> from the raisin config file and rely on the revision_ variables: raisin
> will not try to build something with a blank revision, when
> ENABLED_COMPONENTS is not missing.

That would work too, yes.

> > The converse is also worth consideration -- what if osstest asks raisin
> > to build something it doesn't know about (imagine e.g. a bisection over
> > a raisin change to add a component).
> 
> That should return an error from raisin. Osstest ought to know that it
> cannot ask raisin to build something is not capable of.

True, I'm not sure if the osstest bisector will currently cope with the
set of trees supported by a component changing, but I suppose it would
have to learn to do so...

Ian.

      reply	other threads:[~2015-05-07  9:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 14:43 [PATCH v2] OSSTEST: introduce a raisin build test Stefano Stabellini
2015-05-06 15:15 ` Ian Campbell
2015-05-06 16:02   ` Stefano Stabellini
2015-05-07  9:13     ` Ian Campbell
2015-05-07  9:31       ` Stefano Stabellini
2015-05-07  9:40         ` Ian Campbell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1430991616.2660.345.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.