guix-devel/nix/libstore
Ludovic Courtès 6ef61cc4c3
daemon: Support multiplexed build output.
This allows clients to tell whether output comes from the daemon or, if
it comes from a builder, from which builder it comes.  The latter is
particularly useful when MAX-BUILD-JOBS > 1.

* nix/libstore/build.cc (DerivationGoal::tryBuildHook)
(DerivationGoal::startBuilder): Print the child's PID in "@ build-started"
traces.
(DerivationGoal::handleChildOutput): Define 'prefix', pass it to
'writeToStderr'.
* nix/libstore/globals.cc (Settings:Settings): Initialize
'multiplexedBuildOutput'.
(Settings::update): Likewise.
* nix/libstore/globals.hh (Settings)[multiplexedBuildOutput]: New field.
Update 'printBuildTrace' documentation.
* nix/libstore/worker-protocol.hh (PROTOCOL_VERSION): Bump to 0.163.
* nix/nix-daemon/nix-daemon.cc (performOp) <wopSetOptions>: Special-case
"multiplexed-build-output" and remove "use-ssh-substituter".
* guix/store.scm (set-build-options): Add #:multiplexed-build-output?
and honor it.
(%protocol-version): Bump to #x163.
* tests/store.scm ("multiplexed-build-output"): New test.

fixlet
2018-10-15 22:40:35 +02:00
..
.gitignore
build.cc daemon: Support multiplexed build output. 2018-10-15 22:40:35 +02:00
builtins.cc perform-download: Optionally report a "download-progress" trace. 2018-09-27 23:21:53 +02:00
builtins.hh
derivations.cc
derivations.hh
gc.cc
globals.cc daemon: Support multiplexed build output. 2018-10-15 22:40:35 +02:00
globals.hh daemon: Support multiplexed build output. 2018-10-15 22:40:35 +02:00
local-store.cc daemon: Remove unused schema upgrade code. 2018-03-30 23:42:07 +02:00
local-store.hh daemon: Remove unused schema upgrade code. 2018-03-30 23:42:07 +02:00
misc.cc daemon: Remove dead code. 2018-03-30 23:42:07 +02:00
misc.hh daemon: Remove dead code. 2018-03-30 23:42:07 +02:00
optimise-store.cc
pathlocks.cc
pathlocks.hh
references.cc
references.hh
sqlite.cc
sqlite.hh
store-api.cc Remove 'guix-register' and its traces. 2018-06-14 11:17:00 +02:00
store-api.hh Remove 'guix-register' and its traces. 2018-06-14 11:17:00 +02:00
worker-protocol.hh daemon: Support multiplexed build output. 2018-10-15 22:40:35 +02:00