mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 00:56:15 +02:00
build-remote.pl.in: Add some more trace messages
This allows hydra-build to keep track of the actual build time (so excluding time required to copy closures around).
This commit is contained in:
parent
bab8d9b52a
commit
5ef2453139
1 changed files with 2 additions and 0 deletions
|
@ -259,11 +259,13 @@ close UPLOADLOCK;
|
||||||
|
|
||||||
# Perform the build.
|
# Perform the build.
|
||||||
print STDERR "building ‘$drvPath’ on ‘$hostName’\n";
|
print STDERR "building ‘$drvPath’ on ‘$hostName’\n";
|
||||||
|
print STDERR "@ build-remote-start $drvPath $hostName\n" if $printBuildTrace;
|
||||||
writeInt(6, $to) or die; # == cmdBuildPaths
|
writeInt(6, $to) or die; # == cmdBuildPaths
|
||||||
writeStrings([$drvPath], $to);
|
writeStrings([$drvPath], $to);
|
||||||
writeInt($maxSilentTime, $to);
|
writeInt($maxSilentTime, $to);
|
||||||
writeInt($buildTimeout, $to);
|
writeInt($buildTimeout, $to);
|
||||||
my $res = readInt($from);
|
my $res = readInt($from);
|
||||||
|
print STDERR "@ build-remote-done $drvPath $hostName\n" if $printBuildTrace;
|
||||||
if ($res != 0) {
|
if ($res != 0) {
|
||||||
my $msg = decode("utf-8", readString($from));
|
my $msg = decode("utf-8", readString($from));
|
||||||
print STDERR "error: $msg on ‘$hostName’\n";
|
print STDERR "error: $msg on ‘$hostName’\n";
|
||||||
|
|
Loading…
Reference in a new issue