Always record inputs passed through -I in the BuildInputs table

[?]
Apr 3, 2012, 10:10 AM
QEC5HR4RHVV5WJCYDA7G5D5RTJO2WQMRXPSNNHNGQF6REHHKAQRQC

Dependencies

  • [2] ZDENAYQI * email notification of evaluation errors to project owner (if desired)
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate
  • [*] 3XTHEUMP * Implemented the clone feature.
  • [*] N22GPKYT * Put info about logs / build products in the DB.

Change contents

  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 906
    [5.6174]
    [5.6174]
    # Record which inputs where used.
  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 909
    [5.6250]
    [5.6250]
    foreach my $name (keys %{$inputInfo}) {
    # Unconditionally include all inputs that were included in
    # the Nix search path (through the -I flag). We currently
    # have no way to see which ones were actually used.
    $inputs{$name} = $inputInfo->{$name}->[0]
    if scalar @{$inputInfo->{$name}} == 1
    && defined $inputInfo->{$name}->[0]->{storePath};
    }
  • edit in src/script/hydra-evaluator at line 47
    [2.541]
    [2.541]