Set propagatedFrom for cached failed build steps
[?]
Sep 11, 2015, 1:55 PM
BCDHO4OULIMAC2RNZM5LKDOD2CYENXU6JGEHQZEXZBUMXK3QC3AACDependencies
- [2]
4CQWOODYDon't abort steps that have an unsupported system type - [3]
MHVIT4JYSplit hydra-queue-runner.cc more
Change contents
- replacement in src/hydra-queue-runner/queue-monitor.cc at line 172
createBuildStep(txn, 0, build, r, "", bssFailed);/* Find the previous build step record, first byderivation path, then by output path. */BuildID propagatedFrom = 0;auto res = txn.parameterized("select max(build) from BuildSteps where drvPath = $1 and startTime != 0 and stopTime != 0 and status = 1")(r->drvPath).exec();if (!res[0][0].is_null()) propagatedFrom = res[0][0].as<BuildID>();if (!propagatedFrom) {for (auto & output : r->drv.outputs) {auto res = txn.parameterized("select max(s.build) from BuildSteps s join BuildStepOutputs o on s.build = o.build where path = $1 and startTime != 0 and stopTime != 0 and status = 1")(output.second.path).exec();if (!res[0][0].is_null()) {propagatedFrom = res[0][0].as<BuildID>();break;}}}createBuildStep(txn, 0, build, r, "", bssCachedFailure, "", propagatedFrom);