Remove timeout detection hack
[?]
Aug 17, 2014, 5:26 PM
JR76VU3W5YPJMKTEXLNHXEXAJFQWKZWBDZRNJ2RLZBXVQ2BM27RQCDependencies
- [2]
VXTPW6BFhydra-build: Hack to handle timeouts - [3]
CLJQCY2X* Store info about all the build actions and allow them to be - [4]
BD3GRK4B* Get rid of "positive failures" and separate log phases. - [5]
RBHHV7P7* Read logs using logContents function in stead of handling it everywhere separately. - [*]
7YBYT2LQ
Change contents
- edit in src/script/hydra-build at line 143
}# Hack to handle timeouts, which Nix doesn't report# properly when they occur remotely. If we get a "hook# failed" error and $maxsilent seconds have passed since# the start of the build step, then assume that a timeout# occured.if (/^@\s+hook-failed\s+(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/ && $3 eq "256") {my $drvPathStep = $1;if ($buildSteps{$drvPathStep}) {my $step = $build->buildsteps->find({stepnr => $buildSteps{$drvPathStep}}) or die;print STDERR $step->starttime, " ", time(), "\n";if ($step->starttime + $maxsilent <= time) {$_ = "@ build-failed $1 $2 timeout $4";}}