Fix reproduce script

[?]
May 26, 2015, 1:54 PM
4IH6RYSGLCZXUH64J5UFRU6VE7CDD4EYSCZZMIPHWZEJD7KDL5VAC

Dependencies

  • [2] ZH6B56XR Try harder to find build logs
  • [3] 5Q4ZLL37 reproduce.tt: Add --help flag
  • [4] 3G7OYUSE reproduce.tt: Check for the presence of commands like nix-build
  • [5] MMJYE535 Also show number of evaluations of which a build is a part
  • [6] LZVO64YG Merge in the first bits of the API work
  • [7] FU4GO5VN On build pages, provide a link to the build's first eval
  • [8] HZWUT4YN Allow users to reproduce builds on their own systems
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] HSVVEKTY * Start of a JSON API to get information about a specific build.

Change contents

  • replacement in src/lib/Hydra/Controller/Build.pm at line 102
    [3.100][2.392:457](),[2.457][3.124:154](),[3.124][3.124:154](),[3.154][2.458:510]()
    $c->stash->{eval} = $c->stash->{build}->jobsetevals->search(
    { hasnewbuilds => 1},
    { rows => 1, order_by => ["id"] })->single;
    [3.100]
    [3.4281]
    $c->stash->{eval} = getFirstEval($build);
  • edit in src/lib/Hydra/Controller/Build.pm at line 555
    [3.317]
    [11.412]
    $c->stash->{eval} = getFirstEval($c->stash->{build});
  • replacement in src/root/reproduce.tt at line 82
    [3.846][3.846:883]()
    [%+ FOREACH input IN build.inputs %]
    [3.846]
    [3.883]
    [% inputs = build.inputs.size > 0 ? build.inputs : eval.jobsetevalinputs %]
    [%+ FOREACH input IN inputs %]