* [OSSTEST PATCH 1/6] config: turn off HostnameSortSwapWords by default
2015-03-31 14:18 [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Jackson
@ 2015-03-31 14:18 ` Ian Jackson
2015-03-31 14:18 ` [OSSTEST PATCH 2/6] cs-adjust-flight: Support negation of foo-specs Ian Jackson
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Ian Jackson @ 2015-03-31 14:18 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson, Ian Campbell
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Osstest.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Osstest.pm b/Osstest.pm
index 449f312..f619b10 100644
--- a/Osstest.pm
+++ b/Osstest.pm
@@ -74,7 +74,7 @@ our %c = qw(
DebianNonfreeFirmware firmware-bnx2
- HostnameSortSwapWords 1
+ HostnameSortSwapWords 0
);
$c{$_}='' foreach qw(
--
1.7.10.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [OSSTEST PATCH 2/6] cs-adjust-flight: Support negation of foo-specs
2015-03-31 14:18 [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Jackson
2015-03-31 14:18 ` [OSSTEST PATCH 1/6] config: turn off HostnameSortSwapWords by default Ian Jackson
@ 2015-03-31 14:18 ` Ian Jackson
2015-03-31 14:18 ` [OSSTEST PATCH 3/6] sg-report-flight: Sort email output by results, not job name Ian Jackson
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Ian Jackson @ 2015-03-31 14:18 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson, Ian Campbell
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
cs-adjust-flight | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/cs-adjust-flight b/cs-adjust-flight
index 9bd8757..9e011c6 100755
--- a/cs-adjust-flight
+++ b/cs-adjust-flight
@@ -93,10 +93,12 @@ sub for_things ($$$$$$$) {
my $things_q = $things_q{$table} ||= $dbh_tests->prepare
("SELECT * FROM $table WHERE $basecond");
+ my $not = ($spec =~ s/^\!//) ? 'NOT' : '';
my $re = spec_re($spec);
- debug("FOR_THINGS $table.$keycol \`$spec' RE ",
+ debug("FOR_THINGS $table.$keycol $not \`$spec' RE ",
(defined($re) ? "/$re/" : "<undef>"), "\n");
if (!defined $re) {
+ die "cannot negate <foo-name>" if $not;
$thing_q->execute(@$basecondvals, $spec);
my $row = $thing_q->fetchrow_hashref();
if ($row) {
@@ -112,8 +114,8 @@ sub for_things ($$$$$$$) {
$things_q->execute(@$basecondvals);
while (my $row = $things_q->fetchrow_hashref()) {
my $thing = $row->{$keycol};
- next unless $thing =~ m/$re/;
- debug("FOR_THINGS $table.$keycol \`$spec' FOUND $row->{$keycol}\n");
+ next unless $thing =~ m/$re/ xor $not;
+ debug("FOR_THINGS $table.$keycol $not \`$spec' FOUND $row->{$keycol}\n");
$fn->($thing, $row);
}
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [OSSTEST PATCH 3/6] sg-report-flight: Sort email output by results, not job name
2015-03-31 14:18 [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Jackson
2015-03-31 14:18 ` [OSSTEST PATCH 1/6] config: turn off HostnameSortSwapWords by default Ian Jackson
2015-03-31 14:18 ` [OSSTEST PATCH 2/6] cs-adjust-flight: Support negation of foo-specs Ian Jackson
@ 2015-03-31 14:18 ` Ian Jackson
2015-03-31 14:18 ` [OSSTEST PATCH 4/6] sg-report-flight: Produce better output for running jobs Ian Jackson
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Ian Jackson @ 2015-03-31 14:18 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson, Ian Campbell
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
sg-report-flight | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/sg-report-flight b/sg-report-flight
index d2aff58..2adc8a8 100755
--- a/sg-report-flight
+++ b/sg-report-flight
@@ -541,16 +541,21 @@ END
my $text= (sprintf" %-${jl}s %2s %-${sl}s %-${rl}s ",
$j->{job}, $s->{stepno}, $s->{testid}, $s->{status});
- $text .= "in $failv->{Flight} " if $heisenflightp;
- $text .= $failv->{Summary} if defined $failv->{Summary};
+ my $xstatus = '';
+ $xstatus .= "in $failv->{Flight} " if $heisenflightp;
+ $xstatus .= $failv->{Summary} if defined $failv->{Summary};
+ $text .= $xstatus;
$text =~ s/ *$//;
while (length($text) > $cw) { last unless $text =~ s/(.* ) /$1/; }
- $notsucceeds{$cat} .= $text."\n";
+ push @{ $notsucceeds{$cat} }, [ "$s->{status} $xstatus", $text ];
}
foreach my $cat (sort keys %notsucceeds) {
$cat =~ m/^\w+ / or die;
- print "\n$'\n$notsucceeds{$cat}" or die $!;
+ print "\n$'\n" or die $!;
+ foreach (sort { $a->[0] cmp $b->[0] } @{ $notsucceeds{$cat} }) {
+ print $_->[1], "\n" or die $!;
+ }
}
if (!%{ $r->{Failures} }) {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [OSSTEST PATCH 4/6] sg-report-flight: Produce better output for running jobs.
2015-03-31 14:18 [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Jackson
` (2 preceding siblings ...)
2015-03-31 14:18 ` [OSSTEST PATCH 3/6] sg-report-flight: Sort email output by results, not job name Ian Jackson
@ 2015-03-31 14:18 ` Ian Jackson
2015-03-31 14:18 ` [OSSTEST PATCH 5/6] ts-host-ping-check: New ubiquitous test step Ian Jackson
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Ian Jackson @ 2015-03-31 14:18 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson, Ian Campbell
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
sg-report-flight | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sg-report-flight b/sg-report-flight
index 2adc8a8..18a5afa 100755
--- a/sg-report-flight
+++ b/sg-report-flight
@@ -664,6 +664,14 @@ END
print MRO "broken-step $s->{job} $s->{testid}\n";
}
+ if ($st eq 'running') {
+ print MRO "running $j->{job} $s->{testid}\n";
+ print DEBUG " running, unjustifiable\n";
+ $failv->{Summary}= '';
+ $failv->{Blocker}= 'unfinished';
+ next;
+ }
+
if (!($st eq 'fail' or $st eq 'broken')) {
print MRO "broken $j->{job} $s->{testid} $st\n";
print DEBUG " not a fail, unjustifiable\n";
--
1.7.10.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [OSSTEST PATCH 5/6] ts-host-ping-check: New ubiquitous test step
2015-03-31 14:18 [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Jackson
` (3 preceding siblings ...)
2015-03-31 14:18 ` [OSSTEST PATCH 4/6] sg-report-flight: Produce better output for running jobs Ian Jackson
@ 2015-03-31 14:18 ` Ian Jackson
2015-03-31 14:18 ` [OSSTEST PATCH 6/6] ts-host-install: honour arch-specific boot append properties Ian Jackson
2015-03-31 14:52 ` [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Campbell
6 siblings, 0 replies; 8+ messages in thread
From: Ian Jackson @ 2015-03-31 14:18 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson, Ian Campbell
Check that packet loss is within acceptable levels.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
sg-run-job | 2 ++
ts-host-ping-check | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+)
create mode 100755 ts-host-ping-check
diff --git a/sg-run-job b/sg-run-job
index a1ff24b..3bdb5aa 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -51,8 +51,10 @@ proc run-job {job} {
if {$ok} { setstatus running }
per-host-ts broken host-install/@(*) ts-host-install-twice
+ per-host-ts . host-ping-check-native/@ ts-host-ping-check
per-host-ts . xen-install/@ ts-xen-install
per-host-ts . xen-boot/@ ts-host-reboot
+ per-host-ts . host-ping-check-xen/@ ts-host-ping-check
per-host-ts . =(*) {ts-leak-check basis}
diff --git a/ts-host-ping-check b/ts-host-ping-check
new file mode 100755
index 0000000..74c008c
--- /dev/null
+++ b/ts-host-ping-check
@@ -0,0 +1,39 @@
+#!/usr/bin/perl -w
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2013 Citrix Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict qw(vars);
+use Osstest;
+use DBI;
+use Osstest::TestSupport;
+
+tsreadconfig();
+
+our ($whhost) = @ARGV;
+$whhost ||= 'host';
+our $ho= selecthost($whhost);
+
+$_ = `ping -D -i 0.2 -c 100 $ho->{Ip} | tee /dev/stderr`;
+
+m/\b([0-9.]+)% packet loss\b/ or die "$_ ?";
+
+my $loss= $1;
+
+logm("packet loss $loss\%");
+
+die if $loss > 1;
+
+logm("ok.");
--
1.7.10.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [OSSTEST PATCH 6/6] ts-host-install: honour arch-specific boot append properties
2015-03-31 14:18 [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Jackson
` (4 preceding siblings ...)
2015-03-31 14:18 ` [OSSTEST PATCH 5/6] ts-host-ping-check: New ubiquitous test step Ian Jackson
@ 2015-03-31 14:18 ` Ian Jackson
2015-03-31 14:52 ` [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Campbell
6 siblings, 0 replies; 8+ messages in thread
From: Ian Jackson @ 2015-03-31 14:18 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson, Ian Campbell
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
ts-host-install | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ts-host-install b/ts-host-install
index 9656079..a8543a4 100755
--- a/ts-host-install
+++ b/ts-host-install
@@ -235,7 +235,8 @@ END
"domain=$c{TestHostDomain}",
);
push @installcmdline,
- get_host_property($ho, "install-append $ho->{Suite}", '');
+ get_host_property($ho, "install-append $ho->{Suite}", ''),
+ get_host_property($ho, "install-append $ho->{Suite} $r{arch}", '');
my $console = get_host_native_linux_console($ho);
@@ -248,7 +249,8 @@ END
push @installcmdline, "console=$console" unless $console eq "NONE";
push @installcmdline,
- get_host_property($ho, "linux-boot-append $ho->{Suite}", '');
+ get_host_property($ho, "linux-boot-append $ho->{Suite}", ''),
+ get_host_property($ho, "linux-boot-append $ho->{Suite} $r{arch}", '');
my $installcmdline= join ' ', @installcmdline;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [OSSTEST PATCH 0/6] Un-pushed support patches for new colo
2015-03-31 14:18 [OSSTEST PATCH 0/6] Un-pushed support patches for new colo Ian Jackson
` (5 preceding siblings ...)
2015-03-31 14:18 ` [OSSTEST PATCH 6/6] ts-host-install: honour arch-specific boot append properties Ian Jackson
@ 2015-03-31 14:52 ` Ian Campbell
6 siblings, 0 replies; 8+ messages in thread
From: Ian Campbell @ 2015-03-31 14:52 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Tue, 2015-03-31 at 15:18 +0100, Ian Jackson wrote:
> These 6 patches were developed as part of deploying the new colo, and
> have been used ad-hoc by me in my own ~, but not yet sent into
> production.
Since I was preparing a push to pretest (of the stuff which was already
in Cambridge pretest and never made it through before the switch) you
asked me to include these too, which I have done.
So I have just pushed to the new colo's pretest:
$ git log --oneline dce7456..5ae027f
5ae027f Merge branch 'colo.2015-03-31' of xenbits.xen.org:/home/iwj/ext/osstest into queue
4bf33f8 production-config*: Set HostnameSortSwapWords as appropriate
e2008dc (Re)Add production config for Cambridge instance
f89d6ac Osstest.pm: Add "use IO::File"
0ab790c ts-host-install: honour arch-specific boot append properties
e654ecc ts-host-ping-check: New ubiquitous test step
a80d215 sg-report-flight: Produce better output for running jobs.
6ec412e sg-report-flight: Sort email output by results, not job name
6cbaf65 cs-adjust-flight: Support negation of foo-specs
fdddba7 config: turn off HostnameSortSwapWords by default
ea335bc start/stop the guest 10 times in the standard test jobs
4d6bbe0 README.dev: Document steps after restarting ms-ownerdaemon
97fa466 uboot: make flask loading address host property
ab441f3 uboot: do not use readlink on xsm policy
Note that I have omitted "standalone: Add --dry-run option for run-job."
for now while I sort out the feedback from "sg-run-job: Only consider
$OSSTEST_SIMULATE > 0"
> They can also be found in:
> xenbits.xen.org:/home/iwj/ext/osstest#colo.2015-03-31
>
> Thanks,
> Ian.
^ permalink raw reply [flat|nested] 8+ messages in thread