Die TABs die
[?]
Dec 4, 2011, 9:05 PM
EDRUQ4UK643SUCYMMTS2JS4N3BHARLKRDWRH3QAYWDMWRAMPNAOQCDependencies
- [2]
6ZSLRO7MfetchInputGit: Populate TopGit branches when on a topic branch. - [3]
Y5DJHUBMAllow Subversion inputs to specify a revision number. - [4]
V2MLUZRPRandom indentation fix - [5]
BMSQD2ZHIndentation - [6]
ARD6Z67TDo incremental SVN checkouts - [7]
3XTHEUMP* Implemented the clone feature. - [8]
BK24VA6Q* for git inputs, check latest revision of branch (defaults to master for now), if there is change, only use input if last checkout was > hour ago. - [9]
OOQ2D3KC* Refactoring: move fetchInput out of hydra_scheduler into a separate - [10]
CHQEG6WYHydra/29: Added timeout to svn/git checkouts, job evaluation - [11]
A22P7HCOhydra: at evaluation, check if path is already built, and mark as built in stead of adding to the queue. - [12]
KQS7DSKJ* Clean up indentation. - [13]
FM4O2L4Mhydra: if evaluator sees cached build, also add the buildproducts - [14]
JZE7DC2FWhitespace - [15]
R3ON2RJ3hydra: missing argument
Change contents
- replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 50
my ($outPath) = @_;my ($outPath) = @_; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 176
# First figure out the last-modified revision of the URI.my @cmd = (["svn", "ls", "-v", "--depth", "empty", $uri],"|", ["sed", 's/^ *\([0-9]*\).*/\1/']);die "Cannot get head revision of Subversion repository at `$uri':\n$stderr"unless IPC::Run::run(@cmd, \$stdout, \$stderr);$revision = $stdout; chomp $revision;# First figure out the last-modified revision of the URI.my @cmd = (["svn", "ls", "-v", "--depth", "empty", $uri],"|", ["sed", 's/^ *\([0-9]*\).*/\1/']);die "Cannot get head revision of Subversion repository at `$uri':\n$stderr"unless IPC::Run::run(@cmd, \$stdout, \$stderr);$revision = $stdout; chomp $revision; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 197
# No, do a checkout. The working copy is reused between# invocations to speed things up.mkpath(scmPath . "/svn");my $wcPath = scmPath . "/svn" . sha256_hex($uri) . "/svn-checkout";# No, do a checkout. The working copy is reused between# invocations to speed things up.mkpath(scmPath . "/svn");my $wcPath = scmPath . "/svn" . sha256_hex($uri) . "/svn-checkout"; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 207
if ($checkout) {$storePath = addToStore($wcPath, 1, "sha256");} else {# Hm, if the Nix Perl bindings supported filters in# addToStore(), then we wouldn't need to make a copy here.my $tmpDir = File::Temp->newdir("hydra-svn-export.XXXXXX", CLEANUP => 1, TMPDIR => 1) or die;(system "svn", "export", $wcPath, "$tmpDir/svn-export", "--quiet") == 0 or die "svn export failed";$storePath = addToStore("$tmpDir/svn-export", 1, "sha256");}if ($checkout) {$storePath = addToStore($wcPath, 1, "sha256");} else {# Hm, if the Nix Perl bindings supported filters in# addToStore(), then we wouldn't need to make a copy here.my $tmpDir = File::Temp->newdir("hydra-svn-export.XXXXXX", CLEANUP => 1, TMPDIR => 1) or die;(system "svn", "export", $wcPath, "$tmpDir/svn-export", "--quiet") == 0 or die "svn export failed";$storePath = addToStore("$tmpDir/svn-export", 1, "sha256");} - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 354
# This is a TopGit branch. Fetch all the topic branches so# that builders can run "tg patch" and similar.(my $res, $stdout, $stderr) = captureStdoutStderr(600,("tg", "remote", "--populate", "origin"));# This is a TopGit branch. Fetch all the topic branches so# that builders can run "tg patch" and similar.(my $res, $stdout, $stderr) = captureStdoutStderr(600,("tg", "remote", "--populate", "origin")); - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 359
print STDERR "Warning: `tg remote --populate origin' failed:\n$stderr" unless $res;print STDERR "Warning: `tg remote --populate origin' failed:\n$stderr" unless $res; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 658
die unless $@ eq "timeout\n"; # propagate unexpected errorsreturn (undef, undef, undef);die unless $@ eq "timeout\n"; # propagate unexpected errorsreturn (undef, undef, undef); - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 661
return ($res, $stdout, $stderr);return ($res, $stdout, $stderr); - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 714
open LIST, "$outPath/nix-support/hydra-build-products" or die;while (<LIST>) {/^([\w\-]+)\s+([\w\-]+)\s+(\S+)(\s+(\S+))?$/ or next;my $type = $1;my $subtype = $2 eq "none" ? "" : $2;my $path = $3;my $defaultPath = $5;next unless -e $path;open LIST, "$outPath/nix-support/hydra-build-products" or die;while (<LIST>) {/^([\w\-]+)\s+([\w\-]+)\s+(\S+)(\s+(\S+))?$/ or next;my $type = $1;my $subtype = $2 eq "none" ? "" : $2;my $path = $3;my $defaultPath = $5;next unless -e $path; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 723
my $fileSize, my $sha1, my $sha256;my $fileSize, my $sha1, my $sha256; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 725
# !!! validate $path, $defaultPath# !!! validate $path, $defaultPath - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 727
if (-f $path) {my $st = stat($path) or die "cannot stat $path: $!";$fileSize = $st->size;if (-f $path) {my $st = stat($path) or die "cannot stat $path: $!";$fileSize = $st->size; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 731
$sha1 = `nix-hash --flat --type sha1 $path`or die "cannot hash $path: $?";;chomp $sha1;$sha256 = `nix-hash --flat --type sha256 $path`or die "cannot hash $path: $?";;chomp $sha256;}$sha1 = `nix-hash --flat --type sha1 $path`or die "cannot hash $path: $?";;chomp $sha1;$sha256 = `nix-hash --flat --type sha256 $path`or die "cannot hash $path: $?";;chomp $sha256;} - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 740
my $name = $path eq $outPath ? "" : basename $path;my $name = $path eq $outPath ? "" : basename $path; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 742
$db->resultset('BuildProducts')->create({ build => $build->id, productnr => $productnr++, type => $type, subtype => $subtype, path => $path, filesize => $fileSize, sha1hash => $sha1, sha256hash => $sha256, name => $name, defaultpath => $defaultPath});}close LIST;$db->resultset('BuildProducts')->create({ build => $build->id, productnr => $productnr++, type => $type, subtype => $subtype, path => $path, filesize => $fileSize, sha1hash => $sha1, sha256hash => $sha256, name => $name, defaultpath => $defaultPath});}close LIST; - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 759
$db->resultset('BuildProducts')->create({ build => $build->id, productnr => $productnr++, type => "nix-build", subtype => "", path => $outPath, name => $build->nixname});$db->resultset('BuildProducts')->create({ build => $build->id, productnr => $productnr++, type => "nix-build", subtype => "", path => $outPath, name => $build->nixname}); - replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 840
$build->update({ finished => 1 });$build->update({ finished => 1 });