hydra-update-gc-roots: Get Builds and BuildOutputs in the same query
[?]
Jun 11, 2015, 12:09 PM
YAT6VX542JXMSSS642S52K72636L7IM3F6ZDHCOUUB3325S7NHOQCDependencies
- [2]
AGNPN3WHKeep the most recent successful build of current jobs - [3]
PMNWRTGJAdd multiple output support - [4]
HLYVEJX7* Keep the 3 most recent builds for every platform for every job. - [5]
WZ3AEJ67* hydra_update_gc_roots.pl registers build outputs that should be kept - [6]
KJQWSRCCSpeed up hydra-update-gc-roots - [7]
SLBM7H4Qhydra-update-gc-roots: Keep derivations of failed builds
Change contents
- replacement in src/script/hydra-update-gc-roots at line 25
my @columns = ( "id", "project", "jobset", "job", "system", "finished", "drvpath", "timestamp", "buildstatus" );my @columns =( "id", "project", "jobset", "job", "system", "finished", "drvpath", "timestamp", "buildstatus", { "outpaths" => \ "(select string_agg(path, ' ') from BuildOutputs where build = me.id)" }); - replacement in src/script/hydra-update-gc-roots at line 41
foreach my $out ($build->buildoutputs->all) {if (isValidPath($out->path)) {addRoot $out->path;foreach my $path (split / /, $build->get_column('outpaths')) {if (isValidPath($path)) {addRoot $path; - replacement in src/script/hydra-update-gc-roots at line 45
print STDERR " warning: output ", $out->path, " has disappeared\n" if $build->finished;print STDERR " warning: output ", $path, " has disappeared\n" if $build->finished;