From e2e4b49b987ac7ebdd136635f6e214800be67cc2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 1 Jun 2010 11:17:02 +0000 Subject: [PATCH] * Pass `-j 1' to hydra_eval_jobs to ensure that it can make progress even when all the remote build slots are in use. The evaluator can cause builds if Nix expressions import derivations (e.g. in pkgs/build-support/vm to compute the RPM/Deb closures). If there are no free build slots, the evaluator can hang for a long time. --- src/lib/Hydra/Helper/AddBuilds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 5d17e63e..5a7bb141 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -459,7 +459,7 @@ sub evalJobs { my $nixExprFullPath = $nixExprInput->{storePath} . "/" . $nixExprPath; (my $res, my $jobsXml, my $stderr) = captureStdoutStderr(10800, - ("hydra_eval_jobs", $nixExprFullPath, "--gc-roots-dir", getGCRootsDir, inputsToArgs($inputInfo))); + ("hydra_eval_jobs", $nixExprFullPath, "--gc-roots-dir", getGCRootsDir, "-j", 1, inputsToArgs($inputInfo))); die "Cannot evaluate the Nix expression containing the jobs:\n$stderr" unless $res; print STDERR "$stderr";