hydra-update-gc-roots: Only keep outputs when in direct mode

[?]
Jul 12, 2016, 5:23 PM
PJD4HUOJXDAPSY3GBEK2KS6SIBQOQI7U72RLPG2YLVVQWS2FTMUAC

Dependencies

  • [2] YAT6VX54 hydra-update-gc-roots: Get Builds and BuildOutputs in the same query
  • [3] SLBM7H4Q hydra-update-gc-roots: Keep derivations of failed builds
  • [4] KJQWSRCC Speed up hydra-update-gc-roots
  • [5] PMNWRTGJ Add multiple output support
  • [6] 4X6NS66Q * Keep the most recent builds for each job.
  • [7] HLYVEJX7 * Keep the 3 most recent builds for every platform for every job.
  • [*] WZ3AEJ67 * hydra_update_gc_roots.pl registers build outputs that should be kept
  • [*] TJK27WSB Open the DB using Hydra::Model::DB->new

Change contents

  • edit in src/script/hydra-update-gc-roots at line 14
    [10.964]
    [9.741]
    my $config = getHydraConfig();
  • replacement in src/script/hydra-update-gc-roots at line 41
    [3.106][3.154:240]()
    if ($build->finished && ($build->buildstatus == 0 || $build->buildstatus == 6)) {
    [3.106]
    [2.219]
    if (($config->{store_mode} // "direct") eq "direct" &&
    $build->finished && ($build->buildstatus == 0 || $build->buildstatus == 6))
    {