All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [OSSTEST PATCH 13/13] Reporting: sg-report-flight: Put overall pushgate stats in email
Date: Tue, 30 Jun 2015 10:33:48 +0100	[thread overview]
Message-ID: <1435656828.21469.43.camel@citrix.com> (raw)
In-Reply-To: <1435598089-21647-14-git-send-email-ian.jackson@eu.citrix.com>

On Mon, 2015-06-29 at 18:14 +0100, Ian Jackson wrote:
> This adds something like this (would have appeared in 37638):
> 
>   Last test of basis    37629  2015-06-24 21:36:10 Z    4 days
>   Testing same since    37635  2015-06-28 03:05:56 Z    1 days    4 attempts
>   Failing since         37630  2015-06-26 10:35:44 Z    3 days    9 attempts

Chronologically shouldn't the second and third lines be the other way
around?

> 
> or this (would have appeared in 37629):
> 
>   Last test of basis    37617  2015-06-20 04:06:01 Z    9 days
>   Testing same since    37628  2015-06-24 13:35:23 Z    5 days    2 attempts
> 
> (Both examples from the Cambridge instance.)
> 
> This is added just after the versions are reported.
> 
> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
> ---
>  sg-report-flight |   41 +++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
> 
> diff --git a/sg-report-flight b/sg-report-flight
> index c1661ec..5ca004a 100755
> --- a/sg-report-flight
> +++ b/sg-report-flight
> @@ -499,6 +499,45 @@ sub printversions ($) {
>      }
>  }
>  
> +sub print_pushgate_summary () {
> +    my @thistree = sort keys %{ $specver{'this'} };
> +    my @thattree = sort keys %{ $specver{'that'} };
> +    if (!(@thistree==1 && @thattree==1 && $thistree[0] eq $thattree[0])) {
> +	print DEBUG "NO PUSHGATE SUMMARY (@thistree) != (@thattree)";
> +    }
> +    my $tree = $thistree[0];
> +
> +    my $info = report_find_push_age_info(
> +	[ $blessings[0] ], $maxflight, [ $branch ],
> +	$tree, $specver{that}{$tree}, $specver{this}{$tree}
> +	);
> +    print "\n";
> +    my $now = time;
> +    my $pinfo = sub {
> +	my ($what, $flightkey, $countkey) = @_;
> +	my $f = $info->{$flightkey};
> +	my $count = $info->{$countkey};
> +	printf "%-20s", $what;
> +	if ($f) {
> +	    printf(" %6d  %s %4d days",
> +		   $f->{flight},
> +		   show_abs_time($f->{started}),
> +		   floor(($now - $f->{started}) / 86400));
> +	} else {
> +	    printf(" %34s     ","(not found)");
> +	}
> +	if (defined $count) {
> +	    printf(" %4d attempts", $count);
> +	}
> +	print "\n";
> +    };
> +    $pinfo->('Last test of basis', "Basis",'');
> +    $pinfo->('Testing same since', "FirstTip","CountTip");
> +    $pinfo->('Failing since', "FirstAfterBasis","CountAfterBasis")
> +        unless ($info->{FirstAfterBasis}{flight} // 'NONE')
> +	    eq ($info->{FirstTip}{flight}        // 'NONE');
> +}
> +
>  sub printout {
>      my ($r, @failures) = @_;
>      print <<END or die $!;
> @@ -579,6 +618,8 @@ END
>          printversions('that');
>      }
>  
> +    print_pushgate_summary();
> +
>      if (@includefiles) {
>          print "\n","-"x60, "\n" or die $!;
>      }

  reply	other threads:[~2015-06-30  9:33 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 17:14 [OSSTEST PATCH 00/13] Linux 4.1, and reporting improvements Ian Jackson
2015-06-29 17:14 ` [OSSTEST PATCH 01/13] ts-leak-check: Report leaked loop block devices Ian Jackson
2015-06-30  8:55   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 02/13] Test Linux 4.1 Ian Jackson
2015-06-30  8:58   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 03/13] Reporting: sg-report-flight: Fix undefined value in $worstrow[] Ian Jackson
2015-06-30  9:04   ` Ian Campbell
2015-06-30  9:39     ` Ian Jackson
2015-06-29 17:14 ` [OSSTEST PATCH 04/13] Reporting: In report_run_getinfo, abstract code for returning Ian Jackson
2015-06-30  9:05   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 05/13] Reporting: report_run_getinfo produces ColourAttr Ian Jackson
2015-06-30  9:06   ` Ian Campbell
2015-06-30  9:25     ` Ian Jackson
2015-06-30  9:34       ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 06/13] Reporting: sg-report-job-history: Honour --limit Ian Jackson
2015-06-30  9:07   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 07/13] Reporting: report_run_getinfo produces Content Ian Jackson
2015-06-30  9:07   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 08/13] Reporting: Break out report_blessingscond Ian Jackson
2015-06-30  9:11   ` Ian Campbell
2015-06-30  9:31     ` Ian Jackson
2015-06-30  9:44       ` Ian Campbell
2015-06-30  9:54         ` Ian Jackson
2015-06-30 11:01           ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 09/13] Reporting sg-report-job-history: support --max-flight Ian Jackson
2015-06-30  9:12   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 10/13] Reporting: sg-report-host-history: Support --max-flight Ian Jackson
2015-06-30  9:12   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 11/13] Reporting: In history tables, show multiple failure steps Ian Jackson
2015-06-30  9:15   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 12/13] Reporting: Provide report_find_push_age_info Ian Jackson
2015-06-30  9:39   ` Ian Campbell
2015-06-29 17:14 ` [OSSTEST PATCH 13/13] Reporting: sg-report-flight: Put overall pushgate stats in email Ian Jackson
2015-06-30  9:33   ` Ian Campbell [this message]
2015-06-30  9:50     ` Ian Jackson
2015-06-30  9:56       ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435656828.21469.43.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.