Support obtaining the contents of an evaluation as a channel

[?]
Apr 2, 2012, 9:25 PM
T273UOB7WVB3NK52EBN65FQR6XP746D3BZM5SOYXEV6NCARIRYOQC

Dependencies

  • [2] U4TD3AIQ Add support for viewing jobset evaluations
  • [3] DE2DNCOI Allow comparing an evaluation with an arbitrary other evaluation

Change contents

  • replacement in src/lib/Hydra/Controller/JobsetEval.pm at line 5
    [2.1369][2.1369:1402]()
    use base 'Catalyst::Controller';
    [2.1369]
    [2.1402]
    use base 'Hydra::Base::Controller::NixChannel';
  • edit in src/lib/Hydra/Controller/JobsetEval.pm at line 99
    [2.3916]
    [2.3916]
    }
    # Hydra::Base::Controller::NixChannel needs this.
    sub nix : Chained('eval') PathPart('channel') CaptureArgs(0) {
    my ($self, $c) = @_;
    $c->stash->{channelName} = $c->stash->{project}->name . "-" . $c->stash->{jobset}->name . "-latest";
    $c->stash->{channelBuilds} = $c->stash->{eval}->builds
    ->search_literal("exists (select 1 from buildproducts where build = build.id and type = 'nix-build')")
    ->search({ finished => 1, buildstatus => 0 }, { columns => [@buildListColumns, 'drvpath', 'outpath', 'description', 'homepage'] });