From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [OSSTEST v6 13/24] distros: support PV guest install from Debian netinst media.
Date: Fri, 15 May 2015 09:58:23 +0100 [thread overview]
Message-ID: <1431680303.8943.15.camel@citrix.com> (raw)
In-Reply-To: <21844.58094.540250.732158@mariner.uk.xensource.com>
On Thu, 2015-05-14 at 19:01 +0100, Ian Jackson wrote:
> Ian Campbell writes ("Re: [OSSTEST v6 13/24] distros: support PV guest install from Debian netinst media."):
> > On Tue, 2015-05-12 at 16:52 +0100, Ian Jackson wrote:
> > > Wrap damage on my screen. I appreciate that you want to retain the
> > > tabular nature, but perhaps
> > >
> > > my %arch_props = (
> > > amd64 => [ "multi-arch", "amd64-i386", "/install.amd/xen" },
> > > i386 => [ "multi-arch", "amd64-i386", "/install.386/xen" },
> > > armhf => [ "armhf", "armhf", "/install.armhf" },
> > > )
> > > my ( $path_arch, $file_arch, $iso_path ) =
> > > @{ $arch_props{$arch} };
> ...
> > More Perl-fu than I could muster by myself, but looks good to me ;-)
>
> You didn't spot the [...} then ? :-)
I did when I copied it, before I ran it even.
Actually, this all goes away (or rather becomes case..esac in the
make-flight bash script) with the proposal below.
> > > > + my $baseurl = $cd eq "current" ?
> > > > + "http://cdimage.debian.org/debian-cd/current/$props->{PathArch}/jigdo-cd" :
> > > > + "http://cdimage.debian.org/cdimage/weekly-builds/$props->{PathArch}/jigdo-cd";
> > >
> > > This should surely come from a runvar (or perhaps a config option)
> > > rather than being hardcoded.
> >
> > $cd above came from $r{"$gho->{Guest}_cd"} and takes the values either
> > "current" or "weekly".
> >
> > I could push the logic which mas those to an actual URL into
> > make-distros-flight if you would prefer? Or perhaps push the two
> > prefixes (up to but not including "$props->.../jigdo-cd") into the cfg
> > file? So it would become "$c{DebianCdURL_
> > $cd}/$props->{PathArch}/jigdo-cd"
>
> (We had a conversation IRL about some of this, but:)
>
> Hardcoding something in make-flight is not as bad as hardcoding it in
> the script, IMO, but:
>
> > The latter sounds a bit preferable I think, hardcoding URLs in
> > make-flight seems as wrong as hardcoding them here.
>
> Having it in the config is best. You might want to consider whether
> the config ought to be plumbed through a runvar by make-flight, so
> that it is possible to (eg) use cs-adjust-flight or whatever to do
> tests of different things.
After our RL conversation I've moved the URLs to make-flight and
actually it looks ok, I've got a few kinks to work out but I think it
should work ok.
Ian.
next prev parent reply other threads:[~2015-05-15 8:58 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 9:46 [PATCH OSSTEST v5 00/24] add distro domU testing flight Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 01/24] TestSupport: Add helper to fetch a URL on a host Ian Campbell
2015-05-12 15:08 ` Ian Jackson
2015-05-12 15:17 ` Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 02/24] TestSupport: allow caller of prepareguest_part_xencfg to specify viftype Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 03/24] create_webfile: Support use with guests as well as hosts Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 04/24] Debian: refactor code to add preseed commands to the preseed file Ian Campbell
2015-05-12 15:11 ` Ian Jackson
2015-05-06 9:56 ` [OSSTEST v6 05/24] Debian: refactor preseeding of .ssh directories Ian Campbell
2015-05-12 15:13 ` Ian Jackson
2015-05-06 9:56 ` [OSSTEST v6 06/24] Debian: Refactor installation of overlays, so it can be used for guests too Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 07/24] Debian: add preseed_create_guest helper Ian Campbell
2015-05-12 15:16 ` Ian Jackson
2015-05-12 15:22 ` Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 08/24] ts-debian-hvm-install: Only apply EFI workaround for Wheezy Ian Campbell
2015-05-12 15:17 ` Ian Jackson
2015-05-06 9:56 ` [OSSTEST v6 09/24] make-flight: Handle $BUILD_LVEXTEND_MAX in mfi-common:create_build_jobs() Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 10/24] distros: add support for installing Debian PV guests via d-i, flight and jobs Ian Campbell
2015-05-12 15:25 ` Ian Jackson
2015-05-12 15:40 ` Ian Campbell
2015-05-12 16:08 ` Ian Jackson
2015-05-06 9:56 ` [OSSTEST v6 11/24] distros: support booting Debian PV (d-i installed) guests with pvgrub Ian Campbell
2015-05-12 15:32 ` Ian Jackson
2015-05-06 9:56 ` [OSSTEST v6 12/24] distros: Support pvgrub for Wheezy too Ian Campbell
2015-05-12 15:35 ` Ian Jackson
2015-05-12 15:49 ` Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 13/24] distros: support PV guest install from Debian netinst media Ian Campbell
2015-05-12 15:52 ` Ian Jackson
2015-05-12 16:14 ` Ian Jackson
2015-05-13 9:16 ` Ian Campbell
2015-05-13 9:06 ` Ian Campbell
2015-05-14 18:01 ` Ian Jackson
2015-05-15 8:58 ` Ian Campbell [this message]
2015-05-06 9:56 ` [OSSTEST v6 14/24] Test pygrub and pvgrub on the regular flights Ian Campbell
2015-05-12 15:54 ` Ian Jackson
2015-05-13 9:11 ` Ian Campbell
2015-05-14 17:58 ` Ian Jackson
2015-05-06 9:56 ` [OSSTEST v6 15/24] distros: add branch infrastructure Ian Campbell
2015-05-12 16:03 ` Ian Jackson
2015-05-13 9:12 ` Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 16/24] distros: Run a flight over the weekend Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 17/24] Debian: Handle lack of bootloader support in d-i on ARM Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 18/24] ts-debian-di-install: Refactor root_disk specification Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 19/24] make-flight: refactor PV debian tests Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 20/24] Add testing of non-LVM/phy disk backends Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 21/24] mfi-common: Allow make-*flight to filter the set of build jobs to include Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 22/24] make-distros-flight: don't bother building for XSM Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 23/24] distros: email only me on play flights Ian Campbell
2015-05-06 9:56 ` [OSSTEST v6 24/24] ts-debian-di-install: Use ftp.debian.org directly Ian Campbell
2015-05-06 9:57 ` [PATCH OSSTEST v5 00/24] add distro domU testing flight Ian Campbell
2015-05-12 16:06 ` Ian Jackson
2015-05-13 9:19 ` Ian Campbell
2015-05-13 16:09 ` Ian Jackson
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=1431680303.8943.15.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.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.