From patchwork Thu Oct 2 11:56:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 38290 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3E73D20BF9 for ; Thu, 2 Oct 2014 11:57:57 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id cc10sf1069000wib.11 for ; Thu, 02 Oct 2014 04:57:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=Xf8pDYkII968uFMgPh+Y83bQi8A60a6UWBNDgfKwQYk=; b=U8HP2M1u8mKL54kyuiGCIn2g0P39iR//EuQEsYl+2I+cZdC1N8kCghD0JYO1Setmin MgN6gRefaGjT1faCQS3OY+LOoMTvxBs8mGQ03tzn4eRMEFiLWcKxRwYRu+ufPpI5umuJ znWQ+HZh+4gh3czAQTlMUd5hrfPXSMJfXpeARryMH8OW9u/cmImC8NYUCSpOuwfH9LF0 SzVYHb2n+GaX3LGsiw9gwgBgByA8rouJHh0Kh4OqwSbyg8/vmn7hYm2Zu9/h7pHXQXas H0T3G7NvD+SumT53Gq2MCTaSYs7wO0Y3k0DSTAWILqqhl5iZ3M8MDC6SC4dBo/cbqDZX VljA== X-Gm-Message-State: ALoCoQnChEbZxXNoji3bWB1ntp01s8u0oTiLPkQdVNslNE1eR8fpu3XPyk3zCUoaWmbnid5jilfi X-Received: by 10.112.137.230 with SMTP id ql6mr544767lbb.13.1412251076452; Thu, 02 Oct 2014 04:57:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.227 with SMTP id p3ls271232laf.39.gmail; Thu, 02 Oct 2014 04:57:56 -0700 (PDT) X-Received: by 10.112.155.230 with SMTP id vz6mr24456058lbb.99.1412251076281; Thu, 02 Oct 2014 04:57:56 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx.google.com with ESMTPS id vs9si6103440lbb.138.2014.10.02.04.57.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Oct 2014 04:57:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id z12so2097117lbi.30 for ; Thu, 02 Oct 2014 04:57:56 -0700 (PDT) X-Received: by 10.112.130.226 with SMTP id oh2mr24710142lbb.100.1412251075913; Thu, 02 Oct 2014 04:57:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp38261lbb; Thu, 2 Oct 2014 04:57:55 -0700 (PDT) X-Received: by 10.52.111.232 with SMTP id il8mr39825781vdb.22.1412251074650; Thu, 02 Oct 2014 04:57:54 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id ir4si2875369vcb.19.2014.10.02.04.57.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 02 Oct 2014 04:57:54 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XZezU-0001Rl-5P; Thu, 02 Oct 2014 11:56:12 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XZezT-0001RY-7x for xen-devel@lists.xen.org; Thu, 02 Oct 2014 11:56:11 +0000 Received: from [85.158.139.211:55206] by server-7.bemta-5.messagelabs.com id 2D/6D-30869-A5D3D245; Thu, 02 Oct 2014 11:56:10 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-8.tower-206.messagelabs.com!1412250968!11577143!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.12.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30028 invoked from network); 2 Oct 2014 11:56:10 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-8.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 2 Oct 2014 11:56:10 -0000 X-IronPort-AV: E=Sophos;i="5.04,638,1406592000"; d="scan'208";a="178495351" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Thu, 2 Oct 2014 07:56:08 -0400 Received: from kazak.uk.xensource.com ([10.80.2.80] helo=zakaz.uk.xensource.com) by ukmail1.uk.xensource.com with smtp (Exim 4.69) (envelope-from ) id 1XZezO-0003aW-NJ; Thu, 02 Oct 2014 12:56:07 +0100 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Thu, 02 Oct 2014 12:56:06 +0100 From: Ian Campbell To: Date: Thu, 2 Oct 2014 12:56:06 +0100 Message-ID: <1412250966-14374-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST] sg-report-flight: Add a succcess/failure column header. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: There are so many rows and columns that scrolling around trying to find the column associated with a failure is getting pretty tricky. Finding all failing columns is even harder. Add a clue near the top. Signed-off-by: Ian Campbell --- sg-report-flight | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index 4760656..7c955da 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -367,8 +367,6 @@ END $? and die "tsort $?"; foreach my $j (@$jobs) { - push @gridcol_job, $j->{job}; - $statuscounts{$j->{status}}++; my $jobtext= sprintf "%s:\n", $j->{job}; @@ -448,6 +446,7 @@ END } push @jobtexts, [ split /\n/, $jobtext ]; + push @gridcol_job, [ $j->{job},$foundfail ]; } my $outcomes= join '/', sort keys %statuscounts; @@ -899,7 +898,7 @@ sub htmlout ($) { my @cols= @{ $fi->{GridCols} }; - htmloutjob($fi, $_) foreach @cols; + htmloutjob($fi, $_->[0]) foreach @cols; my $htmlout= "$htmldir/index.html"; open H, "> $htmlout.new" or die "$htmlout.new $!"; @@ -913,7 +912,7 @@ END print H encode_entities($fi->{FlightInfo}{blessing}); print H "\n"; - foreach my $col (@cols) { + foreach my $col (map { @{$_}[0] } @cols) { my $th= $col; $th =~ s/\-/ $&/g; print H ""; @@ -923,6 +922,20 @@ END print H ""; } print H "\n"; + print H ""; + print H "Status"; + print H "\n"; + foreach my $col (map { @{$_}[1] } @cols) { + my ($colour,$text) = $col ? + ("#ff8888","Failed") : + ("#008800", "Success"); + + print H "$text"; + } + print H "\n"; + # Create a gutter row after the headers. + print H " \n"; + foreach my $rowix (0..$#{ $fi->{GridRows} }) { next unless $fi->{GridRows}[$rowix]; my $rowdesc= encode_entities($fi->{GridRows}[$rowix]); @@ -958,7 +971,7 @@ END $label->($ndeferred, 'right'); }; - foreach my $col (@cols) { + foreach my $col (map { @{$_}[0] } @cols) { my $ei= $fi->{GridGrid}{$col}[$rowix]; if ($ei) { $deferred_cells->(1);