Fix build
[?]
Aug 4, 2020, 9:33 AM
6NUK6AZAZLOKFHXPS74YV52B63Z4BYQMPY42VAU5ZEACMZ663M2QCDependencies
- [2]
SJTXNMXURemove added strictness to allow multiple query returns. - [3]
HTDANBLNMerge pull request #730 from NixOS/flake - [4]
BOCPRQ6EFix build against latest Nix - [5]
QHO6IDC7Fix build - [6]
HPXFXHFSRemove SHA-1 hash from BuildProducts - [7]
N3G7LLGEGet data needed by getBuildOutput() from the incoming NAR in a streaming fashion - [8]
73YR46NJhydra-queue-runner: Write directly to a binary cache - [9]
WV4SSAIYBuild against nix-master - [10]
U55WNIDPAbort unsupported build steps - [11]
IWB3F4Z6Fail builds with previously failed steps early - [12]
WDGARQ76Reuse build products / metrics stored in the database - [13]
VQISTKOPhydra-queue-runner: Use substitutes - [14]
YXYXJDMBhydra-queue-runner: Write GC roots for outputs paths - [15]
2PQPKMG7S3BinaryCacheStore: Use disk cache - [16]
IKJBYIGYUpdate to reflect BinaryCacheStore changes - [17]
YSZQ3ORRFix build - [18]
T5BIOVJEAdd support for tracking custom metrics - [19]
YTAYNN7VQueue monitor: Bail out earlier if a step has failed previously - [20]
3A7HTJZPMerge branch 'master' into libpqxx_undeprecate - [21]
INVXGPNKFix root creation when the root already exists but is owned by another user - [22]
NQPGIRXXRevert "hydra-eval-jobs -> nix eval-hydra-jobs" - [23]
XLYHZUHTCache .narinfo lookups - [24]
NAYQT2GThydra-queue-runner: Use cmdBuildDerivation - [25]
BG6PEOB2Make the output size limit configurable - [26]
BRAESISHWarn if PostgreSQL appears stalled - [27]
SOB276BAKeep some statistics for the binary cache stores - [28]
XCDTFZUYhydra-queue-runner: Fix build - [29]
ACBS7C6Qhydra-queue-runner: Detect changes to the scheduling shares - [30]
NJXD2ABJAbort unsupported build steps - [31]
EBJP3MNABuild against nix-master - [32]
BYVRA54QTemporarily disable machines on any exception, not just connection failures - [33]
5AIYUMTBBasic remote building - [34]
DKR2GXSAUpdate libpqxx usage to move away from deprecated API interactions. - [35]
VUYJ47EVhydra-eval-jobs: Parallelize - [36]
24BMQDZAStart of single-process hydra-queue-runner - [37]
PQFOMNTLhydra-queue-runner: More stats - [38]
H46LUUZYhydra-queue-runner: don't try to distribute builds on localhost - [39]
DKJFD6JNProcess Nix API changes - [40]
MHVIT4JYSplit hydra-queue-runner.cc more - [41]
BAFICF73Support hydra-build-products on binary cache stores - [42]
SL3WSRAChydra-queue-runner: Limit memory usage - [43]
OBOTGFG6Prevent orphaned build steps - [44]
ZK76B5ZZLoad the queue in order of global priority
Change contents
- replacement in src/hydra-eval-jobs/hydra-eval-jobs.cc at line 456
std::string drvPath = job["drvPath"];auto drv = readDerivation(*store, drvPath);auto drvPath = store->parseStorePath((std::string) job["drvPath"]);auto drv = store->readDerivation(drvPath); - replacement in src/hydra-eval-jobs/hydra-eval-jobs.cc at line 463
std::string drvPath2 = (*job2)["drvPath"];auto drv2 = readDerivation(*store, drvPath2);job["constituents"].push_back(drvPath2);drv.inputDrvs[store->parseStorePath(drvPath2)] = {drv2.outputs.begin()->first};auto drvPath2 = store->parseStorePath((std::string) (*job2)["drvPath"]);auto drv2 = store->readDerivation(drvPath2);job["constituents"].push_back(store->printStorePath(drvPath2));drv.inputDrvs[drvPath2] = {drv2.outputs.begin()->first}; - replacement in src/hydra-eval-jobs/hydra-eval-jobs.cc at line 469
std::string drvName(store->parseStorePath(drvPath).name());std::string drvName(drvPath.name()); - replacement in src/hydra-eval-jobs/hydra-eval-jobs.cc at line 475
drv.outputs.insert_or_assign("out", DerivationOutput { .path = outPath });drv.outputs.insert_or_assign("out", DerivationOutput { .output = DerivationOutputInputAddressed { .path = outPath } }); - replacement in src/hydra-eval-jobs/hydra-eval-jobs.cc at line 478
debug("rewrote aggregate derivation %s -> %s", drvPath, newDrvPath);debug("rewrote aggregate derivation %s -> %s", store->printStorePath(drvPath), newDrvPath); - replacement in src/hydra-queue-runner/build-remote.cc at line 263
Derivation drv2 = readDerivation(*localStore, localStore->printStorePath(input.first));auto drv2 = localStore->readDerivation(input.first); - replacement in src/hydra-queue-runner/build-remote.cc at line 265
auto i = drv2.outputs.find(name);if (i == drv2.outputs.end()) continue;inputs.insert(i->second.path);basicDrv.inputSrcs.insert(i->second.path);if (auto i = get(drv2.outputs, name)) {auto outPath = i->path(*localStore, drv2.name);inputs.insert(outPath);basicDrv.inputSrcs.insert(outPath);} - replacement in src/hydra-queue-runner/build-remote.cc at line 437
auto outputs = step->drv->outputPaths();auto outputs = step->drv->outputPaths(*localStore); - replacement in src/hydra-queue-runner/build-result.cc at line 19
auto outputs = drv.outputPaths();auto outputs = drv.outputPaths(*store); - replacement in src/hydra-queue-runner/build-result.cc at line 109
product.path = store->printStorePath(output.second.path);auto outPath = output.second.path(*store, drv.name);product.path = store->printStorePath(outPath); - replacement in src/hydra-queue-runner/build-result.cc at line 113
product.name = output.second.path.name();product.name = outPath.name(); - replacement in src/hydra-queue-runner/build-result.hh at line 15
nix::Hash sha256hash;off_t fileSize = 0;std::optional<nix::Hash> sha256hash;std::optional<off_t> fileSize; - replacement in src/hydra-queue-runner/builder.cc at line 277
for (auto & path : step->drv->outputPaths())for (auto & path : step->drv->outputPaths(*localStore)) - replacement in src/hydra-queue-runner/builder.cc at line 466
for (auto & path : step->drv->outputPaths())for (auto & path : step->drv->outputPaths(*localStore)) - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 263
buildId, stepNr, output.first, localStore->printStorePath(output.second.path));buildId, stepNr, output.first, localStore->printStorePath(output.second.path(*localStore, step->drv->name))); - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 415
product.isRegular ? std::make_optional(product.fileSize) : std::nullopt,product.isRegular ? std::make_optional(product.sha256hash.to_string(Base16, false)) : std::nullopt,product.fileSize ? std::make_optional(*product.fileSize) : std::nullopt,product.sha256hash ? std::make_optional(product.sha256hash->to_string(Base16, false)) : std::nullopt, - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 444
for (auto & path : step->drv->outputPaths())for (auto & path : step->drv->outputPaths(*localStore)) - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 640
nested2.attr("putBytes", s3Stats.putBytes); - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 641
nested2.attr("putSpeed",s3Stats.putTimeMs? (double) s3Stats.putBytes / s3Stats.putTimeMs * 1000.0 / (1024.0 * 1024.0): 0.0); - replacement in src/hydra-queue-runner/nar-extractor.cc at line 42
void preallocateContents(unsigned long long size) overridevoid preallocateContents(uint64_t size) override - replacement in src/hydra-queue-runner/nar-extractor.cc at line 48
void receiveContents(unsigned char * data, unsigned int len) overridevoid receiveContents(unsigned char * data, size_t len) override - replacement in src/hydra-queue-runner/queue-monitor.cc at line 179
for (auto & output : ex.step->drv->outputs) {for (auto & output : ex.step->drv->outputPaths(*localStore)) { - replacement in src/hydra-queue-runner/queue-monitor.cc at line 182
localStore->printStorePath(output.second.path));localStore->printStorePath(output)); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 221
Derivation drv = readDerivation(*localStore, localStore->printStorePath(build->drvPath));auto drv = localStore->readDerivation(build->drvPath); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 224
for (auto & path : drv.outputPaths())for (auto & path : drv.outputPaths(*localStore)) - replacement in src/hydra-queue-runner/queue-monitor.cc at line 430
step->drv = std::make_unique<Derivation>(readDerivation(*localStore, localStore->printStorePath(drvPath)));step->drv = std::make_unique<Derivation>(localStore->readDerivation(drvPath)); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 456
auto outputs = step->drv->outputPaths();auto outputs = step->drv->outputPaths(*localStore); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 459[8.8860]→[3.68:68](∅→∅),[3.68]→[8.12871:12925](∅→∅),[8.8860]→[8.12871:12925](∅→∅),[8.9367]→[8.12871:12925](∅→∅),[8.1670]→[8.12871:12925](∅→∅)
if (!destStore->isValidPath(i.second.path)) {if (!destStore->isValidPath(i.second.path(*localStore, step->drv->name))) { - replacement in src/hydra-queue-runner/queue-monitor.cc at line 470
if (/* localStore != destStore && */ localStore->isValidPath(i.second.path))auto path = i.second.path(*localStore, step->drv->name);if (/* localStore != destStore && */ localStore->isValidPath(path)) - replacement in src/hydra-queue-runner/queue-monitor.cc at line 475
localStore->querySubstitutablePathInfos({i.second.path}, infos);localStore->querySubstitutablePathInfos({{path, {}}}, infos); - edit in src/hydra-queue-runner/queue-monitor.cc at line 484
auto path = i.second.path(*localStore, step->drv->name); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 489
if (localStore->isValidPath(i.second.path))if (localStore->isValidPath(path)) - replacement in src/hydra-queue-runner/queue-monitor.cc at line 491
localStore->printStorePath(i.second.path),localStore->printStorePath(path), - replacement in src/hydra-queue-runner/queue-monitor.cc at line 495
localStore->printStorePath(i.second.path),localStore->printStorePath(path), - replacement in src/hydra-queue-runner/queue-monitor.cc at line 497[8.9564]→[3.72:72](∅→∅),[3.72]→[8.1528:1591](∅→∅),[8.9564]→[8.1528:1591](∅→∅),[8.10071]→[8.1528:1591](∅→∅),[8.1528]→[8.1528:1591](∅→∅)
localStore->ensurePath(i.second.path);localStore->ensurePath(path); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 501
copyClosure(ref<Store>(localStore), destStore, {i.second.path});copyClosure(ref<Store>(localStore), destStore, {path}); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 508
createSubstitutionStep(txn, startTime, stopTime, build, drvPath, "out", i.second.path);createSubstitutionStep(txn, startTime, stopTime, build, drvPath, "out", path); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 514
localStore->printStorePath(i.second.path),localStore->printStorePath(path), - replacement in src/hydra-queue-runner/queue-monitor.cc at line 620
for (auto & output : drv.outputs) {for (auto & output : drv.outputPaths(*localStore)) { - replacement in src/hydra-queue-runner/queue-monitor.cc at line 625
localStore->printStorePath(output.second.path));localStore->printStorePath(output));