Add action to restart all failed builds in an eval

[?]
Oct 28, 2015, 2:04 PM
AR5EHCUFCQJERDWBVZAJ6WZCDFWZPLH2UNDSLPXM7BSSMV3DQMBAC

Dependencies

  • [2] YQFIBA4J Restart builds failed due to unsupported system type
  • [3] 6S3ZLOZL Return JSON for /eval
  • [4] VHV6GI4L Add a jobset eval action to restart all aborted/cancelled builds
  • [5] UOINKJ2J Add an action to cancel all builds in a jobset eval
  • [*] U4TD3AIQ Add support for viewing jobset evaluations
  • [*] MZ63OVKP Allow bumping an entire evaluation to the front of the queue

Change contents

  • replacement in src/lib/Hydra/Controller/JobsetEval.pm at line 187
    [4.278][3.437:518](),[3.518][4.354:379](),[4.354][4.354:379]()
    sub restart_aborted : Chained('evalChain') PathPart('restart-aborted') Args(0) {
    my ($self, $c) = @_;
    [4.278]
    [4.379]
    sub restart {
    my ($self, $c, $condition) = @_;
  • replacement in src/lib/Hydra/Controller/JobsetEval.pm at line 190
    [4.436][2.0:108]()
    my $builds = $c->stash->{eval}->builds->search({ finished => 1, buildstatus => { -in => [3, 4, 9] } });
    [4.436]
    [4.541]
    my $builds = $c->stash->{eval}->builds->search({ finished => 1, buildstatus => $condition });
  • edit in src/lib/Hydra/Controller/JobsetEval.pm at line 194
    [4.1055]
    [4.1055]
    }
    sub restart_aborted : Chained('evalChain') PathPart('restart-aborted') Args(0) {
    my ($self, $c) = @_;
    restart($self, $c, { -in => [3, 4, 9] });
  • edit in src/lib/Hydra/Controller/JobsetEval.pm at line 203
    [4.1059]
    [3.519]
    sub restart_failed : Chained('evalChain') PathPart('restart-failed') Args(0) {
    my ($self, $c) = @_;
    restart($self, $c, { 'not in' => [0] });
    }
  • edit in src/root/jobset-eval.tt at line 53
    [8.753]
    [8.753]
    [% IF aborted.size > 0 || stillFail.size > 0 || nowFail.size > 0 %]
    <li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('restart_failed'), [eval.id]) %]">Restart all failed builds</a></li>
    [% END %]