hydra-evaluator: Add some debug code
[?]
Apr 9, 2015, 3:35 PM
WVD3YYON22ES6LFQTX7LYBXTEBERGIN2DHOJC6M36UJ4KS4IHS2QCDependencies
- [2]
PDZD5QORhydra-evaluator: handle the case where there is no previous jobset eval - [3]
53PW36WShydra-evaluator: When evaluating a single jobset, exit with a failure code if evaluation fails - [4]
IMQRX4MPhydra-eval-jobs: Use JSON instead of XML - [5]
5GPK54IVLog segfaults from the evaluator - [6]
5SHCWE7X* Prevent repeated evaluation of a jobset with the same inputs. This - [7]
3XTHEUMP* Implemented the clone feature. - [8]
RFE6T5LG* Store jobset evaluations in the database explicitly. This includes - [9]
RXVJFQ5AEvaluator cleanups - [10]
QMW24O5SAdd support for Guile & Guix. - [11]
PXUCXYZI* Pass `-j 1' to hydra_eval_jobs to ensure that it can make progress - [12]
CHQEG6WYHydra/29: Added timeout to svn/git checkouts, job evaluation - [13]
PIMGMGAFRename hydra_eval_jobs to hydra-eval-jobs - [14]
7ZYBTNJJrevert unmeant previous change which caused errors to stay, even after successful evaluation of jobs - [15]
SS4TZXNUDistinguish between permanent evaluation errors and transient input errors - [16]
PCKLFRT5Support push notification of repository changes - [17]
A43SLRSHFix handling of IPC::Run::run exit status - [18]
NI5BVF2V* In job inputs of type "build", allow the project and jobset names of - [19]
FYO6NECEhydra - [20]
INNOEHO6* Fix getBuildLog for bzip2'd files. - [*]
OOQ2D3KC* Refactoring: move fetchInput out of hydra_scheduler into a separate - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
OVR2RWBIhydra-evaluator: Always pick the jobset that hasn't been evaluated longest
Change contents
- edit in src/lib/Hydra/Helper/AddBuilds.pm at line 333
print STDERR "evaluator ${evaluator}\n"; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 334
(my $res, my $jobsJSON, my $stderr) = captureStdoutStderr(10800,$evaluator, $nixExprFullPath, "--gc-roots-dir", getGCRootsDir, "-j", 1, inputsToArgs($inputInfo, $exprType));my @cmd = ($evaluator, $nixExprFullPath, "--gc-roots-dir", getGCRootsDir, "-j", 1, inputsToArgs($inputInfo, $exprType));if (defined $ENV{'HYDRA_DEBUG'}) {sub escape {my $s = $_;$s =~ s/'/'\\''/g;return "'" . $s . "'";}my @escaped = map escape, @cmd;print STDERR "evaluator: @escaped\n";}(my $res, my $jobsJSON, my $stderr) = captureStdoutStderr(10800, @cmd); - edit in src/script/hydra-evaluator at line 28[24.86][5.5400]
my $dryRun = defined $ENV{'HYDRA_DRY_RUN'}; - replacement in src/script/hydra-evaluator at line 116
$jobset->update({ lastcheckedtime => time, fetcherrormsg => $msg });$jobset->update({ lastcheckedtime => time, fetcherrormsg => $msg }) if !$dryRun; - replacement in src/script/hydra-evaluator at line 128
if (defined $prevEval && $prevEval->hash eq $argsHash) {if (defined $prevEval && $prevEval->hash eq $argsHash && !$dryRun) { - edit in src/script/hydra-evaluator at line 140
if ($dryRun) {foreach my $name (keys %{$jobs}) {my $job = $jobs->{$name};if (defined $job->{drvPath}) {print STDERR "good job $name: $job->{drvPath}\n";} else {print STDERR "failed job $name: $job->{error}\n";}}return;} - replacement in src/script/hydra-evaluator at line 284
});}) if !$dryRun; - replacement in src/script/hydra-evaluator at line 296[5.178]→[5.2480:2492](∅→∅),[5.2599]→[5.2480:2492](∅→∅),[5.5088]→[5.2480:2492](∅→∅),[5.2480]→[5.2480:2492](∅→∅)
});}) if !$dryRun; - edit in src/script/hydra-evaluator at line 298