From: Ian Campbell <ian.campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH v8 1/2] OSSTEST: introduce a raisin build test
Date: Tue, 4 Aug 2015 11:55:35 +0100 [thread overview]
Message-ID: <1438685735.31129.93.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1508031736160.11337@kaball.uk.xensource.com>
On Mon, 2015-08-03 at 17:59 +0100, Stefano Stabellini wrote:
>
> > > + echo >>config ENABLED_COMPONENTS=\\"seabios ovmf xen qemu
> > > qemu_traditional libvirt\\"
> > > +END
> > > + (nonempty($r{tree_xen}) && nonempty($r{revision_xen})
> > > ? <<END : '').
> > > + echo >>config XEN_URL=\\"$r{tree_xen}\\"
> > > + echo >>config XEN_REVISION=\\"$r{revision_xen}\\"
> > > +END
> >
> > This URL/REVISION setting is too repetetive. If you improved it you
> > could combine it with your setting of ENABLED_COMPONENTS.
> >
> > It's true that qemuu/QEMU_URL and qemu/QEMU_TRADITIONAL_URL etc. need
> > special handling but their specialness should be minimised. Maybe an
> > anonymous subref for generating each stanza, which you call with
> > matching arguments in a loop for most components, and explicitly with
> > nonmatching arguments for the two qemus.
>
> I disagree on this: some things are not worth optimizing.
This is not an optimisation, it is a maintainability improvement, having
multiple places which operate in an open coded way on a list of things
which are all supposed to remain in sync just means they will get out of
sync.
> Nonetheless I would make the changes you are requesting, but as
> explained in the past, what you are asking is beyond my knowledge of the
> language. Furthermore the snippet of code that was provided to me on the
> 13th of May did not actually work.
Perl is really not _so_ obscure or hard that this is much of an excuse,
even if you don't want to write it in a Perl-ish way you could get this
done just using constructs common to most languages, i.e. hashes, arrays
and loops.
Nevertheless, since this seems to be going nowhere I'll take your series
and fix this up for you.
> In conclusion, given that this is v8, I'll leave this code as is. Feel
> free to change it the way you think is best.
The fact we have made it to v8 without a piece of review commentary being
implemented is not a reason to continue to ignore it, nor to just accept
the patch as is IMHO.
> > > +sub collectversions () {
> > > + store_revision($ho, 'xen', "$raisindir/xen-dir", 1);
> > > + store_revision($ho, 'qemu', "$raisindir/qemu-traditional-dir",
> > > 1);
> > > + store_revision($ho, 'qemuu', "$raisindir/qemu-dir", 1);
> > > + store_revision($ho, 'seabios', "$raisindir/seabios-dir", 1);
> > > + store_revision($ho, 'ovmf', "$raisindir/ovmf-dir", 1);
> > > + store_revision($ho, 'libvirt', "$raisindir/libvirt-dir", 1);
> >
> > This list of revisions should come from the same place as the list of
> > config settings, above.
>
> I guess you mean the list of revisions to store? As in xen, qemu, qemuu,
> seabios, ovmf, libvirt? The list is currently hardcoded and names of the
> corresponding repositories are not regular, so for similar reasons as
> above I would prefer to keep it as is.
As above, I'll fix it.
Ian.
next prev parent reply other threads:[~2015-08-04 10:55 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-23 16:51 [PATCH v8 0/2] OSSTEST: introduce a raisin build test Stefano Stabellini
2015-07-23 16:52 ` [PATCH v8 1/2] " Stefano Stabellini
2015-07-31 15:53 ` Ian Jackson
2015-07-31 15:54 ` Ian Jackson
2015-07-31 16:01 ` Ian Jackson
2015-08-03 16:59 ` Stefano Stabellini
2015-08-04 10:55 ` Ian Campbell [this message]
2015-08-04 13:02 ` [PATCH 1/2] ts-raisin-build: consolidate open coded iterations over enabled components Ian Campbell
2015-08-05 7:50 ` Ian Campbell
2015-08-04 13:02 ` [PATCH 2/2] ts-raisin-build: Use git_massage_url Ian Campbell
2015-08-04 8:35 ` [PATCH v8 1/2] OSSTEST: introduce a raisin build test Ian Campbell
2015-08-04 8:39 ` Ian Campbell
2015-08-04 9:37 ` Ian Campbell
2015-08-04 13:26 ` Stefano Stabellini
2015-08-04 11:04 ` Ian Campbell
2015-08-04 11:18 ` Stefano Stabellini
2015-08-04 11:37 ` Ian Campbell
2015-08-04 13:18 ` Stefano Stabellini
2015-08-04 13:41 ` Ian Campbell
2015-08-04 13:47 ` Stefano Stabellini
2015-08-04 14:01 ` Ian Campbell
2015-08-04 13:47 ` Roger Pau Monné
2015-08-04 13:51 ` Ian Campbell
2015-07-23 16:52 ` [PATCH v8 2/2] OSSTest: push successful raisin builds Stefano Stabellini
2015-07-31 16:03 ` Ian Jackson
2015-08-03 17:09 ` Stefano Stabellini
2015-08-04 8:23 ` Ian Campbell
2015-08-04 10:50 ` Ian Campbell
2015-08-04 12:56 ` Ian Campbell
2015-08-04 13:11 ` Ian Campbell
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=1438685735.31129.93.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.