Subject: bug#34441: Wrong build log-file given by Berlin build farm

From: Ludovic Courtès <[email-masked]>
Date: Tue, 12 Feb 2019 16:12:43 +0100

Hello!

Leo Famulari <[email-masked]> skribis:

> $ ./pre-inst-env guix build --no-grafts -e '(@@ (gnu packages virtualization) qemu-minimal-2.10)' --substitute-urls=https://berlin.guixsd.org
> /gnu/store/fmwazsg7rgdq7zlxmq3rviwab54gxw8f-qemu-minimal-2.10.2
> $ ./pre-inst-env guix build --no-grafts -e '(@@ (gnu packages virtualization) qemu-minimal-2.10)' --substitute-urls=https://berlin.guixsd.org -d
> /gnu/store/6k7gpas81l6bb4ds7pdxr8c9k65292vz-qemu-minimal-2.10.2.drv
> $ ./pre-inst-env guix build --no-grafts -e '(@@ (gnu packages virtualization) qemu-minimal-2.10)' --substitute-urls=https://berlin.guixsd.org --log-file                      
> https://berlin.guixsd.org/log/fmwazsg7rgdq7zlxmq3rviwab54gxw8f-qemu-minimal-2.10.2
>
> The log file shows that it belongs to a different derivation. Not to
> mention that it describes a failed build:
> ------
> TEST: tests/test-io-channel-socket... (pid=14521)
> FAIL: tests/test-io-channel-socket
> make: *** [/tmp/guix-build-qemu-minimal-2.10.2.drv-0/qemu-2.10.2/tests/Makefile.include:849: check-tests/test-io-channel-socket] Error 1
>
> Test suite failed, dumping logs.
> Backtrace:
>            4 (primitive-load "/gnu/store/5s9z2df3l8dn85nn29534yrhz1q…")
> In ice-9/eval.scm:
>    191:35  3 (_ _)
> In srfi/srfi-1.scm:
>    863:16  2 (every1 #<procedure 802440 at /gnu/store/gfprsx2m62cvq…> …)
> In /gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/gnu-build-system.scm:
>    799:28  1 (_ _)
>     369:6  0 (check #:target _ #:make-flags _ #:tests? _ # _ # _ # _)
>
> /gnu/store/gfprsx2m62cvqbh7ysc9ay9slhijvmal-module-import/guix/build/gnu-build-system.scm:369:6: In procedure check:
> Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "make" arguments: ("check") exit-status: 2 term-signal: #f stop-signal: #f] 640040>)'.
> builder for `/gnu/store/mr5zvp4wrlyiwl125qpzc9np8gnmlm26-qemu-minimal-2.10.2.drv' failed with exit code 1
> @ build-failed /gnu/store/mr5zvp4wrlyiwl125qpzc9np8gnmlm26-qemu-minimal-2.10.2.drv - 1 builder for `/gnu/store/mr5zvp4wrlyiwl125qpzc9np8gnmlm26-qemu-minimal-2.10.2.drv' failed with exit code 1
> ------

Not a bug!  :-)

Due to fixed-output derivations, there can be several derivations
mapping to a given output.  Here you just got the build log for one of
the derivations that produces
fmwazsg7rgdq7zlxmq3rviwab54gxw8f-qemu-minimal-2.10.2.

I hope that makes sense!

Ludo’.