hydra: handle case where build to keep set to 0

[?]
Nov 23, 2010, 9:05 AM
ONAQU4BRGYO6MGPGIQIK5KF4JE4TBJMFFBU5XBKFTYQ5RPW7FOYQC

Dependencies

  • [2] AEFNBIIW * Merge the GC branch.
  • [3] NEWDDAOF * Allow users to change the value of a build's "keep" flag, which
  • [4] AFGT66EI hydra: if a project or jobset is hidden (and thus disabled) do not keep builds
  • [5] 4X6NS66Q * Keep the most recent builds for each job.
  • [6] HLYVEJX7 * Keep the 3 most recent builds for every platform for every job.
  • [7] IN272KZW * Automatically keep all builds in the latest successful release in
  • [8] E3LZ5H7Q hydra: only use keepnr to determine if builds should be kept
  • [9] FGQPXZIX hydra: make nr of build to keep configurable per jobset
  • [*] WZ3AEJ67 * hydra_update_gc_roots.pl registers build outputs that should be kept

Change contents

  • replacement in src/script/hydra_update_gc_roots.pl.in at line 43
    [3.577][2.1469:1761]()
    # If the jobset has been disabled for more than one week, than
    # don't keep its builds anymore.
    if ($jobset->enabled == 0 && (time() - $jobset->lastcheckedtime > (7 * 24 * 3600))) {
    print STDERR "*** skipping disabled jobset ", $project->name, ":", $jobset->name, "\n";
    next;
    }
    [3.577]
    [2.1761]
    # If the jobset has been disabled for more than one week, than
    # don't keep its builds anymore.
    if ($jobset->enabled == 0 && (time() - $jobset->lastcheckedtime > (7 * 24 * 3600))) {
    print STDERR "*** skipping disabled jobset ", $project->name, ":", $jobset->name, "\n";
    next;
    }
    if ($keepnr <= 0 ) {
    print STDERR "*** jobset ", $project->name, ":", $jobset->name, " set to keep 0 builds\n";
    next;
    }
  • replacement in src/script/hydra_update_gc_roots.pl.in at line 76
    [2.2775][2.2775:2782](),[2.2782][3.615:618](),[3.615][3.615:618]()
    }
    }
    [2.2775]
    [3.3896]
    }
    }