Smoke Reports

Timezone is <% $timezone %>

% foreach my $category (sort keys %$categories) { % foreach my $subcategory (sort keys %{$categories->{$category}}) { % foreach my $report (@{$categories->{$category}->{$subcategory}}) { % } % } % }
<% $category %>
<% $subcategory %>
<% $report->project %> r<% $report->revision %> <% $report->committer %> <%# $report->timestamp %> <% utc_to_jst($report->timestamp) %> <% $report->duration %> sec <% sprintf("%.2f", $report->total_ratio * 100) %>% ok <% $report->total_seen %>: <% $report->total_ok %>, <% $report->total_failed %>, <% $report->total_todo %>, <% $report->total_skipped %>, <% $report->total_unexpectedly_succeeded %> » »
<% $report->total_seen %> test cases:
<% $report->total_ok %> ok, <% $report->total_failed %> failed, <% $report->total_todo %> todo,
<% $report->total_skipped %> skipped and <% $report->total_unexpectedly_succeeded %> unexpectedly succeeded
View full smoke report
<%args> $categories $cgi <%once> my $strptime = '%Y-%m-%d %H:%M:%S'; #my $timezone = 'UTC'; my $timezone = 'Asia/Tokyo'; sub utc_to_jst { my $utc_timestamp = shift; my $str = join('T', split ' ', $utc_timestamp, 2); my $dt = DateTime::Format::ISO8601->parse_datetime($str); if ($dt) { $dt->set_time_zone( 'UTC' ); $dt->set_time_zone( $timezone ); $dt->set_formatter(DateTime::Format::Strptime->new(pattern => $strptime)); #return $dt->time_zone->name; return "$dt"; } else { return; } } sub detail_url { my ($cgi, $report) = @_; return $cgi->url . "?id=" . $report->id; } <%doc> This template is based on code from smokeserv-server.pl in the Pugs distribution This template assumes the use of the following report variables: project revision committer duration