Merge pull request #1126 from DeterminateSystems/build-localhost-paths
build-remote: copy missing paths from the binary cache to localhost
This commit is contained in:
@ -37,6 +37,8 @@ sub evalSucceeds {
|
||||
$jobset->discard_changes; # refresh from DB
|
||||
if ($res) {
|
||||
chomp $stdout; chomp $stderr;
|
||||
utf8::decode($stdout) or die "Invalid unicode in stdout.";
|
||||
utf8::decode($stderr) or die "Invalid unicode in stderr.";
|
||||
print STDERR "Evaluation unexpectedly failed for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg;
|
||||
print STDERR "STDOUT: $stdout\n" if $stdout ne "";
|
||||
print STDERR "STDERR: $stderr\n" if $stderr ne "";
|
||||
@ -50,6 +52,8 @@ sub evalFails {
|
||||
$jobset->discard_changes; # refresh from DB
|
||||
if (!$res) {
|
||||
chomp $stdout; chomp $stderr;
|
||||
utf8::decode($stdout) or die "Invalid unicode in stdout.";
|
||||
utf8::decode($stderr) or die "Invalid unicode in stderr.";
|
||||
print STDERR "Evaluation unexpectedly succeeded for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg;
|
||||
print STDERR "STDOUT: $stdout\n" if $stdout ne "";
|
||||
print STDERR "STDERR: $stderr\n" if $stderr ne "";
|
||||
@ -61,6 +65,8 @@ sub runBuild {
|
||||
my ($build) = @_;
|
||||
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-queue-runner", "-vvvv", "--build-one", $build->id));
|
||||
if ($res) {
|
||||
utf8::decode($stdout) or die "Invalid unicode in stdout.";
|
||||
utf8::decode($stderr) or die "Invalid unicode in stderr.";
|
||||
print STDERR "Queue runner stdout: $stdout\n" if $stdout ne "";
|
||||
print STDERR "Queue runner stderr: $stderr\n" if $stderr ne "";
|
||||
}
|
||||
@ -70,6 +76,8 @@ sub runBuild {
|
||||
sub sendNotifications() {
|
||||
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-notify", "--queued-only"));
|
||||
if ($res) {
|
||||
utf8::decode($stdout) or die "Invalid unicode in stdout.";
|
||||
utf8::decode($stderr) or die "Invalid unicode in stderr.";
|
||||
print STDERR "hydra notify stdout: $stdout\n" if $stdout ne "";
|
||||
print STDERR "hydra notify stderr: $stderr\n" if $stderr ne "";
|
||||
}
|
||||
|
Reference in New Issue
Block a user