Fix the jobset unchanged check
[?]
Mar 12, 2012, 7:28 PM
DDMYFZ5XWW6O3TGCVNW4GPVR2ZPRFWIPQU54DCVUYARFXIMKENUQCDependencies
- [2]
RXVJFQ5AEvaluator cleanups - [3]
BMSQD2ZHIndentation - [4]
5SHCWE7X* Prevent repeated evaluation of a jobset with the same inputs. This - [5]
FM4O2L4Mhydra: if evaluator sees cached build, also add the buildproducts - [6]
PIMGMGAFRename hydra_eval_jobs to hydra-eval-jobs - [7]
FDE3BJAP* Refactoring. - [*]
OOQ2D3KC* Refactoring: move fetchInput out of hydra_scheduler into a separate - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
S6OISBQ3* Mark the "current" builds in a jobset, i.e. those corresponding to - [*]
RFE6T5LG* Store jobset evaluations in the database explicitly. This includes
Change contents
- replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 791
# Return the most recent evaluation of the given jobset that had new# builds, or undefined if no such evaluation exists.# Return the most recent evaluation of the given jobset (that# optionally had new builds), or undefined if no such evaluation# exists. - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 795
my ($db, $jobset) = @_;my ($prevEval) = $jobset->jobsetevals({ hasnewbuilds => 1 }, { order_by => "id DESC", rows => 1 });my ($db, $jobset, $hasNewBuilds) = @_;my ($prevEval) = $jobset->jobsetevals(($hasNewBuilds ? { hasnewbuilds => 1 } : { }),{ order_by => "id DESC", rows => 1 }); - replacement in src/script/hydra-evaluator at line 113
my $prevEval = getPrevJobsetEval($db, $jobset);if ($prevEval->hash eq $argsHash) {if (getPrevJobsetEval($db, $jobset, 0)->hash eq $argsHash) { - edit in src/script/hydra-evaluator at line 128
my $prevEval = getPrevJobsetEval($db, $jobset, 1); - edit in src/script/hydra-evaluator at line 170[12.6534][12.6534]
print STDERR " created new eval ", $ev->id, "\n";} else {print STDERR " created cached eval ", $ev->id, "\n";