Add option eval_substituter

[?]
Nov 20, 2017, 3:12 PM
UEMB7PTHRX5KKVEFHACAES5ZNVMRYRD43UL6LSMBSOACEG532FCQC

Dependencies

  • [2] VU2OLHD2 Move most of AddBuilds to hydra-eval-jobset
  • [3] WVD3YYON hydra-evaluator: Add some debug code
  • [4] STZE4KKR Fix build against Nix master
  • [5] 5MVWRWHT hydra-evaluator: Don't use the "timeout" command
  • [*] N22GPKYT * Put info about logs / build products in the DB.

Change contents

  • edit in src/script/hydra-eval-jobset at line 75
    [2.1548]
    [2.1548]
    }
    # Fetch a store path from 'eval_substituter' if not already present.
    sub getPath {
    my ($path) = @_;
    return 1 if isValidPath($path);
    my $substituter = $config->{eval_substituter};
    system("nix", "copy", "--from", $substituter, "--", $path)
    if defined $substituter;
    return isValidPath($path);
  • replacement in src/script/hydra-eval-jobset at line 112
    [2.2302][2.2302:2389]()
    return () if !defined $prevBuild || !isValidPath(getMainOutput($prevBuild)->path);
    [2.2302]
    [2.2389]
    return () if !defined $prevBuild || !getPath(getMainOutput($prevBuild)->path);
  • replacement in src/script/hydra-eval-jobset at line 150
    [2.3484][2.3484:3564]()
    push(@validBuilds, $build) if isValidPath(getMainOutput($build)->path);
    [2.3484]
    [2.3564]
    push(@validBuilds, $build) if getPath(getMainOutput($build)->path);