% use DateTime; % layout 'bootstrap'; % title 'Test summary'; % use OpenQA::Jobs::Constants; % use List::Util qw(any sum); % content_for 'ready_function' => begin window.overviewParallelChildrenCollapsableResultsSel = '<%= $parallel_children_collapsable_results_sel %>'; setupOverview({metaMapping: <%== Mojo::JSON::to_json($meta_mapping) %>}); % end %= include 'layouts/limit_warning'

## Test result overview

Overall Summary of % if (@$groups) { % my @links; % for my $i (0 .. $#$groups) { % my $group = $groups->[$i]; % my $link = link_to $group->name => url_for('group_overview', groupid => $group->id); % my $comma = $i > 0 ? ', ' : ''; % if ($i >= $max_groups) { % push @links, '' . $comma . $link . ''; % } else { % push @links, $comma . $link->to_string; % } % } %== join '', @links % if (@$groups > $max_groups) { … % } % } % elsif (@$summary_parts) { <% for my $part (@$summary_parts) { %><%= $part %><% } %> % } % else { multiple distri/version % } % if ($build) { build <%= $build %> % }
% if ($until) { at the time of <%= $until %>Z, show latest jobs % } % else { showing latest jobs, overview fixed to the current time %}
% my $allow_commenting = @$job_ids && current_user; % if ($allow_commenting) {
% } % my @badges = qw(success warning danger secondary info primary light light); % my @labels = qw(Passed Soft-Failed Failed Incomplete Scheduled Running Aborted None); % my $index = 0; % for my $category (qw(passed softfailed failed not_complete scheduled running aborted none)) { % my ($label, $badge) = ($labels[$index], $badges[$index++]); % next unless my $count = delete $aggregated->{$category}; <%= $label %>: <%= $count %> % } % if (my $unknown_count = sum values %$aggregated) { Unknown: <%= $unknown_count %> % } All
Filter <%= help_popover('Help for the test overview' => '

This page shows an overview of job results in a matrix view. Only the latest job for each scenario is shown. The view can be configured based on query parameters which can be set within this filter box.

Caveat: Based on the parameters the resulting job query might consider jobs as latest which do not represent the complete picture for a corresponding "latest" build so be careful with a more advanced selection of checkboxes with the interpretation of the results.

Additional tweaking of the query is possible by leaving out query parameters completely or specifying them multiple times equivalent to an logical "or" search.

', 'https://open.qa/docs/#_allow_group_overview_query_by_result_gh531' => 'the documentation') %> no filter present, click to toggle filter form
%= include 'test/_overview_filter_section', id_suffix => 'results', label => 'Job result', name => 'result', items => [OpenQA::Jobs::Constants::RESULTS], meta_items => [OpenQA::Jobs::Constants::META_RESULTS] %= include 'test/_overview_filter_section', id_suffix => 'states', label => 'Job state', name => 'state', items => [OpenQA::Jobs::Constants::STATES], meta_items => [OpenQA::Jobs::Constants::META_STATES]
Architecture
Flavor
Machines
Test
Module name <%= help_popover('Help for the Module name filter' => '

Shows jobs that contain the specified modules

') %>
Module code <%= help_popover('Help for the Module code filter' => '

Shows jobs that contain the modules found by grep command over module source code

') %>
Module result <%= help_popover('Help for the Module result filter' => '

Show jobs with selected result.

') %>
Include job groups <%= help_popover('Help for the Include job group filter' => '

Shows jobs from job groups matching these globs

') %>
Exclude job groups <%= help_popover('Help for the Exclude job groups filter' => '

Do not show jobs matching these globs

') %>
Comment text <%= help_popover('Help for the Comment text filter' => '

Show only jobs with comments containing the specified term

') %>
Misc TODO %= help_popover_todo
%= include 'layouts/info' % for my $distri (sort keys %$results) { % my $type_prefix_distri = $only_distri ? '' : "Distri: $distri / "; % my $version_results = $results->{$distri}; % my $only_version = scalar keys %$version_results == 1; % for my $version (sort keys %$version_results) { % my $type_prefix = $type_prefix_distri . ($only_version && $only_distri ? '' : " Version: $version / "); % my $type_archs = $archs->{$distri}{$version}; % for my $type (sort keys %$type_archs) { % my $type_result = $version_results->{$version}{$type};

### <%= $type_prefix %>Flavor: <%= $type %>

%= include 'test/overview_result_table', type => $type, type_results => $type_result, type_archs => $type_archs->{$type} % } % } % }
% if ($allow_commenting) {

#### Add comment on all currently shown jobs

%= include 'comments/add_comment_form_groups', group_comment => 0, nosubmit => 1
% }