hydra-queue-runner: Write GC roots for outputs paths
[?]
Oct 12, 2017, 4:55 PM
YXYXJDMBKFCIM4AIKCGJROUK4U3RBK5OLCBPGLA5AGERRHLGHSGACDependencies
- [2]
FHVJYJFEUpload build logs to the binary cache - [*]
MHVIT4JYSplit hydra-queue-runner.cc more - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
NSBNNM77Add hydra.conf option "nar_buffer_size" to configure memoryTokens limit - [*]
BRAESISHWarn if PostgreSQL appears stalled - [*]
HJOEIMLRRefactor - [*]
7LWB2J2ZPeriodically clear orphaned build steps
Change contents
- edit in src/hydra-queue-runner/builder.cc at line 266
for (auto & path : step->drv.outputPaths())writeFile(rootsDir + "/" + baseNameOf(path), ""); - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 90
, rootsDir(config->getStrOption("gc_roots_dir", fmt("%s/gcroots/per-user/%s/hydra-roots", settings.nixStateDir, getEnv("USER")))) - edit in src/hydra-queue-runner/queue-monitor.cc at line 224
for (auto & path : drv.outputPaths())writeFile(rootsDir + "/" + baseNameOf(path), ""); - edit in src/hydra-queue-runner/state.hh at line 439[9.1951][8.6778]
/* Where to store GC roots. Defaults to/nix/var/nix/gcroots/per-user/$USER/hydra-roots, overridablevia gc_roots_dir. */nix::Path rootsDir;