]> xenbits.xensource.com Git - osstest.git/log
osstest.git
10 years agocri-args-hostlists, etc.: Send rumpuserxen reports to rumpkernel-builds
Ian Jackson [Tue, 3 Jun 2014 14:59:51 +0000 (15:59 +0100)]
cri-args-hostlists, etc.: Send rumpuserxen reports to rumpkernel-builds

There is now a list, rumpkernel-builds@lists.sourceforge, for this
kind of information relating to rumpuser-xen.

Provide a facility in cri-args-hostlists for start_email to look for
$OSSTEST_EMAIL_HEADER--$branch.

Introduce two new files
  daily-cron-email-real--rumpuserxen
  daily-cron-email-real-bisectcomplete--rumpuserxen
which override the general settings.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocs-bisection-step: Remove a bit of duplication
Ian Jackson [Tue, 3 Jun 2014 14:52:18 +0000 (15:52 +0100)]
cs-bisection-step: Remove a bit of duplication

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocs-bisection-step: Cope with url-less trees flight-26918 flight-26920 flight-26922 flight-26924 flight-26925 flight-26926 flight-26927 flight-26929 flight-26931 flight-26933 flight-26934 flight-26935 flight-26936 flight-26937 flight-26938 flight-26940 flight-26942 flight-26944 flight-26945 flight-26946 flight-26948 flight-26949 flight-26950 flight-26951 flight-26952 flight-26956 flight-26964 flight-26967 flight-26969 flight-26971 flight-26972 flight-26973 flight-26979 flight-26980 flight-26981 flight-26982 flight-26984 flight-26985 flight-26986 flight-26988 flight-26989 flight-26990 flight-26991 flight-26992 flight-26995 flight-26996 flight-26998 flight-26999 flight-27000 flight-27002 flight-27003 flight-27004 flight-27006 flight-27007 flight-27008 flight-27009 flight-27011 flight-27013 flight-27014 flight-27015 flight-27016 flight-27017 flight-27018 flight-27019 flight-27020 flight-27022 flight-27023 flight-27026 flight-27027 flight-27028 flight-27029 flight-27030
Ian Jackson [Mon, 2 Jun 2014 10:09:17 +0000 (11:09 +0100)]
cs-bisection-step: Cope with url-less trees

Since osstest 64a9c064, some flights have a tree with an empty
tree_<foo> variable.  This breaks the bisector.  Make it more robust
as follows:

When searching for the basis flight, ignore not only trees with no url
specified but also ones with an empty url.

When preparing the set of trees we care about, eliminate any where the
latest flight has no url (or an empty url).

(It would still be better for the flight constructor to leave
tree_<foo> unset, and for the ts-* build script to set it in as a part
of the post-build data collection.  That would allow the bisector to
work on that tree where relevant.  But doing this is a task for
another day - if for no other reason than that we have to decide
whether to put it in a new variable built_tree_<foo>.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoap-qemu-revision: Make it actually work flight-26456 flight-26471 flight-26493 flight-26494 flight-26495 flight-26496 flight-26497 flight-26498 flight-26499 flight-26500 flight-26501 flight-26503 flight-26504 flight-26508 flight-26512 flight-26515 flight-26530 flight-26549 flight-26553 flight-26554 flight-26556 flight-26565 flight-26566 flight-26567 flight-26569 flight-26626 flight-26657 flight-26663 flight-26681 flight-26701 flight-26738 flight-26740 flight-26764 flight-26773 flight-26774 flight-26775 flight-26777 flight-26797 flight-26828 flight-26866 flight-26871 flight-26879 flight-26884 flight-26907 flight-26908
Ian Jackson [Fri, 23 May 2014 09:55:51 +0000 (10:55 +0100)]
ap-qemu-revision: Make it actually work

This is used (only) for obtaining lists of the corresponding qemu
revisions (for the report email) when doing a Xen push.  It has never
worked because we didn't provide a type argument to git-cat-file.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocr-daily-branch: Only set TREE_SEABIOS for seabios flights
Ian Campbell [Fri, 23 May 2014 09:26:26 +0000 (10:26 +0100)]
cr-daily-branch: Only set TREE_SEABIOS for seabios flights

For all other flights we want to use the Config.mk settings.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoDefault vcs to git flight-26417 flight-26419 flight-26420 flight-26421 flight-26422 flight-26423 flight-26425 flight-26427 flight-26428 flight-26429 flight-26430 flight-26431 flight-26433 flight-26434 flight-26437 flight-26449 flight-26450 flight-26451 flight-26454 flight-26455 flight-26457 flight-26458 flight-26460 flight-26461 flight-26462 flight-26464 flight-26465 flight-26466 flight-26468 flight-26469 flight-26470 flight-26472 flight-26473 flight-26475 flight-26476 flight-26477 flight-26478 flight-26479 flight-26480 flight-26481 flight-26482 flight-26485 flight-26489 flight-26490 flight-26491
Ian Jackson [Thu, 22 May 2014 11:24:19 +0000 (12:24 +0100)]
Default vcs to git

adhoc-revtuple-generator and cs-bisection-step try to guess the VCS
from the URL, by looking at the end of the URL for a suitable file
extension.  If none was found, things would break.

This relies on a convention about tree URLs which is sadly no longer
being widely observed.  In particular many projects have git URLs
which do not mention git.

Instead, have these scripts assume that urls which don't end in .git
or .hg are for git.

This renders hg into a second-class VCS in osstest, which is (I think)
tolerable.  If it isn't, then someone ought to come up with some
better way of ensuring that the vcs is explicitly specified to
adhoc-revtuple-generator and cs-bisection-step.  That would probably
be doable but is too much work right now.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agosg-run-job: Do blocked check globally, in run-job flight-26374
Ian Jackson [Wed, 21 May 2014 11:36:02 +0000 (12:36 +0100)]
sg-run-job: Do blocked check globally, in run-job

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.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoTestSupport::broken: Update status of `preparing' jobs
Ian Jackson [Wed, 21 May 2014 11:34:01 +0000 (12:34 +0100)]
TestSupport::broken: Update status of `preparing' jobs

If the current job is preparing, and we call broken, then we should
update the status to that supplied by broken's caller.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agomake-flight: rumpuserxen amd64 too
Ian Jackson [Wed, 21 May 2014 10:54:10 +0000 (11:54 +0100)]
make-flight: rumpuserxen amd64 too

Build and test amd64 rump kernel.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocrontab: Rearrange actually-daily branches
Ian Jackson [Wed, 21 May 2014 10:37:48 +0000 (11:37 +0100)]
crontab: Rearrange actually-daily branches

Make them start at roughly the same time, by using cr-for-branches for
them all in one go.  That increases the extent to which build hosts
will be reused (saving on reinstallations), and hence also the extent
to which the build hosts' ccache will be effective (saving on cpu).

Set them off at 04:18 UK time (currently equivalent to 21:18 Pacific
time), in the hope that at least some of them might have produced
answers during following the UK working day.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agorumpuserxen: Increase build timeout for grievous bodge
Ian Jackson [Wed, 21 May 2014 10:42:37 +0000 (11:42 +0100)]
rumpuserxen: Increase build timeout for grievous bodge

This involves copying 90Mby of data.  If the test machine is busy (in
the worst case, running the kernel side of resize2fs which due to
Linux's poor IO scheduling hogs the entire IO system) it can take a
long time.  In flight 26359 it was still running after 280s, when the
machine was released.

Increase the timeout to 2000s.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agocr-publish-flight-logs: Provide ref path for osstest branch push flight-26353 flight-26360 flight-26364 flight-26365 flight-26373
Ian Jackson [Mon, 19 May 2014 10:58:47 +0000 (11:58 +0100)]
cr-publish-flight-logs: Provide ref path for osstest branch push

Without this, the push fails if the osstest tree is in detached head
state.  (Which is a situation which can occur during by-hand testing.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoAdd my developer/deployment notes as README.dev
Ian Campbell [Mon, 19 May 2014 11:08:09 +0000 (12:08 +0100)]
Add my developer/deployment notes as README.dev

These are mostly targetted at people setting up things on the production
infra.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoproduction-config: Update to pickup latest Debian Installer
Ian Campbell [Mon, 19 May 2014 11:32:16 +0000 (12:32 +0100)]
production-config: Update to pickup latest Debian Installer

Pickup the changes made in
     mg-debian-installer-update: Updates for newer armhf kernels from backports.
     mg-debian-installer-update: grab Xen PV domU capable images too

I have run

    for i in i386 amd64 armhf ; do
        OSSTEST_CONFIG=production-config ./mg-debian-installer-update wheezy $i 'firmware-bnx2'
    done

on the osstest vm. Point the config to these new versions.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agosg-run-job: check for prerequisite builds when running build jobs
Ian Campbell [Thu, 15 May 2014 10:30:39 +0000 (11:30 +0100)]
sg-run-job: check for prerequisite builds when running build jobs

For example build-$ARCH-libvirt depends on build-$ARCH for the Xen bits.
Performing this check early saves allocating, installing, preparating etc a
host just to find the prerequisite is missing.

Rename ts-xen-build-check to ts-build-check while we are there. The script
checks all prerequisite builds, not just Xen.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agostandalone: allow making a baseline flight.
Ian Campbell [Thu, 15 May 2014 10:30:38 +0000 (11:30 +0100)]
standalone: allow making a baseline flight.

While there make the existing --lvextend argument actually work (by passing it
to getopt) and document both.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-xen-build: Move Xen build tree from xen-unstable to just xen
Ian Campbell [Thu, 15 May 2014 10:30:37 +0000 (11:30 +0100)]
ts-xen-build: Move Xen build tree from xen-unstable to just xen

It's not always xen-unstable we are testing, and I had to check that it was
the right generic name, so reduce this confusion.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agots-xen-build: stash the Xen and SeaBIOS .config's
Ian Campbell [Thu, 15 May 2014 10:30:36 +0000 (11:30 +0100)]
ts-xen-build: stash the Xen and SeaBIOS .config's

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoAdd a flight to test seabios.org's master branch
Ian Campbell [Thu, 15 May 2014 10:30:35 +0000 (11:30 +0100)]
Add a flight to test seabios.org's master branch

Most of this is the usual stuff for adding a new branch.

cr-daily-branch needed to set REVISION_SEABIOS for the seabios branch and leave
it blank for others (so that Config.mk's version will be used). ts-xen-build
already consumes the resulting version runvar but needed to be taught about the
tree URL runvar.

make-flight and mfi-common are updated to only build+test seabios on x86.

The new branch is added to cr-daily-branches.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoAdd a flight to test qemu.org's ("mainline") master branch.
Ian Campbell [Thu, 15 May 2014 10:30:34 +0000 (11:30 +0100)]
Add a flight to test qemu.org's ("mainline") master branch.

The naming here is slightly confused because we call our branches of qemuu on
xenbits "qemu-upstream-foo", so I went with qemu-mainline to be distinct.

I've introduced $qemuubranch along the lines of $xenbranch, it is normally set
to qemu-upstream-{X.Y,unstable} but for the qemu-mainline flight it instead
points to qemu-mainline.

I've run up to the make-flight bit of cr-daily-branch and it differs only in
the expected ways from a standard xen-unstable branch (i.e. uses xen.git#master
and qemu.git#master).

I did consider causing make-flight:job_create_test_filter_callback to omit any
test which didn't use qemuu but I decided not to because it is used for PV
qdisk backends too.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agomg-debian-installer-update: grab Xen PV domU capable images too
Ian Campbell [Mon, 28 Apr 2014 10:41:24 +0000 (11:41 +0100)]
mg-debian-installer-update: grab Xen PV domU capable images too

Some test cases are going to want this, so they should be grabbed and
versioned here.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agoBuild against liblzma to support .xz compressed kernels
Ian Campbell [Mon, 28 Apr 2014 10:41:23 +0000 (11:41 +0100)]
Build against liblzma to support .xz compressed kernels

Install the library at runtime.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-external-linux: remove
Ian Campbell [Mon, 28 Apr 2014 10:41:22 +0000 (11:41 +0100)]
cr-external-linux: remove

Seems to be unused.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocr-daily-branch: Only build oldkern for xen-unstable flights
Ian Campbell [Thu, 15 May 2014 10:35:44 +0000 (11:35 +0100)]
cr-daily-branch: Only build oldkern for xen-unstable flights

This is just supposed to be a build test, it doesn't actually get used.
There's no need to be doing this for every flight, doing it for xen-unstable
is enough

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agocrontab: Bisect the libvirt branch
Ian Campbell [Wed, 14 May 2014 08:14:16 +0000 (09:14 +0100)]
crontab: Bisect the libvirt branch

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
10 years agomg-debian-installer-update: Updates for newer armhf kernels from backports.
Ian Campbell [Mon, 28 Apr 2014 09:18:38 +0000 (10:18 +0100)]
mg-debian-installer-update: Updates for newer armhf kernels from backports.

In newer kernels sd_mod.ko requires crypto symbols, so include
kernel/crypto/*.ko in the installer overlay cpio.

Also prefer the newest versions of packages pulled in from backports, by
reversing the sort. Anchor the linux-image package name to we only pick up the
-armmp flavour and not -armmp-lpae (which is unnecessary in an installer
environment).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agorump kernels: Create a "branch" for rump kernel tests flight-26348 flight-26351 flight-26352 flight-26354 flight-26355 flight-26356 flight-26357 flight-26359 flight-26361
Ian Jackson [Fri, 16 May 2014 16:22:10 +0000 (17:22 +0100)]
rump kernels: Create a "branch" for rump kernel tests

This is a traditional push gate.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agorump kernels: Provide two test jobs
Ian Jackson [Fri, 16 May 2014 15:57:16 +0000 (16:57 +0100)]
rump kernels: Provide two test jobs

10 years agorump kernels: Provide a build job
Ian Jackson [Thu, 15 May 2014 15:48:56 +0000 (16:48 +0100)]
rump kernels: Provide a build job

Provide:
  - test script ts-rumpuserxen-build
  - recipe build-rumpuserxen
  - in flights, job build-i386-rumpuserxen
  - in ap-common, TREE and TREEVCS for RUMPUSERXEN and RUMPUSERXEN_RUMPSRC

mfi-common also honours REVISION_RUMPUSERXEN, but provides no way to
specify the revisions of the subtrees (the two submodules and
rumpsrc).  The upstream rumpuser-xen git repository contains the
commit hashes of those.

We had to do some pretty unpleasant things to get the rumpuser-xen
build system to work with rumpsrc we cloned ourselves.

During bisection the bisector must choose a unification of the various
trees' revision graphs, into a single graph.  But we do not here teach
adhoc-revtuple-generator about these interrelationships.  As a result
the bisector may choose a unification inconsistent with the subtree
references in rumpuser-xen.git.  This might impair the performance of
the bisector in the presence of cross-tree version incompatibilities,
but the results should be tolerable for now.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agomfi-common: Honour REVISION_LIBVIRT=disable
Ian Jackson [Fri, 16 May 2014 16:56:54 +0000 (17:56 +0100)]
mfi-common: Honour REVISION_LIBVIRT=disable

This makes it possible for (for example) cr-daily-branch to disable
the libvirt build, when it is not needed.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoprepareguest: Tolerate $mb=undef
Ian Jackson [Fri, 16 May 2014 15:51:59 +0000 (16:51 +0100)]
prepareguest: Tolerate $mb=undef

Allow callers to pass undef for $mb, to indicate that there is no need
for prepareguest to do anything about storage.

No functional change for any of the existing callers.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoguest_umount_lv: Tolerate lack of volume group
Ian Jackson [Fri, 16 May 2014 15:27:25 +0000 (16:27 +0100)]
guest_umount_lv: Tolerate lack of volume group

Check if the guest has a volume group, and if not do nothing.

We are going to introduce a kind of guest with no significant storage.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agotarget_jobdir: Create the directory
Ian Jackson [Fri, 16 May 2014 15:53:43 +0000 (16:53 +0100)]
target_jobdir: Create the directory

Callers of target_jobdir can now rely on the directory existing after
it returns.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoTestSupport: Break out target_extract_jobdistpath_subdir
Ian Jackson [Fri, 16 May 2014 15:26:26 +0000 (16:26 +0100)]
TestSupport: Break out target_extract_jobdistpath_subdir

This is the meat of what was Osstest::BuildSupport::xendist, which now
becomes a simple convenience wrapper.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoTestSupport: Break out target_jobdir
Ian Jackson [Fri, 16 May 2014 15:20:12 +0000 (16:20 +0100)]
TestSupport: Break out target_jobdir

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoBuildSupport: Provide some support for git submodules
Ian Jackson [Thu, 15 May 2014 15:01:13 +0000 (16:01 +0100)]
BuildSupport: Provide some support for git submodules

* Provide a new "submodulefixup" function which, given a cloned
  tree which has submodules:
    - massages the .gitmodules file according to the tree_*
      runvars and massage_url
    - arranges for the submodules to be fetched and checked out
    - stores the revisions of the submodules, as necessary
    - honours any revision_ tags for the submodules
    - allows the caller to give the submodules names which are
      suitable for use in runvars etc. (and might differ from
      the names or paths used in the supermodule)

* In a submodule, .git is actually a file containing a reference
  to a subdirectory of the main git tree.  Cope with that.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoBuildSupport, ts-*-build: Remove some clone-and-hack
Ian Jackson [Wed, 14 May 2014 13:30:54 +0000 (14:30 +0100)]
BuildSupport, ts-*-build: Remove some clone-and-hack

Introduce Osstest::BuildSupport containing selectbuildhost,
builddirsprops and prepbuilddirs.  The corresponding replicated code
from the various ts-*-build scripts is abolished.

Also break out xendist, which we are going to want to reuse.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agogit_massage_url: Make idempotent
Ian Jackson [Thu, 15 May 2014 15:47:46 +0000 (16:47 +0100)]
git_massage_url: Make idempotent

If called more than once, it should not produce a url starting with
multiple copies of the git cache proxy prefix.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
10 years agoTestSupport: Provide target_editfile
Ian Jackson [Thu, 15 May 2014 15:00:57 +0000 (16:00 +0100)]
TestSupport: Provide target_editfile

... as well as target_editfile_root.  No callers yet.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agomake-flight etc.: More Debian HVM testcases flight-26236 flight-26255 flight-26288 flight-26315 flight-26333 flight-26334 flight-26335 flight-26336 flight-26337 flight-26340 flight-26341 flight-26342 flight-26344 flight-26345 flight-26346 flight-26347 flight-26349
Wei Liu [Wed, 23 Apr 2014 17:03:28 +0000 (18:03 +0100)]
make-flight etc.: More Debian HVM testcases

ts-debian-hvm-install was written to work as general HVM testcase. It
can be tuned to easily use another BIOS other than OVMF.

Modify make-flight and friends to create more Debian HVM 64bit testcases
to run with SeaBIOS and ROMBIOS.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoadhoc-people-touched-filter: Include patch authors
Ian Jackson [Mon, 12 May 2014 13:36:10 +0000 (14:36 +0100)]
adhoc-people-touched-filter: Include patch authors

The git "Author:" tag of each commit should be included.

(We used to include only special pseudo-headers from the patch
comment, because the old hg practice used to be to put the committer
in the hg commit author.  But git separates committer and author.)

This involves a slight refactoring.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
11 years agolibvirt: Fixes for older versions of Xen
Ian Campbell [Fri, 2 May 2014 13:08:04 +0000 (14:08 +0100)]
libvirt: Fixes for older versions of Xen

libvirt supports Xen 4.2 onwards. However:
  - We were not correctly setting the libvirtbuildjob runvar on 4.3 and
    earlier.
  - Xen 4.2 installs to /usr not /usr/local so the CFLAGS/LDFLAGS used to build
    libvirt were wrong.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoDrop unnecessary TREEVCS settings for libvirt and gnulib-libvirt
Ian Campbell [Tue, 6 May 2014 08:05:23 +0000 (09:05 +0100)]
Drop unnecessary TREEVCS settings for libvirt and gnulib-libvirt

This will be correctly inferred from the URL.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agostandalone: Export BUILD_LVEXTEND_MAX when running make-flight.
Ian Campbell [Fri, 2 May 2014 10:23:04 +0000 (11:23 +0100)]
standalone: Export BUILD_LVEXTEND_MAX when running make-flight.

This is stops the build taking over the entire VG and allows tests to be run
without reinstalling the host.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agostandalone: Use WebspaceLog for apache log check
Ian Campbell [Thu, 1 May 2014 16:10:55 +0000 (17:10 +0100)]
standalone: Use WebspaceLog for apache log check

Also print the result in the error message for cut-and-paste convenience.

While there I noticed that run-test was setting OSSTEST_CONFIG twice.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport: stash installer files etc.
Ian Jackson [Fri, 9 May 2014 11:04:19 +0000 (12:04 +0100)]
TestSupport: stash installer files etc.

Stash the pxeboot config file, the preseed file, et al.  This is done
centrally in file_link_contents.

We don't stash things whose $contents is actually a coderef because
(a) doing so would be inconvenient and (b) many of them are large and
not very interesting.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
11 years agots-xen-build: collect built seabios and ovmf versions flight-26109 flight-26124 flight-26125 flight-26126 flight-26127 flight-26129 flight-26130 flight-26131 flight-26132 flight-26133 flight-26134 flight-26135 flight-26136 flight-26137 flight-26138 flight-26139 flight-26140 flight-26141 flight-26142 flight-26143 flight-26145 flight-26146 flight-26147 flight-26148 flight-26149 flight-26150 flight-26151 flight-26152 flight-26153 flight-26154 flight-26155 flight-26156 flight-26157 flight-26158 flight-26160 flight-26161 flight-26162 flight-26163 flight-26164 flight-26165 flight-26166 flight-26167 flight-26168 flight-26169 flight-26170 flight-26171 flight-26172 flight-26173 flight-26174 flight-26176 flight-26177 flight-26178 flight-26179 flight-26180 flight-26181 flight-26182 flight-26183 flight-26187 flight-26188 flight-26189 flight-26190 flight-26191 flight-26192 flight-26193 flight-26194 flight-26195 flight-26196 flight-26198 flight-26199 flight-26200 flight-26201 flight-26202 flight-26203 flight-26204 flight-26206 flight-26207 flight-26208 flight-26209 flight-26210 flight-26212 flight-26213 flight-26214 flight-26215 flight-26216 flight-26217 flight-26220 flight-26221 flight-26222 flight-26223 flight-26224 flight-26225 flight-26226 flight-26228 flight-26233 flight-26234 flight-26235 flight-26237 flight-26238 flight-26239 flight-26241 flight-26245 flight-26246 flight-26248 flight-26249 flight-26250 flight-26251 flight-26252 flight-26253 flight-26254 flight-26256 flight-26257 flight-26258 flight-26259 flight-26260 flight-26261 flight-26263 flight-26268 flight-26269 flight-26271 flight-26273 flight-26274 flight-26275 flight-26276 flight-26277 flight-26278 flight-26279 flight-26280 flight-26281 flight-26282 flight-26283 flight-26284 flight-26285 flight-26286 flight-26287 flight-26289 flight-26293 flight-26301 flight-26302 flight-26303 flight-26304 flight-26305 flight-26306 flight-26307 flight-26309 flight-26317 flight-26318 flight-26319 flight-26320 flight-26321 flight-26322 flight-26323 flight-26324 flight-26325
Ian Campbell [Fri, 25 Apr 2014 16:11:08 +0000 (17:11 +0100)]
ts-xen-build: collect built seabios and ovmf versions

The seabios path was incorrect and ovmf was not present.

Take the opportunity to rename collectversion_qemu to collectversions.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
11 years agocri-common: Only use git proxy for git, http and https URLs
Ian Campbell [Fri, 25 Apr 2014 15:15:20 +0000 (16:15 +0100)]
cri-common: Only use git proxy for git, http and https URLs

For testing I had ap-fetch-version-old returning a file:// URL to a local repo.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-debian-hvm-install: increase boot_timeout to 200s flight-26093 flight-26094 flight-26095 flight-26096 flight-26097 flight-26098 flight-26099 flight-26100 flight-26101 flight-26102 flight-26103 flight-26104 flight-26105 flight-26106 flight-26107 flight-26110 flight-26111 flight-26112 flight-26113 flight-26114 flight-26115 flight-26117 flight-26118 flight-26119 flight-26120 flight-26121 flight-26122 flight-26123 flight-26128 flight-26144 flight-26159 flight-26175 flight-26197 flight-26205 flight-26227 flight-26232 flight-26262 flight-26292 flight-26314 flight-26326 flight-26339 flight-26343 flight-26350 flight-26358 flight-26372 flight-26459 flight-26483 flight-26506 flight-26551 flight-26664 flight-26885 flight-26932 flight-26947 flight-26970 flight-26994 flight-27005 flight-27021 flight-27035 flight-27058 flight-27069 flight-27085 flight-27115 flight-27140 flight-27150
Ian Campbell [Tue, 29 Apr 2014 12:16:34 +0000 (13:16 +0100)]
ts-debian-hvm-install: increase boot_timeout to 200s

Tianocore can be slow to post, especially on large guests. We've been hitting
the 100s timeout on lake-frog and fire-frog. Even when succeeding the duration
is 90s+.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agoproduction-config: Update di version again.
Ian Campbell [Mon, 28 Apr 2014 07:55:06 +0000 (08:55 +0100)]
production-config: Update di version again.

This contains the current version for amd64 and i386 (actually the same as
yesterday) which picks up the latest point release but for armhf this is a link
to the old (2013-12-12) image since armhf uses a backports kernel and is
unaffected by the point release but does seem to have a deendency on some newer
infrastructure (depmod et al, I think) which needs sorting out.

11 years agoproduction-config: Update to newer debian installer snapshot.
Ian Campbell [Sun, 27 Apr 2014 11:01:12 +0000 (12:01 +0100)]
production-config: Update to newer debian installer snapshot.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agocrontab: Add a daily run of the libvirt branch.
Ian Campbell [Fri, 25 Apr 2014 09:07:56 +0000 (10:07 +0100)]
crontab: Add a daily run of the libvirt branch.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agoAdd libvirt build and test jobs.
Ian Campbell [Wed, 23 Apr 2014 10:07:01 +0000 (11:07 +0100)]
Add libvirt build and test jobs.

I have run this through a "cr-daily-branch --real" and the push gate machinery
seem functional. The test cases run through to starting a guest which fails
because virsh support has not been implemented yet.

The libvirt.git initscript is horribly redhat specific, and the debian package
one is large and complex, so ts-libvirt-build inserts its own simple
initscript.

I have observed the autogen.sh phase taking 34 minutes on army (arm build
cluster) hence the surprisingly large timeout of an hour. The build took around
20 minutes on the same system, but I used a timeout of an hour anyway to be
safe.

The standalone wrapper is updated to handle path_libvirt in set-paths.

libvirt.git's autogen.sh involves initialising/cloning a git submodule, which
doesn't use osstest's git cache and introduces unpredicability into what is
built. Therefore ap-* are taught about a new libvirt-gnulib tree (prefixed
libvirt incase we end up with other users of gnulib in the future). However
this doesn't use the usual push gate mechanism, since this was deemed to be
overkill and just always uses the tip of gnulib. The results are recorded
though so the bisector can still operate over this tree in the event of
breakage.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Cc: Dario Faggioli <dario.faggioli@citrix.com>
11 years agocrontab: Enable linux-next branch
Ian Campbell [Fri, 25 Apr 2014 08:37:13 +0000 (09:37 +0100)]
crontab: Enable linux-next branch

linux-next is published week days in the early hours GMT.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agocr-*, ap-*: Facilities for testing linux-next flight-25976 flight-25986 flight-25987 flight-25988 flight-25989 flight-25991 flight-25992 flight-25993 flight-25994 flight-25995 flight-25996 flight-25997 flight-25998 flight-25999 flight-26000 flight-26001 flight-26002 flight-26003 flight-26004 flight-26005 flight-26006 flight-26007 flight-26008 flight-26009 flight-26011 flight-26012 flight-26013 flight-26014 flight-26015 flight-26016 flight-26017 flight-26018 flight-26019 flight-26021 flight-26022 flight-26023 flight-26024 flight-26025 flight-26026 flight-26027 flight-26029 flight-26030 flight-26031 flight-26032 flight-26034 flight-26035 flight-26036 flight-26037 flight-26038 flight-26039 flight-26040 flight-26041 flight-26043 flight-26045 flight-26046 flight-26048 flight-26049 flight-26051 flight-26054 flight-26055 flight-26056 flight-26057 flight-26058 flight-26059 flight-26060 flight-26061 flight-26062 flight-26063 flight-26065 flight-26066 flight-26067 flight-26068 flight-26070 flight-26071 flight-26072 flight-26074 flight-26075 flight-26076 flight-26077 flight-26078 flight-26079 flight-26080 flight-26081 flight-26083 flight-26084 flight-26085 flight-26087 flight-26088 flight-26089 flight-26090 flight-26091
Ian Jackson [Thu, 10 Apr 2014 17:20:18 +0000 (18:20 +0100)]
cr-*, ap-*: Facilities for testing linux-next

* Define the new branch's git source repo in ap-common.

* Provide a branch-settings file which disables running additional
  baseline tests, listing changesets in flight reports, pushing,
  and which arranges for the baseline revision for the flight
  report to be determined "late", ie after the to-be-tested
  versions of everything have been decided.

* When the baseline revision is to be determined "late", run
  the new script ap-fetch-version-baseline-late.  This is another
  collection of per-branch rules.  We introduce currently one
  per-branch rule, for linux-next:

* The baseline version for a test of linux-next is
    - the version tested by the most recent flight on the
      linux-linus branch;
    - provided that said version is an ancestor of the linux-next
      version under test;
    - otherwise we try an earlier linux-linus flight.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agosg-check-tested: support --git-ancestor-of
Ian Jackson [Thu, 10 Apr 2014 17:18:54 +0000 (18:18 +0100)]
sg-check-tested: support --git-ancestor-of

This will be used for the linux-next branch, whose baseline is the
most recently tested linux-linus which is an ancestor of the
being-tested linux-next.

We do not provide this for any VCS other than git.  Hopefully we will
never need to.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agosg-check-tested: add "use strict"
Ian Jackson [Thu, 10 Apr 2014 17:18:01 +0000 (18:18 +0100)]
sg-check-tested: add "use strict"

This revealed no bugs so no other changes needed.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-xen-install: nodhcp: Make idempotent flight-25959 flight-25964 flight-25974 flight-25975 flight-25977 flight-25978 flight-25979 flight-25980 flight-25981 flight-25982 flight-25983 flight-25984 flight-25985
Ian Jackson [Thu, 17 Apr 2014 15:06:05 +0000 (16:06 +0100)]
ts-xen-install: nodhcp: Make idempotent

If run more than once, this function would erroneously determine that
xenbr0 was the primary physical interface name and try to enroll it
into the bridge (also named xenbr0).

Instead, spot the "bridge_ports" line and use it to extract the
physical interface name.  Eliminate from consideration any interfaces
matching xenbr\d+.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Tested-by: Ian Campbell <ian.campbell@citrix.com>
11 years agots-xen-install: nodhcp: Invert sense of interfaces loop
Ian Jackson [Thu, 17 Apr 2014 15:05:02 +0000 (16:05 +0100)]
ts-xen-install: nodhcp: Invert sense of interfaces loop

We are going to want to process other kinds of lines too.  So change
this loop around by inverting the condition and not using "next".

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Tested-by: Ian Campbell <ian.campbell@citrix.com>
11 years agots-xen-install: nodhcp: Fix iface regexp
Ian Jackson [Thu, 17 Apr 2014 15:03:43 +0000 (16:03 +0100)]
ts-xen-install: nodhcp: Fix iface regexp

This regexp would never match because of the spurious $.  Remove the
$ and also the preceding unnecessary \s*.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Tested-by: Ian Campbell <ian.campbell@citrix.com>
11 years agots-hosts-allocate-Executive: improve debugging slightly
Ian Jackson [Wed, 23 Apr 2014 10:04:03 +0000 (11:04 +0100)]
ts-hosts-allocate-Executive: improve debugging slightly

I spotted a logfile where an allocation had failed (later worked OK)
with $allocatable=0 here.  Provide more info next time.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agocr-daily-branch: Print better message re lack of push
Ian Jackson [Thu, 17 Apr 2014 15:32:33 +0000 (16:32 +0100)]
cr-daily-branch: Print better message re lack of push

wantpush might be false because
 - OSSTEST_PUSH is false (only set to true in daily-cron-settings-real)
 - baseline untested (what we had here)
 - "$tree" is unknown (although I think this would fail elsewhere)
 - input and output revisions are the same

Print the message "Published tested tree is already up to date" only
if that's actually the case.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Tested-by: Ian Campbell <Ian.Campbell@citrix.com>
11 years agopreseed_base: drop obsolete references to NetGateway and NetNetmask
Ian Jackson [Thu, 17 Apr 2014 11:00:36 +0000 (12:00 +0100)]
preseed_base: drop obsolete references to NetGateway and NetNetmask

NetGateway and NetNetmask are not honoured (their lines in the preseed
file are commented out) and I'm not aware of anyone who sets them.
They have been there from the dawn of time.

Removing them gets rid of this warning (which appears twice)
 Use of uninitialized value in concatenation (.) or string at Osstest/Debian.pm line 432.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomg-allocate: Fix an "uninitialized value" warning
Ian Jackson [Thu, 17 Apr 2014 10:37:14 +0000 (11:37 +0100)]
mg-allocate: Fix an "uninitialized value" warning

If $ok is 0, $got_shareix could be undef but would still be used
for Info in the return value.  Initialise it to "x".

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
11 years agocr-publish-flight-logs: use ssh -o batchmode=yes flight-25950 flight-25951 flight-25956 flight-25957 flight-25958 flight-25960 flight-25961 flight-25962 flight-25963 flight-25965 flight-25966 flight-25967 flight-25968 flight-25969 flight-25970 flight-25971 flight-25972 flight-25973
Ian Jackson [Thu, 17 Apr 2014 10:29:38 +0000 (11:29 +0100)]
cr-publish-flight-logs: use ssh -o batchmode=yes

This avoids a problem (seen twice now) where NAT causes this
to hang and block everything.

Other invocations of rsync (eg in TestSupport) are all inside the
command-running machinery which imposes its own timeout.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-debian-hvm-install: fix local migration test
Wei Liu [Thu, 17 Apr 2014 13:59:06 +0000 (14:59 +0100)]
ts-debian-hvm-install: fix local migration test

Make sure there's enough free RAM for local migration test.

(Adjust $ram_lots to 5000 -iwj.)

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-debian-hvm-install: fix guest memory size
Wei Liu [Mon, 14 Apr 2014 11:04:34 +0000 (12:04 +0100)]
ts-debian-hvm-install: fix guest memory size

If the host has more than 5G free memory, change guest memory size to 5G
to catch any error that triggers by crossing 4G boundary. Otherwise
guest memory size is set to 768 MB (taken from ts-redhat-install) which
should be a safe value to run this testcase on every host.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport.pm: introduce host_get_free_memory
Wei Liu [Mon, 14 Apr 2014 11:03:49 +0000 (12:03 +0100)]
TestSupport.pm: introduce host_get_free_memory

... which returns the size of free memory in MB.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agostandalone: force an explicit default config flight-25929 flight-25932 flight-25935 flight-25937 flight-25940 flight-25943 flight-25946 flight-25949 flight-25952 flight-25954
Ian Campbell [Mon, 14 Apr 2014 10:31:15 +0000 (11:31 +0100)]
standalone: force an explicit default config

Some scripts (e.g. cri-args-hostlists) default to production-config instead of
the more expected ~/.xen-osstest/config. I keep forgetting this, so set the
more appropriate default in the helper script.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-xen-build: remove frobbing of xen.git/buildconfigs/enable-xen-config
Ian Campbell [Mon, 14 Apr 2014 10:31:00 +0000 (11:31 +0100)]
ts-xen-build: remove frobbing of xen.git/buildconfigs/enable-xen-config

This shouldn't be touched since osstest.git commit c1fba9810435 "import
enable-xen-config from xen.git, use for ts-kernel-build" and is just wrong
since xen.git 40305629dc48 "build: remove Linux kernel build integration."
since the file no longer exists.

Of the options which were being set here only CONFIG_HIGHPTE isn't already
handled by ts-kernel-build. I don't think CONFIG_HIGHPTE needs to be forced to
off these days (pvops kernels do it automagically). If I'm wrong I'm sure
osstest will tell us...

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jan Beulich <JBeulich@suse.com>
11 years agosg-report-flight: report when flight finished
Ian Jackson [Mon, 7 Apr 2014 15:59:29 +0000 (16:59 +0100)]
sg-report-flight: report when flight finished

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agosg-report-flight: Add some flight information
Ian Jackson [Mon, 7 Apr 2014 15:51:47 +0000 (16:51 +0100)]
sg-report-flight: Add some flight information

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agosg-report-flight: show the job recipe and overall status
Ian Jackson [Mon, 7 Apr 2014 15:30:03 +0000 (16:30 +0100)]
sg-report-flight: show the job recipe and overall status

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agosg-report-flight: mkdir the per-job directories
Ian Jackson [Mon, 7 Apr 2014 15:29:34 +0000 (16:29 +0100)]
sg-report-flight: mkdir the per-job directories

This makes sure the per-job pages always get created.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport: logm: use show_abs_time
Ian Jackson [Mon, 7 Apr 2014 16:11:28 +0000 (17:11 +0100)]
TestSupport: logm: use show_abs_time

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoshow_abs_time: break out from sg-report-flight
Ian Jackson [Mon, 7 Apr 2014 16:03:53 +0000 (17:03 +0100)]
show_abs_time: break out from sg-report-flight

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-xen-build: bump "configure" timeout to 600s flight-25873 flight-25877 flight-25890 flight-25897 flight-25898 flight-25900 flight-25901 flight-25904 flight-25905 flight-25907 flight-25912 flight-25913 flight-25914 flight-25915 flight-25917 flight-25918 flight-25919 flight-25920 flight-25921 flight-25923 flight-25924 flight-25926 flight-25927 flight-25930 flight-25931 flight-25933 flight-25934 flight-25936 flight-25938 flight-25939 flight-25941 flight-25942 flight-25944 flight-25945 flight-25947 flight-25948
Ian Jackson [Wed, 9 Apr 2014 10:36:44 +0000 (11:36 +0100)]
ts-xen-build: bump "configure" timeout to 600s

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoiso_create_genisoimage: Honour $isotimeout flight-25827 flight-25835 flight-25841 flight-25851 flight-25857 flight-25863 flight-25864 flight-25865 flight-25866 flight-25867 flight-25868 flight-25874 flight-25875 flight-25876 flight-25878 flight-25879 flight-25880 flight-25881 flight-25882 flight-25883 flight-25884 flight-25885 flight-25887 flight-25888 flight-25889 flight-25891 flight-25892 flight-25893 flight-25894 flight-25895 flight-25896
Ian Jackson [Wed, 9 Apr 2014 10:20:22 +0000 (11:20 +0100)]
iso_create_genisoimage: Honour $isotimeout

Fixes regression introduced in 20387acf, where the newly-moved code
used a hardwired value of 60 rather than the parameter provided for
the purpose.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoSwitch back to genisoimage flight-25809 flight-25817 flight-25822
Wei Liu [Mon, 7 Apr 2014 11:34:41 +0000 (12:34 +0100)]
Switch back to genisoimage

Xorriso is too slow. This is a patch to modify all related sites to use
genisoimage.

This effectively reverts the introduction of iso_create_xorriso and
introduces iso_create_genisoimage.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
11 years agots-redhat-install: use double quote in paths
Wei Liu [Sat, 5 Apr 2014 19:01:26 +0000 (20:01 +0100)]
ts-redhat-install: use double quote in paths

Otherwise variables are not substituted.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
11 years agots-redhat-install: copy_iso_content_to_dir -> iso_copy_content_from_image
Wei Liu [Fri, 4 Apr 2014 10:31:13 +0000 (11:31 +0100)]
ts-redhat-install: copy_iso_content_to_dir -> iso_copy_content_from_image

I renamed the function and missed this callsite.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
11 years agomake-flight: OVMF test flight
Wei Liu [Fri, 21 Mar 2014 12:12:27 +0000 (12:12 +0000)]
make-flight: OVMF test flight

Output of following runes attached:
  ./standalone-reset
  ./mg-show-flight-runvars standalone | grep ovmf | sed 's/[ \t]*$//'

test-amd64-amd64-xl-qemuu-ovmf-amd64     all_hostflags             arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test,hvm
test-amd64-i386-xl-qemuu-ovmf-amd64      all_hostflags             arch-i386,arch-xen-amd64,suite-wheezy,purpose-test,hvm
test-amd64-amd64-xl-qemuu-ovmf-amd64     arch                      amd64
test-amd64-i386-xl-qemuu-ovmf-amd64      arch                      i386
test-amd64-amd64-xl-qemuu-ovmf-amd64     buildjob                  build-amd64
test-amd64-i386-xl-qemuu-ovmf-amd64      buildjob                  build-i386
test-amd64-amd64-xl-qemuu-ovmf-amd64     device_model_version      qemu-xen
test-amd64-i386-xl-qemuu-ovmf-amd64      device_model_version      qemu-xen
build-amd64                              enable_ovmf               true
build-armhf                              enable_ovmf               true
build-i386                               enable_ovmf               true
test-amd64-amd64-xl-qemuu-ovmf-amd64     kernbuildjob              build-amd64-pvops
test-amd64-i386-xl-qemuu-ovmf-amd64      kernbuildjob              build-i386-pvops
test-amd64-amd64-xl-qemuu-ovmf-amd64     kernkind                  pvops
test-amd64-i386-xl-qemuu-ovmf-amd64      kernkind                  pvops
test-amd64-amd64-xl-qemuu-ovmf-amd64     ovmf_image                debian-7.2.0-amd64-CD-1.iso
test-amd64-i386-xl-qemuu-ovmf-amd64      ovmf_image                debian-7.2.0-amd64-CD-1.iso
test-amd64-amd64-xl-qemuu-ovmf-amd64     toolstack                 xl
test-amd64-i386-xl-qemuu-ovmf-amd64      toolstack                 xl
test-amd64-amd64-xl-qemuu-ovmf-amd64     xenbuildjob               build-amd64
test-amd64-i386-xl-qemuu-ovmf-amd64      xenbuildjob               build-amd64

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agosg-run-job: OVMF job
Wei Liu [Tue, 10 Dec 2013 11:56:41 +0000 (11:56 +0000)]
sg-run-job: OVMF job

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoIntroduce ts-debian-hvm-install
Wei Liu [Wed, 4 Dec 2013 17:19:32 +0000 (17:19 +0000)]
Introduce ts-debian-hvm-install

This is debian hvm guest test case. It resembles ts-redhat-install:
1. prepare a auto install CD
2. install debian hvm guest, currently using OVMF
3. test if the guest is up

The installtion CD is also bootable with seabios.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoDebian.pm: factor out preseed_base
Wei Liu [Wed, 11 Dec 2013 13:26:22 +0000 (13:26 +0000)]
Debian.pm: factor out preseed_base

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport.pm: introduce iso_copy_content_from_image
Wei Liu [Wed, 2 Apr 2014 18:04:59 +0000 (19:04 +0100)]
TestSupport.pm: introduce iso_copy_content_from_image

... which returns a string of commands to pass into target_cmd_root.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport.pm: introduce iso_gen_flags_basic
Wei Liu [Wed, 2 Apr 2014 18:01:39 +0000 (19:01 +0100)]
TestSupport.pm: introduce iso_gen_flags_basic

... which returns the flags that can be passed to xorriso to create a
bootable image (not EFI capable though).

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport.pm: introduce iso_create_empty
Wei Liu [Wed, 2 Apr 2014 17:58:01 +0000 (18:58 +0100)]
TestSupport.pm: introduce iso_create_empty

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-redhat-install: use $flight, $job and $gn when creating iso
Wei Liu [Fri, 21 Mar 2014 11:06:44 +0000 (11:06 +0000)]
ts-redhat-install: use $flight, $job and $gn when creating iso

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport.pm: introduce guest_create
Wei Liu [Wed, 2 Apr 2014 17:50:40 +0000 (18:50 +0100)]
TestSupport.pm: introduce guest_create

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport.pm: move rewrite_config_nocd to support library
Wei Liu [Wed, 2 Apr 2014 17:49:27 +0000 (18:49 +0100)]
TestSupport.pm: move rewrite_config_nocd to support library

... and rename it to guest_editconfig_nocd.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport.pm: introduce iso_create_xorriso
Wei Liu [Wed, 2 Apr 2014 17:21:22 +0000 (18:21 +0100)]
TestSupport.pm: introduce iso_create_xorriso

... and convert ts-redhat-install to make use of it.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport.pm: add bios option to guest config file
Wei Liu [Thu, 5 Dec 2013 11:16:21 +0000 (11:16 +0000)]
TestSupport.pm: add bios option to guest config file

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agomake-flight: really drop the stray xend test from 4.5 onwards flight-25795 flight-25801 flight-25802 flight-25803 flight-25804 flight-25805 flight-25807 flight-25808 flight-25810 flight-25811 flight-25812 flight-25813 flight-25814 flight-25815 flight-25816 flight-25818 flight-25819 flight-25820 flight-25821 flight-25823 flight-25824 flight-25825 flight-25826 flight-25828 flight-25829 flight-25832 flight-25833 flight-25837 flight-25838 flight-25839 flight-25840 flight-25843 flight-25845 flight-25847 flight-25853 flight-25856 flight-25858 flight-25859
Ian Campbell [Fri, 4 Apr 2014 08:55:56 +0000 (09:55 +0100)]
make-flight: really drop the stray xend test from 4.5 onwards

The precedence rules meant the test was:
  ( xend enabled AND arch = i386 ) OR ( arch = amd64 )
rather than the intended:
  ( xend enabled ) AND ( arch = i386 OR arch = amd64 )

I've confirmed that a xen-instable flight no longer has test jobs with
toolstack == xend and that a Xen 4.4 flight is unchanged.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agostandalone-reset: fix typo
Wei Liu [Wed, 2 Apr 2014 19:12:30 +0000 (20:12 +0100)]
standalone-reset: fix typo

The script name is sa-init-db not sa-db-init.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agomake-flight: drop another stray xend test from 4.5 onwards flight-25731 flight-25736 flight-25741 flight-25742 flight-25744 flight-25745 flight-25746 flight-25748 flight-25749 flight-25750 flight-25751 flight-25752 flight-25753 flight-25754 flight-25756 flight-25757 flight-25758 flight-25760 flight-25762 flight-25763 flight-25764 flight-25765 flight-25766 flight-25767 flight-25768 flight-25770 flight-25771 flight-25772 flight-25773 flight-25775 flight-25776 flight-25777 flight-25778 flight-25779 flight-25781 flight-25783 flight-25785 flight-25789 flight-25790 flight-25791 flight-25792 flight-25793 flight-25794 flight-25796 flight-25797 flight-25798 flight-25799
Ian Campbell [Mon, 24 Mar 2014 11:50:11 +0000 (11:50 +0000)]
make-flight: drop another stray xend test from 4.5 onwards

I believe this configuration is covered for xl by the existing
test-amd64-i386-xl so test-amd64-i386-pv is dropped rather than replaced.

Changes for xen-4.4-testing flights:
$ diff -ub <(./mg-show-flight-runvars before44) <(./mg-show-flight-runvars after44)
$

Changes to unstable flights:
$ diff -ub <(./mg-show-flight-runvars beforeunstable) <(./mg-show-flight-runvars afterunstable) | grep -E '^[-+]'

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoCorrect crontab syntax to run most jobs at 30 minute intervals. flight-25691 flight-25699 flight-25700 flight-25701 flight-25702 flight-25703 flight-25704 flight-25705 flight-25706 flight-25707 flight-25708 flight-25709 flight-25710 flight-25711 flight-25712 flight-25713 flight-25714 flight-25715 flight-25716 flight-25717 flight-25718 flight-25719 flight-25720 flight-25721 flight-25722 flight-25723 flight-25724 flight-25725 flight-25726 flight-25727 flight-25728 flight-25729 flight-25730 flight-25732 flight-25733 flight-25734 flight-25735 flight-25737 flight-25738 flight-25739 flight-25740
Ian Campbell [Mon, 31 Mar 2014 11:01:22 +0000 (12:01 +0100)]
Correct crontab syntax to run most jobs at 30 minute intervals.

4/30 means 4-4/30, the correct (if counter intuitive) syntax is 4-59/30.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agostandalone mode convenience frontend flight-25616 flight-25618 flight-25619 flight-25620 flight-25621 flight-25622 flight-25623 flight-25624 flight-25625 flight-25626 flight-25627 flight-25628 flight-25629 flight-25630 flight-25631 flight-25632 flight-25633 flight-25634 flight-25635 flight-25636 flight-25637 flight-25638 flight-25639 flight-25640 flight-25641 flight-25642 flight-25643 flight-25644 flight-25645 flight-25646 flight-25647 flight-25648 flight-25649 flight-25650 flight-25651 flight-25652 flight-25653 flight-25655 flight-25656 flight-25657 flight-25658 flight-25659 flight-25660 flight-25661 flight-25662 flight-25663 flight-25665 flight-25666 flight-25667 flight-25668 flight-25669 flight-25670 flight-25671 flight-25672 flight-25673 flight-25675 flight-25676 flight-25677 flight-25678 flight-25679 flight-25680 flight-25681 flight-25682 flight-25683 flight-25684 flight-25685 flight-25686 flight-25687 flight-25689 flight-25690 flight-25692 flight-25693 flight-25694 flight-25695 flight-25696 flight-25697 flight-25698
Ian Campbell [Fri, 21 Mar 2014 09:58:00 +0000 (09:58 +0000)]
standalone mode convenience frontend

I can never remember all the various env vars which I can/should set so this
tool provides a command line veneer over the basics.

It also does some sanity checks for things which keep tripping me up
(inability to read apache logs, lack of ssh-agent) which fail in more or less
obscure ways.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
[ijc -- remove stray debug comment]

11 years agostandalone: refactor out some useful bits of standalone-reset
Ian Campbell [Fri, 21 Mar 2014 09:57:59 +0000 (09:57 +0000)]
standalone: refactor out some useful bits of standalone-reset

I sometimes want just these bits.

I went with a new "sa" prefix, but I left standalone-reset alone since it is
already reasonably well known.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-xen-build: Drop ability to build kernels
Ian Campbell [Thu, 20 Mar 2014 15:56:28 +0000 (15:56 +0000)]
ts-xen-build: Drop ability to build kernels

These are now all handled by ts-kernel-build.

We continue to specify KERNELS='' so that when building ancient versions of
Xen they won't try and build anything.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>