Show aborted/cancelled builds separately in jobset eval pages

[?]
Oct 2, 2013, 11:54 PM
RHUAFTJAKUW654TNYHQYSSQ4PXFEEMDRRTLEPKCP3MOE7TWMTICQC

Dependencies

  • [2] QD3NI3JY Allow comparing an eval against the jobset one day/week/month before
  • [3] 6HWHYPSW Add an action menu to evaluations
  • [4] L7NUCXKS Show new and removed jobs
  • [5] HQGXL4MX Add validation for project and jobset names
  • [6] WZZOOYCH Show queued builds in jobset evaluation pages
  • [7] U4TD3AIQ Add support for viewing jobset evaluations
  • [8] DE2DNCOI Allow comparing an evaluation with an arbitrary other evaluation
  • [*] 4QCXGR4W Tabify the eval page

Change contents

  • replacement in src/lib/Hydra/Controller/JobsetEval.pm at line 42
    [4.809][2.0:58]()
    } elsif ($compare =~ /^-(\d+)$/) {
    my $t = int($1);
    [4.809]
    [2.58]
    } elsif ($compare =~ /^-(\d+)$/) {
    my $t = int($1);
  • replacement in src/lib/Hydra/Controller/JobsetEval.pm at line 45
    [2.119][2.119:235]()
    { hasnewbuilds => 1, timestamp => {'<=', $eval->timestamp - $t} },
    { order_by => "timestamp desc", rows => 1});
    [2.119]
    [4.809]
    { hasnewbuilds => 1, timestamp => {'<=', $eval->timestamp - $t} },
    { order_by => "timestamp desc", rows => 1});
  • edit in src/lib/Hydra/Controller/JobsetEval.pm at line 81
    [4.34]
    [4.2610]
    $c->stash->{aborted} = [];
  • replacement in src/lib/Hydra/Controller/JobsetEval.pm at line 94
    [4.1558][4.35:106](),[4.81][4.35:106]()
    if ($build->finished == 0 || $build2->finished == 0) {
    [4.1558]
    [4.106]
    if ($build->buildstatus == 3 || $build->buildstatus == 4) {
    push @{$c->stash->{aborted}}, $build;
    } elsif ($build->finished == 0 || $build2->finished == 0) {
  • edit in src/root/jobset-eval.tt at line 49
    [3.388]
    [10.342]
    [% IF aborted.size > 0 %]
    <li><a href="#tabs-aborted" data-toggle="tab"><span class="text-warning">Aborted jobs</span></a></li>
    [% END %]
  • edit in src/root/jobset-eval.tt at line 89
    [4.251]
    [10.1818]
    <div id="tabs-aborted" class="tab-pane">
    [% INCLUDE renderSome builds=aborted %]
    </div>