Allow bumping an entire evaluation to the front of the queue
[?]
Aug 10, 2015, 4:56 PM
MZ63OVKPTSGREE3JSDCJVJY2VQ7FU76ZMTQBBJSRAUOYFJA6UPIACDependencies
- [2]
VHV6GI4LAdd a jobset eval action to restart all aborted/cancelled builds - [3]
UQA4FMUAAllow a jobset to be created from an evaluation - [4]
W74RIXTJShow inputs and input changes on the jobset eval page - [5]
UOINKJ2JAdd an action to cancel all builds in a jobset eval - [6]
6HWHYPSWAdd an action menu to evaluations - [*]
U4TD3AIQAdd support for viewing jobset evaluations - [*]
T273UOB7Support obtaining the contents of an evaluation as a channel
Change contents
- edit in src/lib/Hydra/Controller/JobsetEval.pm at line 190[4.1059][9.53]
sub bump : Chained('eval') PathPart('bump') Args(0) {my ($self, $c) = @_;requireProjectOwner($c, $c->stash->{eval}->project); # FIXME: require admin?my $builds = $c->stash->{eval}->builds->search({ finished => 0 });my $n = $builds->count();$c->model('DB')->schema->txn_do(sub {$builds->update({globalpriority => time()});});$c->flash->{successMsg} = "$n builds have been bumped to the front of the queue.";$c->res->redirect($c->uri_for($c->controller('JobsetEval')->action_for('view'), $c->req->captures));} - replacement in src/root/jobset-eval.tt at line 50
<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('cancel'), [eval.id]) %]">Cancel all scheduled builds</a></li><li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('restart_aborted'), [eval.id]) %]">Restart all aborted builds</a></li>[% IF unfinished.size > 0 %]<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('cancel'), [eval.id]) %]">Cancel all scheduled builds</a></li>[% END %][% IF aborted.size > 0 %]<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('restart_aborted'), [eval.id]) %]">Restart all aborted builds</a></li>[% END %][% IF unfinished.size > 0 %]<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('bump'), [eval.id]) %]">Bump builds to front of queue</a></li>[% END %]