]> xenbits.xensource.com Git - osstest.git/log
osstest.git
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>
11 years agoUse ts-kernel-build for build-*-oldkern
Ian Campbell [Thu, 20 Mar 2014 15:56:27 +0000 (15:56 +0000)]
Use ts-kernel-build for build-*-oldkern

instead of using the kernel build integration in xen.git, which is going away.

There is no difference to the .config produced. No test jobs seem to rely on
these kernels so I have not worried about making the contents of dist be
identical (specifically the filenames under /boot have lost their -xen suffix)

Remove the now unused xen and qemu(u) tree/revision stuff from the jobs'
runvars. Add the appropriate kconfighow and kimagefile runvars and implement
an appropriate kconfighow handler to use the create_config.sh present in this
tree (the xen.git intergration called the same script)

If the 2.6.18 build starts to fail, xen-unstable pushes will be broken
until they are fixed, as before.  Previously such a build failure might be due
to changes in xen.git so that was slightly justifiable.  But in practice this
is quite rare.  This situation, while anomalous, is tolerable.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoimport enable-xen-config from xen.git, use for ts-kernel-build
Ian Campbell [Thu, 20 Mar 2014 15:56:26 +0000 (15:56 +0000)]
import enable-xen-config from xen.git, use for ts-kernel-build

I plan to remove it from xen.git. Take the version from a03984e7bcdf which
hasn't changed since 8dedf6431393 in 2010.

Update ts-kernel-build to not require xen.git.

config_intree_buildconfigs was unused so remove it.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
[ijc -- reduce timeout to 100, wrap log line]

11 years agomfi-common: remove xen_kernels runvar from build-*-pvops
Ian Campbell [Thu, 20 Mar 2014 15:56:25 +0000 (15:56 +0000)]
mfi-common: remove xen_kernels runvar from build-*-pvops

ts-kernel-build does not use this.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoCapture "lspci -vvv" and "lspci -tv" output.
Ian Campbell [Thu, 20 Mar 2014 10:49:07 +0000 (10:49 +0000)]
Capture "lspci -vvv" and "lspci -tv" output.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
[ijc -- added "lspci -tv" and adjusted changelog to match]

11 years agomake-flight: only test xl in unstable
Ian Campbell [Wed, 12 Mar 2014 16:47:44 +0000 (16:47 +0000)]
make-flight: only test xl in unstable

xend has been deprecated for enough releases now, lets focus on xl and/or make
space to add libvirt tests.

I have verified that a xen-4.4-testing flight does not change, while a
xen-unstable flight changes in the following expected ways:
  - build-.*-xend jobs are dropped
  - test-.*-xend-.* jobs become test-.*-xl-.*, the corresponding toolstack
    runvar changes to xl and the buildjob runvar loses its -xen suffix. This
    affects:
     - test-amd64-i386-xend-qemut-winxpsp3
     - test-amd64-i386-xend-winxpsp3
  - a new job test-amd64-i386-xl-qemuu-winxpsp3 is added, previously the
    non-sensical test-amd64-i386-xend-qemuu-winxpsp3 was suppressed by
    job_create_test_filter_callback.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoRevert "allow.all: Tolerate all build-*-oldkern failures" flight-25609 flight-25610 flight-25612 flight-25613 flight-25614 flight-25615 flight-25617
Ian Jackson [Wed, 19 Mar 2014 15:20:38 +0000 (15:20 +0000)]
Revert "allow.all: Tolerate all build-*-oldkern failures"

The network braindamage has been worked around in the firewall.

This reverts commit b4fdc54eac9ed82e0e056573a11f3ad106f97c67.

11 years agoAllow per-host TFTP setup flight-25569 flight-25574 flight-25594 flight-25607 flight-25608 flight-25611
Ian Campbell [Tue, 18 Mar 2014 14:56:51 +0000 (14:56 +0000)]
Allow per-host TFTP setup

I run osstest against machines which are in both the XenServer and XenClient
administrative domains, and hence which have different TFTP servers, accessible
locally via different NFS mounted paths.

Make it possible to specify various bits of TFTP path via ~/.xen-osstest/config
by introducing the idea of Tftp "scope" and allowing that to be configurable on
a per-host basis. For example I have:
  TftpDefaultScope xenserver

  TftpPath_xenserver /usr/groups/netboot/
  TftpPxeDir_xenserver pxelinux.cfg/

  TftpPath_xenclient /home/xc_tftpboot/pxe/
  TftpPxeDir_xenclient /
  TftpPxeTemplates_xenclient %ipaddrhex%/pxelinux.cfg

  HostProp_marilith-n4_TftpScope xenclient

and I am now able to install on both cam-st16 (a xenserver world test box) and
marilith-n4 (an osstest machine hosted in the xenclient network) without
messing around with my configuration every time. I ran build-$ARCH,
build-$ARCH-pvops and test-$ARCH-$ARCH-xl in both cases.

Per-host Tftp settings are now in the $ho->{Tftp} hash instead of in $c.

$c{TftpHost} is unused -- remove the setting of its default.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoDebian: die if we are unable to find the override kernel deb
Ian Campbell [Tue, 18 Mar 2014 10:22:56 +0000 (10:22 +0000)]
Debian: die if we are unable to find the override kernel deb

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agostandalone: add blessing to flights table.
Ian Campbell [Wed, 22 Jan 2014 16:39:28 +0000 (16:39 +0000)]
standalone: add blessing to flights table.

sg-check-tested wants this to exist.

I haven't implemented Osstest/JobDB/Standalone::job_ensure_started, which
should transition from 'contructing' to 'running' because I'm not hitting that
path.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agocri-args-hostlists: Allow environment to control OSSTEST_CONFIG
Ian Campbell [Wed, 22 Jan 2014 16:39:23 +0000 (16:39 +0000)]
cri-args-hostlists: Allow environment to control OSSTEST_CONFIG

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport: Don't use git proxy for non-git:// or http urls.
Ian Campbell [Mon, 17 Mar 2014 14:58:59 +0000 (14:58 +0000)]
TestSupport: Don't use git proxy for non-git:// or http urls.

After this I was stymied by ssh host keys and other roadblocks and just pushed
the branch to my xenbits tree but I think this is still correct as far as it
goes.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoAllow forcing the use of current osstest HEAD for branch=osstest flight-25561 flight-25563 flight-25564 flight-25565 flight-25566 flight-25567 flight-25568 flight-25570 flight-25571
Ian Campbell [Tue, 11 Feb 2014 13:31:43 +0000 (13:31 +0000)]
Allow forcing the use of current osstest HEAD for branch=osstest

Otherwise cr-daily-branch expects $HOME/testing.git to exist and will
git-reset it etc, which is rather annoying when in standalone mode...

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-hosts-allocate-Standalone: abort if the host to use has changed
Ian Campbell [Wed, 12 Feb 2014 11:10:51 +0000 (11:10 +0000)]
ts-hosts-allocate-Standalone: abort if the host to use has changed

When a job has been run once then the selected host is stored in a runvar and
used from then on. This means that if you try to run on a different host (by
changing the config or by changing OSSTEST_HOST_HOST) then you may be
surprised when things happen to the original host and not the new one.

Abort when this is detected.

Changing host requires you to run:
    ./cs-adjust-flight -v $flight runvar-del $job host
$flight = standalone by default
$job = test-x-y-z or build-x etc
host = the literal string host (not either of the host names)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agocs-adjust-flight: fix runvar-del
Ian Campbell [Tue, 11 Feb 2014 16:49:29 +0000 (16:49 +0000)]
cs-adjust-flight: fix runvar-del

Missing $.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agocr-daily-branch: Make it possible to suppress the forcing of a baseline test
Ian Campbell [Mon, 10 Feb 2014 13:36:10 +0000 (13:36 +0000)]
cr-daily-branch: Make it possible to suppress the forcing of a baseline test

This is undesirable (most of the time) in a standalone environment, where you
are most likely to be interested in the current version and not historical
comparissons.

Not sure there isn't a better way.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoCXFabric: Use a vif script hook to (de)register guest mac address flight-25361 flight-25366 flight-25371 flight-25372 flight-25373 flight-25374 flight-25375 flight-25376 flight-25377 flight-25378 flight-25379 flight-25380 flight-25381 flight-25382 flight-25383 flight-25384 flight-25385 flight-25386 flight-25387 flight-25388 flight-25389 flight-25390 flight-25391 flight-25392 flight-25393 flight-25394 flight-25395 flight-25396 flight-25397 flight-25398 flight-25399 flight-25400 flight-25401 flight-25402 flight-25403 flight-25404 flight-25405 flight-25406 flight-25410 flight-25411 flight-25413 flight-25454 flight-25476 flight-25477 flight-25478 flight-25479 flight-25480 flight-25481 flight-25482 flight-25483 flight-25484 flight-25485 flight-25486 flight-25487 flight-25488 flight-25489 flight-25490 flight-25491 flight-25492 flight-25493 flight-25494 flight-25495 flight-25496 flight-25497 flight-25498 flight-25499 flight-25500 flight-25501 flight-25502 flight-25503 flight-25504 flight-25505 flight-25506 flight-25542 flight-25543 flight-25544 flight-25545 flight-25546 flight-25547 flight-25548 flight-25549 flight-25550 flight-25551 flight-25552 flight-25553 flight-25554 flight-25555 flight-25556 flight-25557 flight-25558 flight-25559 flight-25560 flight-25562
Ian Campbell [Thu, 6 Mar 2014 14:12:45 +0000 (14:12 +0000)]
CXFabric: Use a vif script hook to (de)register guest mac address

Since mac table is apparently small this avoids filling it with mac addresses
which may never get used.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agoRevert "CXFabric: Register more MAC addresses with the fabric"
Ian Jackson [Thu, 6 Mar 2014 12:36:23 +0000 (12:36 +0000)]
Revert "CXFabric: Register more MAC addresses with the fabric"

This reverts commit 9be39d3917d33abeba14f7f282e0b896ebc25ab7.

It turns out that the Calxeda fabric has a limit on the number of
addresses, which this exceeds.  For now, go back to 8.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agomg-allocate: allow alternatives flight-25355 flight-25356 flight-25358
Ian Jackson [Fri, 21 Feb 2014 15:34:24 +0000 (15:34 +0000)]
mg-allocate: allow alternatives

11 years agomg-allocate: fix typo in message
Ian Jackson [Fri, 21 Feb 2014 13:44:39 +0000 (13:44 +0000)]
mg-allocate: fix typo in message

11 years agots-hosts-allocate-Executive: Compress debug output
Ian Jackson [Fri, 21 Feb 2014 13:31:39 +0000 (13:31 +0000)]
ts-hosts-allocate-Executive: Compress debug output

Send the voluminous host allocation debug output to a compressed
logfile "hosts-allocate.debug.gz".  Also send a copy of the logm
output to the debug log, by manipulating $logm_handle.

Remove the bodge which unshifted -D onto the arguments, and then
parsed it.  Now the script takes no options.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoTestSupport: logm: allow $logm_handle to be an aref
Ian Jackson [Fri, 21 Feb 2014 13:30:29 +0000 (13:30 +0000)]
TestSupport: logm: allow $logm_handle to be an aref

If $logm_handle is an array reference, iterate over it.  This allows
calling code to duplicate the messages.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoExecutive: support DebugFh xparam to alloc_resources
Ian Jackson [Fri, 21 Feb 2014 13:27:49 +0000 (13:27 +0000)]
Executive: support DebugFh xparam to alloc_resources

This redirects some of the more verbose output (the json dumps)
elsewhere.  If DebugFh is not set, this output is suppressed.

ts-hosts-allocate-Executive provides DebugFh pointing to its DEBUG fh.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agostandalone-reset: actually honour '-f' option
Dario Faggioli [Wed, 29 Jan 2014 14:32:35 +0000 (14:32 +0000)]
standalone-reset: actually honour '-f' option

standalone-reset's usage says:

  usage: ./standalone-reset [<options>] [<branch> [<xenbranch> [<buildflight>]]]
   branch and xenbranch default, separately, to xen-unstable
  options:
   -f<flight>     generate flight "flight", default is "standalone"

but then there is no place where '-f' is processed, and hence
no real way to pass a specific flight name to make-flight.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoREADME: Add some core concepts and terminology
Ian Campbell [Mon, 20 Jan 2014 13:20:10 +0000 (13:20 +0000)]
README: Add some core concepts and terminology

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoCXFabric: Register more MAC addresses with the fabric flight-25346 flight-25347 flight-25348 flight-25349 flight-25350 flight-25351 flight-25352 flight-25353 flight-25354 flight-25357 flight-25359 flight-25360 flight-25362 flight-25363 flight-25364 flight-25365 flight-25367 flight-25368 flight-25369 flight-25370
Ian Campbell [Sun, 2 Mar 2014 10:22:44 +0000 (10:22 +0000)]
CXFabric: Register more MAC addresses with the fabric

I've seen 0x20 used in a single flight. Register up to 0x40.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agocr-for-branches: Branch for Xen 4.4 flight-25332 flight-25335 flight-25336 flight-25337 flight-25339 flight-25340 flight-25341 flight-25342 flight-25343 flight-25344 flight-25345
Ian Jackson [Fri, 21 Feb 2014 16:44:15 +0000 (16:44 +0000)]
cr-for-branches: Branch for Xen 4.4

Process the new branches xen-4.4-testing and qemu-upstream-4.4-testing.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-xen-build: Set LIBLEAFDIR_x86_64
Ian Jackson [Fri, 21 Feb 2014 18:27:12 +0000 (18:27 +0000)]
ts-xen-build: Set LIBLEAFDIR_x86_64

Xen 4.1 puts things in /usr/lib64 otherwise.  This is wrong for
Debian, and does not work at all on wheezy.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-kernel-build: Disable "Brocade BFA Fibre Channel Support"
Ian Campbell [Mon, 24 Feb 2014 09:50:57 +0000 (09:50 +0000)]
ts-kernel-build: Disable "Brocade BFA Fibre Channel Support"

This driver is broken on ARM:
    ERROR: "__bad_udelay" [drivers/scsi/bfa/bfa.ko] undefined!

I've taken the lazy way out and disabled it on all platforms. I think it isn't
especially likely that any of the current osstest hosts are using Fibre
Channel right now. The code to enable it came from a big batch addition of
drivers in 451f39c6149e.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoallow.all: Tolerate all build-*-oldkern failures flight-25323 flight-25328 flight-25333 flight-25334
Ian Jackson [Thu, 27 Feb 2014 15:00:11 +0000 (15:00 +0000)]
allow.all: Tolerate all build-*-oldkern failures

We are getting very many of these due to network braindamage.
For now, tolerate them.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoExecutive.pm: Change default ControlDaemonHost flight-25154 flight-25174 flight-25251 flight-25266 flight-25267 flight-25268 flight-25269 flight-25270 flight-25271 flight-25272 flight-25273 flight-25274 flight-25275 flight-25276 flight-25278 flight-25281 flight-25284 flight-25286 flight-25287 flight-25289 flight-25290 flight-25291 flight-25292 flight-25293 flight-25295 flight-25296 flight-25297 flight-25298 flight-25299 flight-25300 flight-25302 flight-25303 flight-25305 flight-25306 flight-25307 flight-25308 flight-25309 flight-25311 flight-25312 flight-25314 flight-25315 flight-25317 flight-25318 flight-25319 flight-25321 flight-25322 flight-25324 flight-25325 flight-25326 flight-25327 flight-25329 flight-25330 flight-25331
Ian Jackson [Tue, 18 Feb 2014 18:58:12 +0000 (18:58 +0000)]
Executive.pm: Change default ControlDaemonHost

We are going to move these daemons from woking to the new osstest VM.
So use a DNS alias for now.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoproduction-config: do not set WebspaceUrl, WebspaceFile
Ian Jackson [Fri, 14 Feb 2014 18:16:29 +0000 (18:16 +0000)]
production-config: do not set WebspaceUrl, WebspaceFile

The defaults,
    $c{WebspaceFile} ||= "$ENV{'HOME'}/public_html/";
    $c{WebspaceUrl} ||= "http://$myfqdn/~$whoami/";
are adequate.  This means the configuration can work on both
woking and the new osstest VM.

Signed-off-by: Ian Jackson <iwj@osstest.cam.xci-test.com>
11 years agoproduction-config: authorise iwj@osstest key
Ian Jackson [Tue, 18 Feb 2014 18:05:53 +0000 (18:05 +0000)]
production-config: authorise iwj@osstest key

Just like the iwj@woking key.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoreadglobalconfig: change default DhcpWatchMethod
Ian Jackson [Tue, 18 Feb 2014 18:05:32 +0000 (18:05 +0000)]
readglobalconfig: change default DhcpWatchMethod

Use the TCP connection to woking, so that it works after we switch
to the new osstest VM.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoproduction-config: use /home/xc_tftpboot, not /tftpboot
Ian Jackson [Fri, 14 Feb 2014 19:09:32 +0000 (19:09 +0000)]
production-config: use /home/xc_tftpboot, not /tftpboot

This is available on both woking and on the new osstest VM.

Signed-off-by: Ian Jackson <iwj@osstest.cam.xci-test.com>
11 years agogit: Use "git foo" rather than "git-foo"
Ian Jackson [Fri, 14 Feb 2014 16:08:00 +0000 (16:08 +0000)]
git: Use "git foo" rather than "git-foo"

All of our machines now have "git foo" and have done for some time,
and some are going to not have "git-foo".

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-xen-build: Apply python workaround in wheezy too flight-25147 flight-25151 flight-25152 flight-25153 flight-25155 flight-25156 flight-25157 flight-25159 flight-25161 flight-25162 flight-25163 flight-25164 flight-25165 flight-25205 flight-25210 flight-25221 flight-25223 flight-25229 flight-25237 flight-25248 flight-25253 flight-25254 flight-25255 flight-25256 flight-25258 flight-25259 flight-25260 flight-25262 flight-25265
Ian Jackson [Wed, 19 Feb 2014 15:58:20 +0000 (15:58 +0000)]
ts-xen-build: Apply python workaround in wheezy too

Debian #693721 is not yet fixed.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoDo not attempt migration tests if the platform doesn't support it flight-25125 flight-25130 flight-25138 flight-25139 flight-25140 flight-25142 flight-25143 flight-25144 flight-25145 flight-25146 flight-25148 flight-25149 flight-25150
Ian Campbell [Wed, 12 Feb 2014 14:27:56 +0000 (14:27 +0000)]
Do not attempt migration tests if the platform doesn't support it

Doing so blocks the rest of the tests in the job, which may be able to
indepentently complete. So arrange for a ts-migrate-support-check test to run
and gate the remaining migration tests on that.

This relies on the xen patch "xl: suppress suspend/resume functions on
platforms which do not support it" to actually suppress migration support on
arm.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
This needs to go in after the Xen patch. Otherwise this new step will appear to
pass and then start to fail when the Xen patch is applied.

11 years agoConfigure the Calxeda fabric on host boot
Ian Campbell [Wed, 12 Feb 2014 10:30:49 +0000 (10:30 +0000)]
Configure the Calxeda fabric on host boot

The fabric on the Calxeda midway boxes (marilith-* in osstest) does not learn
mac address (at least not with the firmware we have, and with Calxeda folding
this seems unlikely to get fixed). This means that guests do not get network
connectivity unless their mac addresses explicitly registered with the fabric.

Registrations can be done with the bridge(8) tool from the iproute2 package
which unfortunately is only present in Jessie+ and not in Wheezy. So I have
done my own backport and placed it in $images/wheezy-iproute2 and arranged for
it to be installed along with the transitional iproute package (from the same
source) which is needed to satisfy various dependencies.

The registrations are ephemeral and need to be renewed on each reboot, so add
the necessary commands to rc.local during ts-xen-install.

This required leaking a certain amount of the implementation of select_ether.
Unless we want to do the bodge on every ts-guest-start, reboot, migrate etc
then this seems to be the best way.

test-armhf-armhf-xl now gets past ts-guest-start and as far as the migration
tests.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: hardcode 8 mac addresses and gate on equiv-marilith host flag
    simplify code to install iproute debs

11 years agofreebsd: switch to 10.0-RELEASE (20140116-r260789) flight-24886 flight-24902 flight-24919 flight-25005 flight-25043 flight-25069 flight-25106 flight-25111 flight-25115 flight-25121 flight-25122 flight-25126 flight-25127 flight-25128 flight-25131 flight-25132 flight-25133 flight-25134 flight-25135 flight-25136 flight-25137
Ian Jackson [Mon, 10 Feb 2014 12:09:51 +0000 (12:09 +0000)]
freebsd: switch to 10.0-RELEASE (20140116-r260789)

11 years agomake-flight: abolish special-casing of suite for armhf flight-24866 flight-24872 flight-24873 flight-24874 flight-24875 flight-24876 flight-24877 flight-24878 flight-24879 flight-24880 flight-24881 flight-24882 flight-24883 flight-24884 flight-24885 flight-24887 flight-24888 flight-24900 flight-24901 flight-24903 flight-24904 flight-24905 flight-24906 flight-24907 flight-24908 flight-24909 flight-24910 flight-24911 flight-24912 flight-24913 flight-24914 flight-24915 flight-24916 flight-24917 flight-24918 flight-24925 flight-24973 flight-25009 flight-25011 flight-25013 flight-25035 flight-25048 flight-25054 flight-25060 flight-25061 flight-25092 flight-25094 flight-25101 flight-25102 flight-25103 flight-25104 flight-25107 flight-25108 flight-25109 flight-25112 flight-25114 flight-25116 flight-25117 flight-25118 flight-25119 flight-25120
Ian Jackson [Thu, 12 Dec 2013 12:08:31 +0000 (12:08 +0000)]
make-flight: abolish special-casing of suite for armhf

Since the suite is now wheezy by default this is no longer needed.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoDebian: Switch to wheezy
Ian Jackson [Mon, 18 Nov 2013 16:04:45 +0000 (16:04 +0000)]
Debian: Switch to wheezy

This involves updating the d-i version too.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-guests-nbd-mirror: set "oldstyle=true" flight-24856 flight-24861 flight-24862 flight-24863 flight-24864 flight-24865 flight-24867 flight-24868 flight-24869 flight-24870
Ian Jackson [Mon, 10 Feb 2014 16:40:37 +0000 (16:40 +0000)]
ts-guests-nbd-mirror: set "oldstyle=true"

Newer NBDs (wheezy's and later) need a config option to say we're
using the old-style port-based addressing.  At some point we will
probably switch to using the new-style addressing, but not yet.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-guests-nbd-mirror: add checkaccessible test
Ian Jackson [Mon, 10 Feb 2014 16:40:22 +0000 (16:40 +0000)]
ts-guests-nbd-mirror: add checkaccessible test

If the NBD devices are not properly accessible on the client, bomb out
here rather than futilely starting a guest, and then timing out when
the guest fails to boot because it can't find its root fs.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-guests-nbd-mirror: purge old packages first
Ian Jackson [Mon, 10 Feb 2014 16:39:37 +0000 (16:39 +0000)]
ts-guests-nbd-mirror: purge old packages first

Purge any old nbd-client and nbd-server _before_ we make their config.

This only has any effect if the packages are installed before this
script starts, which isn't the case in any of the automatically-run
recipes.  But it can occur when the script is being tested by hand.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport: Suppress prompting by apt
Ian Jackson [Mon, 10 Feb 2014 16:38:57 +0000 (16:38 +0000)]
TestSupport: Suppress prompting by apt

Always set DEBIAN_PRIORITY=critical UCF_FORCE_CONFFOLD=y in
environment of apt, to suppress some prompts.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport: break out target_run_apt
Ian Jackson [Mon, 10 Feb 2014 16:34:52 +0000 (16:34 +0000)]
TestSupport: break out target_run_apt

We are going to add some environment variables to the apt invocation,
so centralise where this happens.  No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-xen-install: default the interface to the one in /etc/network/interfaces
Ian Jackson [Thu, 23 Jan 2014 18:30:47 +0000 (18:30 +0000)]
ts-xen-install: default the interface to the one in /etc/network/interfaces

The default was simply eth0.  This is the other piece of automatically
coping with the boot interface not being eth0.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-xen-install: nodhcp: restructure
Ian Jackson [Thu, 23 Jan 2014 17:50:02 +0000 (17:50 +0000)]
ts-xen-install: nodhcp: restructure

Move target_editfile_root to contain all the meat of the function.
This is useful because we're going to possibly want to read the input
interfaces file twice.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-host-install: set `IPAPPEND 2' (if interface isn't forced)
Ian Jackson [Thu, 23 Jan 2014 16:33:44 +0000 (16:33 +0000)]
ts-host-install: set `IPAPPEND 2' (if interface isn't forced)

This causes BOOTIF=<mac-address> to appear on command line.  This
makes d-i use that interface.  (See also Debian #615600.)

This is a better approach to interface name instability than setting
the force interface host property.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-kernel-build: force CONFIG_BLK_DEV_NBD=y
Ian Jackson [Thu, 23 Jan 2014 11:29:52 +0000 (11:29 +0000)]
ts-kernel-build: force CONFIG_BLK_DEV_NBD=y

Otherwise, with wheezy and Linux 3.4.77:

Jan 23 04:36:42 lake-frog nbd_client[4274]: Cannot open NBD: No such file or directory#012Please ensure the nbd module is loaded.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-xen-build-prep: avoid lvextend segfault (Debian #736173) with wheezy
Ian Jackson [Tue, 21 Jan 2014 18:53:13 +0000 (18:53 +0000)]
ts-xen-build-prep: avoid lvextend segfault (Debian #736173) with wheezy

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agocr-daily-branch: make sure we test the correct tree for Linux branches flight-24847 flight-24850 flight-24853 flight-24855 flight-24857 flight-24858 flight-24859 flight-24860
Ian Campbell [Tue, 11 Feb 2014 12:30:21 +0000 (12:30 +0000)]
cr-daily-branch: make sure we test the correct tree for Linux branches

These branches should test the specific Linux tree which they and so should
not apply the per-arch overrides which are only intended to be used to pick up
an already verified tested Linux branch for use when testing some other
non-linux branch.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agots-kernel-build: make sure CONFIG_PACKET is enabled flight-24791 flight-24798 flight-24806 flight-24807 flight-24808 flight-24809 flight-24811 flight-24812 flight-24813 flight-24816 flight-24817 flight-24818 flight-24819 flight-24821 flight-24830 flight-24839 flight-24841 flight-24846 flight-24848 flight-24849 flight-24851 flight-24852 flight-24854
Ian Campbell [Fri, 7 Feb 2014 09:57:22 +0000 (09:57 +0000)]
ts-kernel-build: make sure CONFIG_PACKET is enabled

It is required by the dhcp client and is not present in the arm
multi_v7_defconfig.

Also stash the config file in the build results for easy reference, it is
already in kerndist.tar.gz but that's a 30+M download compared with a few tens
of K.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agocr-daily-branch: Limit "people who touched" listing flight-24745 flight-24754 flight-24755 flight-24756 flight-24757 flight-24758 flight-24759 flight-24760 flight-24761 flight-24762 flight-24763 flight-24764 flight-24765 flight-24766 flight-24767 flight-24770 flight-24771 flight-24772 flight-24774 flight-24775 flight-24777 flight-24778 flight-24779 flight-24780 flight-24781 flight-24782 flight-24783 flight-24784 flight-24785 flight-24786 flight-24787 flight-24788 flight-24789 flight-24790 flight-24792 flight-24793 flight-24796 flight-24797 flight-24799 flight-24800 flight-24801 flight-24802 flight-24803 flight-24804
Ian Jackson [Wed, 5 Feb 2014 16:55:51 +0000 (16:55 +0000)]
cr-daily-branch: Limit "people who touched" listing

Sometimes this can be very large, which can result in the results
postings getting discarded.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoEnable armhf tests for linux-linus branch flight-24735 flight-24738 flight-24740 flight-24741
Ian Campbell [Wed, 5 Feb 2014 16:46:19 +0000 (16:46 +0000)]
Enable armhf tests for linux-linus branch

Rather than whitelisting interesting branches, instead blacklist the hisotrical
branches which are not interesting to armhf, ensuring that any new branches
will pick up armhf automatically.

This creates the expected build-armhf, build-armhf-pvops and
test-armhf-armhf-xl jobs for the linux-linus branch.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agomake-flight: refactor test_matrix_do_one flight-24468 flight-24472 flight-24475 flight-24476 flight-24477 flight-24478 flight-24479 flight-24480 flight-24482 flight-24483 flight-24484 flight-24485 flight-24486 flight-24487 flight-24488 flight-24489 flight-24490 flight-24491 flight-24492 flight-24493 flight-24494 flight-24495 flight-24496 flight-24497 flight-24498 flight-24500 flight-24501 flight-24502 flight-24503 flight-24504 flight-24505 flight-24506 flight-24507 flight-24508 flight-24509 flight-24511 flight-24512 flight-24513 flight-24515 flight-24516 flight-24517 flight-24519 flight-24520 flight-24522 flight-24523 flight-24524 flight-24525 flight-24526 flight-24527 flight-24528 flight-24529 flight-24531 flight-24532 flight-24533 flight-24535 flight-24536 flight-24537 flight-24538 flight-24540 flight-24542 flight-24544 flight-24546 flight-24553 flight-24568 flight-24569 flight-24570 flight-24571 flight-24572 flight-24589 flight-24590 flight-24591 flight-24592 flight-24593 flight-24594 flight-24595 flight-24596 flight-24597 flight-24598 flight-24599 flight-24603 flight-24604 flight-24605 flight-24608 flight-24609 flight-24610 flight-24611 flight-24612 flight-24613 flight-24616 flight-24617 flight-24618 flight-24622 flight-24627 flight-24628 flight-24629 flight-24630 flight-24632 flight-24634 flight-24635 flight-24637 flight-24639 flight-24640 flight-24641 flight-24643 flight-24644 flight-24647 flight-24648 flight-24649 flight-24650 flight-24651 flight-24652 flight-24653 flight-24654 flight-24655 flight-24656 flight-24660 flight-24661 flight-24662 flight-24663 flight-24664 flight-24665 flight-24666 flight-24667 flight-24668 flight-24669 flight-24670 flight-24671 flight-24672 flight-24673 flight-24674 flight-24675 flight-24676 flight-24677 flight-24678 flight-24679 flight-24680 flight-24681 flight-24682 flight-24683 flight-24684 flight-24685 flight-24686 flight-24687 flight-24689 flight-24690 flight-24691 flight-24692 flight-24693 flight-24694 flight-24695 flight-24696 flight-24697 flight-24698 flight-24699 flight-24700 flight-24701 flight-24702 flight-24703 flight-24706 flight-24707 flight-24708 flight-24709 flight-24710 flight-24711 flight-24712 flight-24713 flight-24715 flight-24716 flight-24717 flight-24718 flight-24719 flight-24720 flight-24721 flight-24722 flight-24723 flight-24724 flight-24725 flight-24727 flight-24728 flight-24729 flight-24730 flight-24733 flight-24734 flight-24737 flight-24739 flight-24742 flight-24743 flight-24744 flight-24746 flight-24747 flight-24748 flight-24749 flight-24750 flight-24751 flight-24752
Ian Campbell [Tue, 21 Jan 2014 11:52:54 +0000 (11:52 +0000)]
make-flight: refactor test_matrix_do_one

Pull some test creation out into their own subdirectories. This allows the
total level of indentation to be reduced.

It also allows us to invert the pre-condition test and simply return at the
top of the subroutine, which further reduces indentation.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomfi-common: onetoolstack does not vary for a given $xenbranch
Ian Campbell [Mon, 20 Jan 2014 17:58:33 +0000 (17:58 +0000)]
mfi-common: onetoolstack does not vary for a given $xenbranch

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: Refactor test matrix iteration into mfi-common
Ian Campbell [Mon, 20 Jan 2014 17:56:28 +0000 (17:56 +0000)]
make-flight: Refactor test matrix iteration into mfi-common

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: reduce indentation in test_matrix_do_one
Ian Campbell [Mon, 20 Jan 2014 17:52:10 +0000 (17:52 +0000)]
make-flight: reduce indentation in test_matrix_do_one

Now that the body of the multiple nested loops is in a function it doesn't need
to be so deeply indented. This wasn't done in the previous patch for clarity.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: Separate matrix iteration from test job creation
Ian Campbell [Mon, 20 Jan 2014 17:48:35 +0000 (17:48 +0000)]
make-flight: Separate matrix iteration from test job creation

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: refactor test case filter over $branch
Ian Campbell [Mon, 20 Jan 2014 17:47:15 +0000 (17:47 +0000)]
make-flight: refactor test case filter over $branch

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: refactor job_create_test into mfi-common
Ian Campbell [Mon, 20 Jan 2014 17:20:57 +0000 (17:20 +0000)]
make-flight: refactor job_create_test into mfi-common

Now that it uses a callback it can trivially be moved to mfi-common

Arguably the setting of *buildjob could also be a callback, but my intended use
case doesn't need that and it seems reasonable enough for now that users of the
common job_create_test also use the common create_build_jobs (or produce
something sufficiently similar).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: refactor job_create_test filters
Ian Campbell [Mon, 20 Jan 2014 17:18:22 +0000 (17:18 +0000)]
make-flight: refactor job_create_test filters

This will allow job_create_test to be moved mfi-common.

No (intentional) change to the set of jobs which are created.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: Remove md5sum based job filtering
Ian Campbell [Mon, 20 Jan 2014 16:48:11 +0000 (16:48 +0000)]
make-flight: Remove md5sum based job filtering

JOB_MD5_PATTERN was intended to allow making randomly smaller flights, but is
not used in practice.

The filtering of the qemmu*-win jobs was intended to reduce the number of
combinations but ended up suppressing only:
  test-amd64-i386-xl-qemuu-winxpsp3-vcpus1
  test-amd64-i386-xl-qemuu-win7-amd64

Both of which seem useful so allow them to be enabled.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomfi-common: restrict scope of local vars in create_build_jobs
Ian Campbell [Mon, 20 Jan 2014 15:47:01 +0000 (15:47 +0000)]
mfi-common: restrict scope of local vars in create_build_jobs

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomfi-common: Allow caller of create_build_jobs to include/exclude xend builds
Ian Campbell [Mon, 20 Jan 2014 15:43:12 +0000 (15:43 +0000)]
mfi-common: Allow caller of create_build_jobs to include/exclude xend builds

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: Corect WANT_XEND test.

11 years agoRemove support for building the XCP kernel
Ian Campbell [Mon, 20 Jan 2014 15:38:26 +0000 (15:38 +0000)]
Remove support for building the XCP kernel

This kernel is well and truly dead.

I've left some of the general support for using other kernel types in place
even though it is now unused.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: refactor build job creation into mfi-common
Ian Campbell [Mon, 20 Jan 2014 15:32:27 +0000 (15:32 +0000)]
make-flight: refactor build job creation into mfi-common

This is pure code motion *except* I have aligned the backslash continuation
lines at the same time -- I was unable to resist doing so.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: Drop obsolete/unused xenrt_images variable.
Ian Campbell [Mon, 20 Jan 2014 15:12:24 +0000 (15:12 +0000)]
make-flight: Drop obsolete/unused xenrt_images variable.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: refactor common function "stripy" into helper library
Ian Campbell [Mon, 20 Jan 2014 15:07:18 +0000 (15:07 +0000)]
make-flight: refactor common function "stripy" into helper library

Will be useful for other make-flight variants.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: expand hard tabs
Ian Campbell [Mon, 20 Jan 2014 13:48:35 +0000 (13:48 +0000)]
make-flight: expand hard tabs

Run expand on the file.

Add an emacs magic var block disabling indent-tabs-mode and setting the sh
mode basic offset to 2 (which appears to be the common, but not universal,
case).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agostandalone: Correct arguments to JobDB flight_create flight-24458
Ian Campbell [Tue, 21 Jan 2014 16:44:29 +0000 (16:44 +0000)]
standalone: Correct arguments to JobDB flight_create

The real jobdb takes $intended and $branch in the other order, meaning that
the standalone db ends up with them backwards.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoRemove obsolete scripts. flight-24450 flight-24455 flight-24457 flight-24459 flight-24462 flight-24465 flight-24466 flight-24469 flight-24470 flight-24471 flight-24473 flight-24474
Ian Campbell [Mon, 20 Jan 2014 12:43:58 +0000 (12:43 +0000)]
Remove obsolete scripts.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agots-kernel-build: override kernel config from runvars flight-24352 flight-24357 flight-24363 flight-24364 flight-24365 flight-24366 flight-24367 flight-24368 flight-24369 flight-24370 flight-24371 flight-24373 flight-24375 flight-24376 flight-24377 flight-24378 flight-24379 flight-24380 flight-24381 flight-24382 flight-24383 flight-24384 flight-24385 flight-24386 flight-24387 flight-24388 flight-24389 flight-24390 flight-24391 flight-24392 flight-24393 flight-24394 flight-24395 flight-24396 flight-24397 flight-24399 flight-24400 flight-24401 flight-24402 flight-24403 flight-24404 flight-24405 flight-24406 flight-24407 flight-24408 flight-24409 flight-24410 flight-24411 flight-24412 flight-24413 flight-24414 flight-24415 flight-24416 flight-24417 flight-24418 flight-24419 flight-24420 flight-24421 flight-24422 flight-24423 flight-24424 flight-24425 flight-24426 flight-24427 flight-24428 flight-24429 flight-24431 flight-24433 flight-24434 flight-24435 flight-24436 flight-24437 flight-24438 flight-24439 flight-24440 flight-24441 flight-24442 flight-24443 flight-24444 flight-24445 flight-24446 flight-24447 flight-24448 flight-24449 flight-24452 flight-24453 flight-24454 flight-24456
Ian Campbell [Fri, 10 Jan 2014 14:58:32 +0000 (14:58 +0000)]
ts-kernel-build: override kernel config from runvars

Use this to build EXT4 into the kernel statically for armhf build to work
around the lack of guest initrd support on ARM at the moment.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agomake-flight: override the Debian guest suite on armhf flight-24346 flight-24353 flight-24354 flight-24355 flight-24356 flight-24358 flight-24359 flight-24360
Ian Campbell [Fri, 10 Jan 2014 11:41:47 +0000 (11:41 +0000)]
make-flight: override the Debian guest suite on armhf

We already override the host Debian suite but we need to override the guest too
(since armhf doesn't exist in squeeze).

Consolidate the Debian guest vars in to one place and add  debian_suite runvar
when appropriate.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agomake-flight: Adjust buildjob runvar for xend vs non-xend tests
Ian Campbell [Fri, 10 Jan 2014 09:55:10 +0000 (09:55 +0000)]
make-flight: Adjust buildjob runvar for xend vs non-xend tests

Currently we only do so for xenbuildjob which only contains the hypervisor and
not the tools, for those we need buildjob. In principal the xenbuildjob output
should be identical for both xend and non-xend builds, but we use a matching
set of consistency.

This adds a xend suffix to buildjob for exactly test-amd64-i386-pv,
test-amd64-amd64-pv, test-amd64-i386-xend-winxpsp3,
test-amd64-i386-xend-qemut-winxpsp3 which is the expected set of xend jobs.

11 years agodo not install xend for xl tests flight-24321 flight-24327 flight-24339
Ian Campbell [Fri, 20 Dec 2013 12:35:27 +0000 (12:35 +0000)]
do not install xend for xl tests

We need to check that xl works correctly when xend is not even installed (in
case we are subtly relying on some file which xend installs).

Therefore for xen 4.4 onwards never build xend in the default build job and
instead create two new build jobs (for i386 and amd64) with xend enabled.
Update the tests to use the correct xenbuildjob.

Tested only to the extent of running make-flight for xen-4.{2,3,4}-testing and
xen-unstable and observing that the jobs do not differ for 4.2 and 4.3 and the
4.4 and unstable have gained the new build-{i386,and64}-xend jobs and that the
relevant tests have switched their xenbuildjob runvar to have the suffix.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agocs-bisection-step: Use tree URLs from latest flight, not basis pass flight-24287 flight-24288 flight-24289 flight-24293 flight-24294 flight-24296 flight-24298 flight-24299 flight-24300 flight-24301 flight-24302 flight-24303 flight-24306 flight-24308 flight-24309 flight-24310 flight-24311 flight-24312 flight-24313 flight-24314 flight-24315 flight-24316 flight-24317 flight-24318 flight-24319 flight-24320 flight-24322 flight-24323 flight-24324 flight-24325 flight-24326 flight-24328 flight-24329 flight-24330 flight-24331 flight-24332 flight-24333 flight-24334 flight-24335 flight-24336 flight-24338 flight-24340 flight-24341 flight-24342 flight-24343 flight-24344 flight-24345 flight-24347 flight-24348 flight-24349 flight-24350 flight-24351
Ian Jackson [Mon, 6 Jan 2014 13:52:58 +0000 (13:52 +0000)]
cs-bisection-step: Use tree URLs from latest flight, not basis pass

We (both in adhoc-revtuple-generator and in the eventual build job)
(when using git) clone a particular url and then expect that the
resulting tree has all of the relevant revisions in it.

If a push gate has a different input tree to output tree, it is
necessary to use the output tree.  And, if the tree has moved, it is
probably more useful to use the new url than the old.

So it is more proper to use the tree url from the last flight found,
rather than that from the basis pass.  Do that.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoap-common: arm: set TREE_LINUX_ARM_THIS and TAG_LINUX_ARM_THIS too flight-23910 flight-23937 flight-23979 flight-24009 flight-24030 flight-24073 flight-24084 flight-24094 flight-24109 flight-24119 flight-24144 flight-24146 flight-24177 flight-24187 flight-24197 flight-24212 flight-24220 flight-24246 flight-24250 flight-24279 flight-24284 flight-24286 flight-24295 flight-24297
Ian Jackson [Thu, 2 Jan 2014 19:20:41 +0000 (19:20 +0000)]
ap-common: arm: set TREE_LINUX_ARM_THIS and TAG_LINUX_ARM_THIS too

11 years agots-debian-install: work around xen-create-image reliance on xend flight-22465 flight-22467 flight-22468 flight-22471 flight-22472 flight-22473 flight-22477 flight-22486 flight-22495 flight-22512 flight-22524 flight-22543 flight-22547 flight-22553 flight-22559 flight-22561 flight-22568 flight-22574 flight-22580 flight-22586 flight-22592 flight-22599 flight-22604 flight-22605 flight-22610 flight-22629 flight-22634 flight-22639 flight-22640 flight-22641 flight-22642 flight-22644 flight-22646 flight-22652 flight-22653 flight-22656 flight-22658 flight-22663 flight-22666 flight-22668 flight-22669 flight-22670 flight-22672 flight-22683 flight-22686 flight-22687 flight-22690 flight-22691 flight-22694 flight-22720 flight-22747 flight-22768 flight-22776 flight-22779 flight-22780 flight-22795 flight-22826 flight-22832 flight-22863 flight-22873 flight-22885 flight-22893 flight-22904 flight-22932 flight-22934 flight-22966 flight-22977 flight-22987 flight-23003 flight-23010 flight-23035 flight-23037 flight-23070 flight-23079 flight-23090 flight-23168 flight-23187 flight-23203 flight-23211 flight-23237 flight-23269 flight-23289 flight-23312 flight-23368 flight-23378 flight-23691 flight-23699 flight-23724 flight-23725 flight-23759 flight-23767 flight-23778 flight-23794 flight-23802 flight-23827 flight-23829 flight-23862 flight-23873 flight-23882 flight-23897 flight-23905 flight-23933 flight-23938 flight-23967 flight-23980 flight-23990 flight-24005 flight-24014 flight-24041 flight-24042
Ian Campbell [Wed, 18 Dec 2013 09:32:04 +0000 (09:32 +0000)]
ts-debian-install: work around xen-create-image reliance on xend

The xen-tools script contains some sanity checks of the xend configuration and
fails if the configuration file is not present. This issue has been reported
upstream http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732456.

Workaround this issue by creating a dummy xend-config.sxp if it does not
already exist. Include network- and vif- script options to keep the sanity
checks happy.

The workaround is enabled for all releases up to and including Wheezy in the
hopes that this will be fixed by the time Jessie is released, if not then the
osstest pushgate will hopefully catch this when Jessie is pushed to it.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
11 years agomake-flight: disable OVMF build for 4.3. flight-22413 flight-22423 flight-22427 flight-22429 flight-22431 flight-22432 flight-22436 flight-22439 flight-22442 flight-22444 flight-22446 flight-22448 flight-22449 flight-22451 flight-22453 flight-22455 flight-22457 flight-22458 flight-22460 flight-22461 flight-22463 flight-22464 flight-22466 flight-22469 flight-22470
Ian Jackson [Thu, 12 Dec 2013 16:31:33 +0000 (16:31 +0000)]
make-flight: disable OVMF build for 4.3.

11 years agomake-flight, ts-xen-build: Build OVMF for Xen-unstable flight-22384 flight-22391 flight-22398 flight-22406 flight-22407 flight-22408 flight-22409 flight-22410 flight-22412 flight-22414 flight-22415 flight-22416 flight-22417 flight-22418 flight-22419 flight-22421 flight-22424 flight-22425 flight-22426 flight-22428
Wei Liu [Tue, 10 Dec 2013 17:19:33 +0000 (17:19 +0000)]
make-flight, ts-xen-build: Build OVMF for Xen-unstable

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agofreebsd: run ts-guest-start, as ts-freebsd-install just prepares the disk flight-22289 flight-22299 flight-22305 flight-22310 flight-22314 flight-22315 flight-22316 flight-22322 flight-22323 flight-22325 flight-22326 flight-22327 flight-22328 flight-22329 flight-22330 flight-22331 flight-22332 flight-22333 flight-22334 flight-22335 flight-22336 flight-22337 flight-22338 flight-22339 flight-22340 flight-22341 flight-22342 flight-22343 flight-22344 flight-22345 flight-22346 flight-22347 flight-22348 flight-22349 flight-22350 flight-22351 flight-22352 flight-22353 flight-22354 flight-22355 flight-22356 flight-22357 flight-22358 flight-22359 flight-22360 flight-22361 flight-22362 flight-22363 flight-22364 flight-22365 flight-22366 flight-22367 flight-22368 flight-22369 flight-22370 flight-22371 flight-22372 flight-22373 flight-22374 flight-22375 flight-22376 flight-22377 flight-22378 flight-22380 flight-22381 flight-22382 flight-22383 flight-22385 flight-22386 flight-22389 flight-22390 flight-22392 flight-22393 flight-22394 flight-22395 flight-22396 flight-22397 flight-22399 flight-22400 flight-22402 flight-22404 flight-22405
Ian Jackson [Wed, 4 Dec 2013 18:15:05 +0000 (18:15 +0000)]
freebsd: run ts-guest-start, as ts-freebsd-install just prepares the disk

11 years agotarget_guest_lv_name: move into TestSupport; fix FreeBSD test flight-22221 flight-22232 flight-22243 flight-22261 flight-22273 flight-22275 flight-22276 flight-22277 flight-22278 flight-22279 flight-22281 flight-22282 flight-22283 flight-22284 flight-22285 flight-22286 flight-22287 flight-22290 flight-22291 flight-22292 flight-22293 flight-22294 flight-22295 flight-22296 flight-22297 flight-22298 flight-22300 flight-22301 flight-22302 flight-22303 flight-22304 flight-22306 flight-22307 flight-22308 flight-22309 flight-22311 flight-22312 flight-22313
Roger Pau Monné [Mon, 2 Dec 2013 15:22:53 +0000 (16:22 +0100)]
target_guest_lv_name: move into TestSupport; fix FreeBSD test

Move from lvm_lv_name in Debian.pm, and use it where appropriate in
ts-freebsd-install.  This will fix the bug where ts-freebsd-install
fails on hsots with "-" in their hostname (and hence their vg name).

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agotarget_file_exists: Use non-root access for this check
Ian Jackson [Thu, 28 Nov 2013 18:20:04 +0000 (18:20 +0000)]
target_file_exists: Use non-root access for this check

The new call of this in built_stash_file makes ts-*-build require root
access, which is not desirable.

The only other caller of target_file_exists is in ts-xen-install where
it is called on
                        /etc/default/xencommons
                        /etc/sysconfig/xencommons
                        /etc/default/xend
                        /etc/sysconfig/xend
all of which should be accessible as a normal user in a default config.

So change the access to use target_cmd_output rather than
target_cmd_output_root.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agotarget_cmd_build: honour DistccHosts host property flight-22178 flight-22187 flight-22215 flight-22222 flight-22223 flight-22224 flight-22226 flight-22228 flight-22230 flight-22231 flight-22233 flight-22234 flight-22235 flight-22236 flight-22237 flight-22238 flight-22239 flight-22240 flight-22241 flight-22242 flight-22244 flight-22245 flight-22246 flight-22247 flight-22248 flight-22249 flight-22250 flight-22251 flight-22252 flight-22253 flight-22254 flight-22255 flight-22256 flight-22257 flight-22258 flight-22259 flight-22260 flight-22262 flight-22263 flight-22264 flight-22266 flight-22267 flight-22268 flight-22269 flight-22270 flight-22271 flight-22272
Ian Jackson [Thu, 28 Nov 2013 18:05:56 +0000 (18:05 +0000)]
target_cmd_build: honour DistccHosts host property

If this property is set then the environment variable
 (a) DISTCC_HOSTS is set to the value of the host property
 (a) CCACHE_PREFIX is set to "distcc"
which will result in distcc being used as configured.

distcc had better be installed for such hosts.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-hosts-allocate-Executive: crash if no hostflags specified
Ian Jackson [Thu, 28 Nov 2013 16:06:21 +0000 (16:06 +0000)]
ts-hosts-allocate-Executive: crash if no hostflags specified

Rather than picking a machine at random.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agomake-flight: freebsd: include hostflags in job creation
Ian Jackson [Thu, 28 Nov 2013 15:46:31 +0000 (15:46 +0000)]
make-flight: freebsd: include hostflags in job creation

Otherwise we can pick totally unsuitable hosts.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agocrontab: Run most branches half-hourly with -q rather than infrequently with -w flight-22173 flight-22179 flight-22180 flight-22181 flight-22182 flight-22183 flight-22184 flight-22186 flight-22188 flight-22189 flight-22190 flight-22191 flight-22192 flight-22201 flight-22211 flight-22212 flight-22213 flight-22214 flight-22216 flight-22217 flight-22218 flight-22219 flight-22220
Ian Jackson [Thu, 21 Nov 2013 12:27:51 +0000 (12:27 +0000)]
crontab: Run most branches half-hourly with -q rather than infrequently with -w

Hopefully this won't implode too badly.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agocr-for-branches: when doing pre-pull from incoming, take out lock correctly
Ian Jackson [Thu, 21 Nov 2013 12:26:43 +0000 (12:26 +0000)]
cr-for-branches: when doing pre-pull from incoming, take out lock correctly

I.e. with -f if caller specified -q, rather than always using -w.  -q
would make the script carry on if it didn't manage to get the lock and
do the pull, which would be wrong.  -w is wrong because it can block
for another long-running script.

11 years agocri-common, ap-*: use >&2 with git-clone, git-fetch to avoid ap-* producing spurious...
Ian Jackson [Thu, 21 Nov 2013 12:24:06 +0000 (12:24 +0000)]
cri-common, ap-*: use >&2 with git-clone, git-fetch to avoid ap-* producing spurious messages on stdout

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agoTestSupport: fix a call to target_put_guest_image to call the right function flight-22136 flight-22139 flight-22140 flight-22145 flight-22148 flight-22149 flight-22150 flight-22151 flight-22152 flight-22153 flight-22154 flight-22155 flight-22156 flight-22157 flight-22158 flight-22159 flight-22161 flight-22162 flight-22163 flight-22164 flight-22165 flight-22166 flight-22167 flight-22168 flight-22169 flight-22170 flight-22171 flight-22172 flight-22174 flight-22175 flight-22176
Ian Jackson [Tue, 26 Nov 2013 11:22:46 +0000 (11:22 +0000)]
TestSupport: fix a call to target_put_guest_image to call the right function

This call site mentioned target_transfer_guest_image which was my
first name for this function; the function was renamed before I
committed.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-freebsd-install: remove unused $xl setting flight-22111 flight-22121 flight-22133
Roger Pau Monne [Thu, 21 Nov 2013 18:29:23 +0000 (18:29 +0000)]
ts-freebsd-install: remove unused $xl setting

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
11 years agosg-run-job: prototype test-freebsd recipe
Ian Jackson [Thu, 21 Nov 2013 18:23:40 +0000 (18:23 +0000)]
sg-run-job: prototype test-freebsd recipe

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-freebsd-install: sort out image handling by using target_put_guest_image, and...
Ian Jackson [Thu, 21 Nov 2013 18:23:21 +0000 (18:23 +0000)]
ts-freebsd-install: sort out image handling by using target_put_guest_image, and use job-specific local filenames

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agoTestSupport: break out target_put_guest_image
Ian Jackson [Thu, 21 Nov 2013 18:22:31 +0000 (18:22 +0000)]
TestSupport: break out target_put_guest_image

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
11 years agots-freebsd-install: split big setup command into three chunks
Ian Jackson [Thu, 21 Nov 2013 18:00:01 +0000 (18:00 +0000)]
ts-freebsd-install: split big setup command into three chunks

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