Add separate build step status codes for cached failures and timeouts
[?]
May 9, 2013, 10:13 PM
JGLE5BRNJTMCZFZ33G2SGOQ4F3CIZAPMU3IXCNMR5NNSG5EJLX6QCDependencies
- [2]
4SJPAAJXPass failing dependent builds to buildFinished - [3]
AS5PAYLI - [4]
3BKF6P72* Use Nix's negative caching. - [5]
G3IUM7VLhydra: add support for succeedOnFailure feature in stdenv - [6]
BD3GRK4B* Get rid of "positive failures" and separate log phases. - [7]
NLJJZVHO* Use ->update({...}) properly. - [8]
UVNQPK3THydra/56: handle failed builds with result only at build level, not buildsteps - [9]
SIZ6KXPWSet the build status properly for failing local builds - [10]
3ZCEPLNO - [11]
VI32YSGAI should test first - [12]
PMNWRTGJAdd multiple output support - [13]
MNZ67UXOIf a build step fail, immediately fail all queued builds that depend on it - [14]
LQNBKF3D - [15]
HE3GX5IPOptimize fetch-git. - [16]
LZO3C2KI* Hack around those SQLite timeouts: just retry the transaction. - [17]
CLJQCY2X* Store info about all the build actions and allow them to be - [18]
G5A7TZVI* Don't discard old build steps when restarting a build. - [19]
DGZE7ZRA* Don't log redundant build steps in case of cached failures. - [*]
J5UVLXOK* Start of a basic Catalyst web interface. - [*]
2GUAKGTBFix indentation of build.tt - [*]
7YBYT2LQ - [*]
N22GPKYT* Put info about logs / build products in the DB.
Change contents
- edit in src/root/build.tt at line 53
[% ELSIF step.status == 7 %]<span class="error">Timed out</span>[% ELSIF step.status == 8 %]<span class="error">Cached failure</span> - replacement in src/script/hydra-build at line 40
my ($drvPath, $errorMsg, $dependents) = @_;my ($drvPath, $status, $errorMsg, $dependents) = @_; - replacement in src/script/hydra-build at line 70
, status => 1, status => $status - replacement in src/script/hydra-build at line 185
my $errorMsg = $4;$errorMsg = "build failed previously (cached)" if $3 eq "cached";my $errorMsg;my $status = 1;if ($3 eq "cached") {$status = 8;} elsif ($3 eq "timeout") {$status = 7;} else {$errorMsg = $4;} - replacement in src/script/hydra-build at line 197
$step->update({busy => 0, status => 1, errormsg => $errorMsg, stoptime => time});$step->update({busy => 0, status => $status, errormsg => $errorMsg, stoptime => time}); - replacement in src/script/hydra-build at line 208
, status => 1, status => $status - replacement in src/script/hydra-build at line 218
failDependents($drvPathStep, $errorMsg, $dependents);failDependents($drvPathStep, $status, $errorMsg, $dependents); - replacement in src/script/hydra-build at line 264
elsif ($someBuildFailed) { $buildStatus = 2; }elsif (!$thisBuildFailed && $someBuildFailed) { $buildStatus = 2; } - replacement in src/sql/hydra.sql at line 211
status integer, -- 0 = success, 1 = failed-- Status codes:-- 0 = succeeded-- 1 = failed normally-- 4 = aborted-- 7 = timed out-- 8 = cached failurestatus integer,