hydra: add support for succeedOnFailure feature in stdenv

[?]
Dec 22, 2010, 2:55 PM
G3IUM7VLQ4B3N3432X6EMKUJO6NYMXSS5AAYJ6CX4GLXCYXSUWDQC

Dependencies

  • [2] FM4O2L4M hydra: if evaluator sees cached build, also add the buildproducts
  • [3] LZO3C2KI * Hack around those SQLite timeouts: just retry the transaction.
  • [4] NLJJZVHO * Use ->update({...}) properly.
  • [5] K3EAQY3X * Doh.
  • [6] BD3GRK4B * Get rid of "positive failures" and separate log phases.
  • [7] 7YBYT2LQ
  • [8] CLJQCY2X * Store info about all the build actions and allow them to be
  • [9] AS5PAYLI
  • [10] G5A7TZVI * Don't discard old build steps when restarting a build.
  • [11] D7NXMCON * Doh.
  • [12] 3E6IP3R3 * Add the name of the jobset to ReleaseSetJobs, otherwise we can't
  • [*] IK53RV4V
  • [*] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build

Change contents

  • edit in src/root/common.tt at line 220
    [15.15367]
    [15.15367]
    [% ELSIF build.resultInfo.buildstatus == 6 %]
    <img src="/static/images/error_[% size %].png" alt="Failed (with result)" />
  • edit in src/root/common.tt at line 251
    [15.16935]
    [15.16935]
    [% ELSIF build.resultInfo.buildstatus == 6 %]
    <img src="/static/images/failure.gif" alt="Failed (with result)" />
    <span class="error">Build failed (with result)</span>
  • replacement in src/script/hydra_build.pl.in at line 282
    [3.300][3.145:224](),[3.346][3.145:224](),[3.6246][3.145:224]()
    $step->update({busy => 0, status => 0, stoptime => time});
    [3.300]
    [3.6355]
    my $stepOutpath = $step->outpath;
    my $stepStatus = 0;
    # when $out/nix-support/failed exists, build actually failed, exit code is in the file, status code for such builds is 6
    $stepStatus = 6 if -f "$stepOutpath/nix-support/failed";
    $thisBuildFailed = 1 if ($drvPath eq $drvPathStep && $stepStatus == 6);
    $step->update({busy => 0, status => $stepStatus, stoptime => time});
  • edit in src/script/hydra_build.pl.in at line 368
    [3.4205]
    [3.4205]
    } else {
    $buildStatus = 6 if $thisBuildFailed;
  • replacement in src/script/hydra_build.pl.in at line 414
    [3.4797][3.4544:4577]()
    if ($buildStatus == 0) {
    [3.4797]
    [2.2494]
    if ($buildStatus == 0 || $buildStatus == 6) {