Hydra/56: handle failed builds with result only at build level, not buildsteps

[?]
Mar 7, 2011, 1:55 PM
UVNQPK3TO3WNRYCHV66SECURHJEKYSDLREKG3T2JVC5YLE2EHA5QC

Dependencies

  • [2] G3IUM7VL hydra: add support for succeedOnFailure feature in stdenv
  • [3] 7YBYT2LQ
  • [4] CLJQCY2X * Store info about all the build actions and allow them to be
  • [5] BD3GRK4B * Get rid of "positive failures" and separate log phases.
  • [6] D7NXMCON * Doh.
  • [*] ECBA3GQO * Make the schema class names match the case of the SQL table names.

Change contents

  • edit in src/script/hydra_build.pl.in at line 285
    [2.445][2.445:756]()
    # 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);
  • replacement in src/script/hydra_build.pl.in at line 364
    [3.4205][2.846:911](),[2.911][3.4205:4215](),[3.4205][3.4205:4215]()
    } else {
    $buildStatus = 6 if $thisBuildFailed;
    }
    [3.4205]
    [3.3728]
    }
  • edit in src/script/hydra_build.pl.in at line 394
    [3.4472]
    [8.4931]
    if ($buildStatus == 0 && -f "$outPath/nix-support/failed") {
    $buildStatus = 6;
    }