From 5b4de2dee6c4fb9ca1c5ba081dd60fb4b45ec6c7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 30 Sep 2014 00:29:36 +0200 Subject: [PATCH] hydra-evaluator: Reduce verbosity --- src/lib/Hydra/Helper/AddBuilds.pm | 8 ++++---- src/script/hydra-evaluator | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index b85bc4f8..446f6dbe 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -477,7 +477,7 @@ sub checkBuild { name => $firstOutputName, path => $firstOutputPath }, { rows => 1, columns => ['id'], join => ['buildoutputs'] }); if (defined $prevBuild) { - print STDERR " already scheduled/built as build ", $prevBuild->id, "\n"; + #print STDERR " already scheduled/built as build ", $prevBuild->id, "\n"; $buildMap->{$prevBuild->id} = { id => $prevBuild->id, jobName => $jobName, new => 0, drvPath => $drvPath }; return; } @@ -487,7 +487,7 @@ sub checkBuild { # being added. my $prev = $$jobOutPathMap{$jobName . "\t" . $firstOutputPath}; if (defined $prev) { - print STDERR " already scheduled as build ", $prev, "\n"; + #print STDERR " already scheduled as build ", $prev, "\n"; return; } @@ -555,11 +555,11 @@ sub checkBuild { $$jobOutPathMap{$jobName . "\t" . $firstOutputPath} = $build->id; if ($build->iscachedbuild) { - print STDERR " marked as cached build ", $build->id, "\n"; + #print STDERR " marked as cached build ", $build->id, "\n"; addBuildProducts($db, $build); notifyBuildFinished($plugins, $build, []); } else { - print STDERR " added to queue as build ", $build->id, "\n"; + print STDERR "added build ${\$build->id} (${\$jobset->project->name}:${\$jobset->name}:$jobName)\n"; } }); diff --git a/src/script/hydra-evaluator b/src/script/hydra-evaluator index 96d910a0..a16dc188 100755 --- a/src/script/hydra-evaluator +++ b/src/script/hydra-evaluator @@ -164,7 +164,7 @@ sub checkJobsetWrapped { my %buildMap; foreach my $job (permute(values %{$jobs})) { next if defined $job->{error}; - print STDERR " considering job " . $project->name, ":", $jobset->name, ":", $job->{jobName} . "\n"; + #print STDERR "considering job " . $project->name, ":", $jobset->name, ":", $job->{jobName} . "\n"; checkBuild($db, $jobset, $inputInfo, $nixExprInput, $job, \%buildMap, $prevEval, $jobOutPathMap, $plugins); }