Upload build logs to the binary cache
[?]
Mar 15, 2017, 3:43 PM
FHVJYJFEZEGR6DVIQ2HGE7DLWA65QAGAI3K2KACGNM2JTDJTRJ4ACDependencies
- [2]
NSBNNM77Add hydra.conf option "nar_buffer_size" to configure memoryTokens limit - [3]
UVQJBDHNMove log compression to a plugin - [4]
BG6PEOB2Make the output size limit configurable - [5]
HK2F7SKQFix std::stoi exception - [*]
MHVIT4JYSplit hydra-queue-runner.cc more - [*]
7LWB2J2ZPeriodically clear orphaned build steps - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
HJOEIMLRRefactor - [*]
EPWEMRI2Allow determinism checking for entire jobsets
Change contents
- edit in src/hydra-queue-runner/builder.cc at line 6
#include "binary-cache-store.hh" - edit in src/hydra-queue-runner/builder.cc at line 152
/* Upload the log file to the binary cache. FIXME: shouldbe done on a worker thread. */try {auto store = destStore.dynamic_pointer_cast<BinaryCacheStore>();if (uploadLogsToBinaryCache && store && pathExists(result.logFile)) {store->upsertFile("log/" + baseNameOf(buildDrvPath), readFile(result.logFile), "text/plain");unlink(result.logFile.c_str());}} catch (...) {ignoreException();} - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 61
return i == options.end() ? def : i->second == "true";return i == options.end() ? def : (i->second == "true" || i->second == "1"); - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 77
, uploadLogsToBinaryCache(config->getBoolOption("upload_logs_to_binary_cache", false)) - edit in src/hydra-queue-runner/state.hh at line 416[11.2666][8.1950]
bool uploadLogsToBinaryCache;