hydra-eval-jobset: Support flakes
[?]
May 10, 2019, 10:10 PM
ZPHREC7X2TVM4OQJGTPA3Y3WOOJGTV3RXSPRI2ZFTZKIPIRRCUYQCDependencies
- [2]
HP5WJLQUhydra-eval-{jobs,jobset}: Pass file name as <...> - [3]
QMW24O5SAdd support for Guile & Guix. - [4]
N22GPKYT* Put info about logs / build products in the DB. - [5]
POPU2ATH* hydra_scheduler: use eval-jobs. - [6]
3XTHEUMP* Implemented the clone feature. - [7]
DVLDHOUZhydra-evaluator: Reduce verbosity - [8]
RXVJFQ5AEvaluator cleanups - [9]
FTPCV25MStore aggregate members in the database - [10]
MPFSVI5XPedantry: CLOCK_REALTIME -> CLOCK_MONOTONIC - [11]
TULPZ62Y* Perform builds in parallel. - [12]
IMQRX4MPhydra-eval-jobs: Use JSON instead of XML - [13]
RFE6T5LG* Store jobset evaluations in the database explicitly. This includes - [14]
SRBU2RAEWarn against multiple jobs with the same name - [15]
ZDENAYQI* email notification of evaluation errors to project owner (if desired) - [16]
PHNLYPKBCall buildFinished when a cached build is added - [17]
NS7SND6Rhydra-evaluator: Send statistics to statsd - [18]
VU2OLHD2Move most of AddBuilds to hydra-eval-jobset - [19]
LAJHRL6OFix tests - [20]
AFTXA575* $HYDRA_DATA environment variable. - [21]
X27GNHDV* Basic job info in the database. - [22]
JOYONH2KPrevent multiple builds with the same (job, outPath) tuple from being added - [23]
PXTSKX4GAdd buildQueued plugin hook - [24]
JQQYF4S3Fix build-queued plugin hook - [25]
KZJZSCQBRemove redundant check
Change contents
- replacement in src/script/hydra-eval-jobset at line 355
my ($inputInfo, $exprType, $nixExprInputName, $nixExprPath) = @_;my ($inputInfo, $exprType, $nixExprInputName, $nixExprPath, $flakeRef) = @_;my @cmd; - replacement in src/script/hydra-eval-jobset at line 359
my $nixExprInput = $inputInfo->{$nixExprInputName}->[0]or die "cannot find the input containing the job expression\n";if (defined $flakeRef) {@cmd = ("hydra-eval-jobs","--flake", $flakeRef,"--gc-roots-dir", getGCRootsDir,"--max-jobs", 1);} else {my $nixExprInput = $inputInfo->{$nixExprInputName}->[0]or die "cannot find the input containing the job expression\n"; - replacement in src/script/hydra-eval-jobset at line 368
my $evaluator = ($exprType eq "guile") ? "hydra-eval-guile-jobs" : "hydra-eval-jobs";my $evaluator = ($exprType eq "guile") ? "hydra-eval-guile-jobs" : "hydra-eval-jobs"; - replacement in src/script/hydra-eval-jobset at line 370
my @cmd = ($evaluator,"<" . $nixExprInputName . "/" . $nixExprPath . ">","--gc-roots-dir", getGCRootsDir,"-j", 1,inputsToArgs($inputInfo, $exprType));@cmd = ($evaluator,"<" . $nixExprInputName . "/" . $nixExprPath . ">","--gc-roots-dir", getGCRootsDir,"--max-jobs", 1,inputsToArgs($inputInfo, $exprType));} - replacement in src/script/hydra-eval-jobset at line 388
die "$evaluator returned " . ($res & 127 ? "signal $res" : "exit code " . ($res >> 8))die "hydra-eval-jobs returned " . ($res & 127 ? "signal $res" : "exit code " . ($res >> 8)) - replacement in src/script/hydra-eval-jobset at line 394
return (decode_json($jobsJSON), $nixExprInput);return decode_json($jobsJSON); - replacement in src/script/hydra-eval-jobset at line 412
my ($db, $jobset, $inputInfo, $nixExprInput, $buildInfo, $buildMap, $prevEval, $jobOutPathMap, $plugins) = @_;my ($db, $jobset, $inputInfo, $buildInfo, $buildMap, $prevEval, $jobOutPathMap, $plugins) = @_; - replacement in src/script/hydra-eval-jobset at line 640
my ($jobs, $nixExprInput) = evalJobs($inputInfo, $exprType, $jobset->nixexprinput, $jobset->nixexprpath);my $jobs = evalJobs($inputInfo, $exprType, $jobset->nixexprinput, $jobset->nixexprpath, $jobset->flake); - replacement in src/script/hydra-eval-jobset at line 685
checkBuild($db, $jobset, $inputInfo, $nixExprInput, $job, \%buildMap, $prevEval, $jobOutPathMap, $plugins);checkBuild($db, $jobset, $inputInfo, $job, \%buildMap, $prevEval, $jobOutPathMap, $plugins);