dramforever/nix-dram

spurious failure in `tests/check.sh`

Opened this issue · 0 comments

fogti commented
nix-dram> ran test tests/check.sh... [FAIL]
nix-dram>     common.sh: line 92: unshare: command not found
nix-dram>     ++ date +%s%N
nix-dram>     + checkBuildId=1617280807381985650
nix-dram>     + clearStore
nix-dram>     + echo 'clearing store...'
nix-dram>     clearing store...
nix-dram>     + chmod -R +w /build/nix-test/tests/check/store
nix-dram>     + rm -rf /build/nix-test/tests/check/store
nix-dram>     + mkdir /build/nix-test/tests/check/store
nix-dram>     + rm -rf /build/nix-test/tests/check/var/nix
nix-dram>     + mkdir /build/nix-test/tests/check/var/nix
nix-dram>     + nix-store --init
nix-dram>     + clearProfiles
nix-dram>     + profiles=/build/nix-test/tests/check/var/nix/profiles
nix-dram>     + rm -rf /build/nix-test/tests/check/var/nix/profiles
nix-dram>     + nix-build dependencies.nix --no-out-link
nix-dram>     these 4 derivations will be built:
nix-dram>       /build/nix-test/tests/check/store/g3b5lzvswzm172h4rnsj76x0m6w9fzd8-dependencies-input-0.drv
nix-dram>       /build/nix-test/tests/check/store/hv79sbby3hsws4253iqfivj679zd57wd-dependencies-input-2.drv
nix-dram>       /build/nix-test/tests/check/store/vjbznnz2ap067b6n1xm9y1h4x6n9qni4-dependencies-input-1.drv
nix-dram>       /build/nix-test/tests/check/store/6mwvf8g72bjmxbzp2qarj8kgyzlins6d-dependencies-top.drv
nix-dram>     building '/build/nix-test/tests/check/store/vjbznnz2ap067b6n1xm9y1h4x6n9qni4-dependencies-input-1.drv'...
nix-dram>     building '/build/nix-test/tests/check/store/g3b5lzvswzm172h4rnsj76x0m6w9fzd8-dependencies-input-0.drv'...
nix-dram>     building '/build/nix-test/tests/check/store/hv79sbby3hsws4253iqfivj679zd57wd-dependencies-input-2.drv'...
nix-dram>     building '/build/nix-test/tests/check/store/6mwvf8g72bjmxbzp2qarj8kgyzlins6d-dependencies-top.drv'...
nix-dram>     FOO
nix-dram>     /build/nix-test/tests/check/store/lqb8j0vd5zgd7d1xf1gg1mqphn3aqi28-dependencies-top
nix-dram>     + nix-build dependencies.nix --no-out-link --check
nix-dram>     checking outputs of '/build/nix-test/tests/check/store/6mwvf8g72bjmxbzp2qarj8kgyzlins6d-dependencies-top.drv'...
nix-dram>     FOO
nix-dram>     warning: rewriting hashes in '/build/nix-test/tests/check/store/nispmxiw540qp0gzx55zi24rnrsg6850-dependencies-top'; cross fingers
nix-dram>     /build/nix-test/tests/check/store/lqb8j0vd5zgd7d1xf1gg1mqphn3aqi28-dependencies-top
nix-dram>     + nix-build check.nix -A failed --argstr checkBuildId 1617280807381985650 --no-out-link
nix-dram>     + status=100
nix-dram>     + '[' 100 = 100 ']'
nix-dram>     + checkBuildTempDirRemoved /build/nix-test/tests/check/log
nix-dram>     ++ sed -n s/CHECK_TMPDIR=//p /build/nix-test/tests/check/log
nix-dram>     ++ head -1
nix-dram>     + buildDir=/build/nix-build-failed.drv-0
nix-dram>     + checkBuildIdFile=/build/nix-build-failed.drv-0/checkBuildId
nix-dram>     + [[ ! -f /build/nix-build-failed.drv-0/checkBuildId ]]
nix-dram>     + nix-build check.nix -A failed --argstr checkBuildId 1617280807381985650 --no-out-link --keep-failed
nix-dram>     + status=100
nix-dram>     + '[' 100 = 100 ']'
nix-dram>     + checkBuildTempDirRemoved /build/nix-test/tests/check/log
nix-dram>     ++ head -1
nix-dram>     ++ sed -n s/CHECK_TMPDIR=//p /build/nix-test/tests/check/log
nix-dram>     + buildDir=/build/nix-build-failed.drv-0
nix-dram>     + checkBuildIdFile=/build/nix-build-failed.drv-0/checkBuildId
nix-dram>     + [[ ! -f /build/nix-build-failed.drv-0/checkBuildId ]]
nix-dram>     + grep 1617280807381985650 /build/nix-build-failed.drv-0/checkBuildId
nix-dram>     1617280807381985650
nix-dram>     + nix-build check.nix -A deterministic --argstr checkBuildId 1617280807381985650 --no-out-link
nix-dram>     /build/nix-test/tests/check/store/8gsgl4lqksxf4kx0b6bzaaalfabj8xnj-deterministic
nix-dram>     + checkBuildTempDirRemoved /build/nix-test/tests/check/log
nix-dram>     ++ sed -n s/CHECK_TMPDIR=//p /build/nix-test/tests/check/log
nix-dram>     ++ head -1
nix-dram>     + buildDir=/build/nix-build-deterministic.drv-0
nix-dram>     + checkBuildIdFile=/build/nix-build-deterministic.drv-0/checkBuildId
nix-dram>     + [[ ! -f /build/nix-build-deterministic.drv-0/checkBuildId ]]
nix-dram>     + nix-build check.nix -A deterministic --argstr checkBuildId 1617280807381985650 --no-out-link --check --keep-failed
nix-dram>     /build/nix-test/tests/check/store/8gsgl4lqksxf4kx0b6bzaaalfabj8xnj-deterministic
nix-dram>     + grep -q 'may not be deterministic' /build/nix-test/tests/check/log
nix-dram>     + checkBuildTempDirRemoved /build/nix-test/tests/check/log
nix-dram>     ++ head -1
nix-dram>     ++ sed -n s/CHECK_TMPDIR=//p /build/nix-test/tests/check/log
nix-dram>     + buildDir=/build/nix-build-deterministic.drv-0
nix-dram>     + checkBuildIdFile=/build/nix-build-deterministic.drv-0/checkBuildId
nix-dram>     + [[ ! -f /build/nix-build-deterministic.drv-0/checkBuildId ]]
nix-dram>     + nix-build check.nix -A nondeterministic --argstr checkBuildId 1617280807381985650 --no-out-link
nix-dram>     /build/nix-test/tests/check/store/chdh5yqbyrd8iwkwa75csh2c2c10fcjm-nondeterministic
nix-dram>     + checkBuildTempDirRemoved /build/nix-test/tests/check/log
nix-dram>     ++ sed -n s/CHECK_TMPDIR=//p /build/nix-test/tests/check/log
nix-dram>     ++ head -1
nix-dram>     + buildDir=/build/nix-build-nondeterministic.drv-0
nix-dram>     + checkBuildIdFile=/build/nix-build-nondeterministic.drv-0/checkBuildId
nix-dram>     + [[ ! -f /build/nix-build-nondeterministic.drv-0/checkBuildId ]]
nix-dram>     + nix-build check.nix -A nondeterministic --argstr checkBuildId 1617280807381985650 --no-out-link --check
nix-dram>     + status=104
nix-dram>     + grep 'may not be deterministic' /build/nix-test/tests/check/log
nix-dram>     error: derivation '/build/nix-test/tests/check/store/npva37akhxk2c5sab93mr2dw033y516g-nondeterministic.drv' may not be deterministic: output '/build/nix-test/tests/check/store/chdh5yqbyrd8iwkwa75csh2c2c10fcjm-nondeterministic' differs
nix-dram>     + '[' 104 = 104 ']'
nix-dram>     + checkBuildTempDirRemoved /build/nix-test/tests/check/log
nix-dram>     ++ sed -n s/CHECK_TMPDIR=//p /build/nix-test/tests/check/log
nix-dram>     ++ head -1
nix-dram>     + buildDir=/build/nix-build-nondeterministic.drv-0
nix-dram>     + checkBuildIdFile=/build/nix-build-nondeterministic.drv-0/checkBuildId
nix-dram>     + [[ ! -f /build/nix-build-nondeterministic.drv-0/checkBuildId ]]
nix-dram>     + nix-build check.nix -A nondeterministic --argstr checkBuildId 1617280807381985650 --no-out-link --check --keep-failed
nix-dram>     + status=104
nix-dram>     + grep 'may not be deterministic' /build/nix-test/tests/check/log
nix-dram>     error: derivation '/build/nix-test/tests/check/store/npva37akhxk2c5sab93mr2dw033y516g-nondeterministic.drv' may not be deterministic: output '/build/nix-test/tests/check/store/chdh5yqbyrd8iwkwa75csh2c2c10fcjm-nondeterministic' differs from '/build/nix-test/tests/check/store/chdh5yqbyrd8iwkwa75csh2c2c10fcjm-nondeterministic.check'
nix-dram>     + '[' 104 = 104 ']'
nix-dram>     + checkBuildTempDirRemoved /build/nix-test/tests/check/log
nix-dram>     ++ head -1
nix-dram>     ++ sed -n s/CHECK_TMPDIR=//p /build/nix-test/tests/check/log
nix-dram>     + buildDir=/build/nix-build-nondeterministic.drv-0
nix-dram>     + checkBuildIdFile=/build/nix-build-nondeterministic.drv-0/checkBuildId
nix-dram>     + [[ ! -f /build/nix-build-nondeterministic.drv-0/checkBuildId ]]
nix-dram>     + grep 1617280807381985650 /build/nix-build-nondeterministic.drv-0/checkBuildId
nix-dram>     1617280807381985650
nix-dram>     + clearStore
nix-dram>     + echo 'clearing store...'
nix-dram>     clearing store...
nix-dram>     + chmod -R +w /build/nix-test/tests/check/store
nix-dram>     + rm -rf /build/nix-test/tests/check/store
nix-dram>     + mkdir /build/nix-test/tests/check/store
nix-dram>     + rm -rf /build/nix-test/tests/check/var/nix
nix-dram>     + mkdir /build/nix-test/tests/check/var/nix
nix-dram>     + nix-store --init
nix-dram>     + clearProfiles
nix-dram>     + profiles=/build/nix-test/tests/check/var/nix/profiles
nix-dram>     + rm -rf /build/nix-test/tests/check/var/nix/profiles
nix-dram>     + nix-build dependencies.nix --no-out-link --repeat 3
nix-dram>     these 4 derivations will be built:
nix-dram>       /build/nix-test/tests/check/store/g3b5lzvswzm172h4rnsj76x0m6w9fzd8-dependencies-input-0.drv
nix-dram>       /build/nix-test/tests/check/store/hv79sbby3hsws4253iqfivj679zd57wd-dependencies-input-2.drv
nix-dram>       /build/nix-test/tests/check/store/vjbznnz2ap067b6n1xm9y1h4x6n9qni4-dependencies-input-1.drv
nix-dram>       /build/nix-test/tests/check/store/6mwvf8g72bjmxbzp2qarj8kgyzlins6d-dependencies-top.drv
nix-dram>     building '/build/nix-test/tests/check/store/vjbznnz2ap067b6n1xm9y1h4x6n9qni4-dependencies-input-1.drv' (round 1/4)...
nix-dram>     building '/build/nix-test/tests/check/store/g3b5lzvswzm172h4rnsj76x0m6w9fzd8-dependencies-input-0.drv' (round 1/4)...
nix-dram>     building '/build/nix-test/tests/check/store/vjbznnz2ap067b6n1xm9y1h4x6n9qni4-dependencies-input-1.drv' (round 2/4)...
nix-dram>     building '/build/nix-test/tests/check/store/g3b5lzvswzm172h4rnsj76x0m6w9fzd8-dependencies-input-0.drv' (round 2/4)...
nix-dram>     building '/build/nix-test/tests/check/store/vjbznnz2ap067b6n1xm9y1h4x6n9qni4-dependencies-input-1.drv' (round 3/4)...
nix-dram>     building '/build/nix-test/tests/check/store/g3b5lzvswzm172h4rnsj76x0m6w9fzd8-dependencies-input-0.drv' (round 3/4)...
nix-dram>     building '/build/nix-test/tests/check/store/vjbznnz2ap067b6n1xm9y1h4x6n9qni4-dependencies-input-1.drv' (round 4/4)...
nix-dram>     building '/build/nix-test/tests/check/store/g3b5lzvswzm172h4rnsj76x0m6w9fzd8-dependencies-input-0.drv' (round 4/4)...
nix-dram>     building '/build/nix-test/tests/check/store/hv79sbby3hsws4253iqfivj679zd57wd-dependencies-input-2.drv' (round 1/4)...
nix-dram>     building '/build/nix-test/tests/check/store/hv79sbby3hsws4253iqfivj679zd57wd-dependencies-input-2.drv' (round 2/4)...
nix-dram>     building '/build/nix-test/tests/check/store/hv79sbby3hsws4253iqfivj679zd57wd-dependencies-input-2.drv' (round 3/4)...
nix-dram>     building '/build/nix-test/tests/check/store/hv79sbby3hsws4253iqfivj679zd57wd-dependencies-input-2.drv' (round 4/4)...
nix-dram>     building '/build/nix-test/tests/check/store/6mwvf8g72bjmxbzp2qarj8kgyzlins6d-dependencies-top.drv' (round 1/4)...
nix-dram>     FOO
nix-dram>     building '/build/nix-test/tests/check/store/6mwvf8g72bjmxbzp2qarj8kgyzlins6d-dependencies-top.drv' (round 2/4)...
nix-dram>     FOO
nix-dram>     building '/build/nix-test/tests/check/store/6mwvf8g72bjmxbzp2qarj8kgyzlins6d-dependencies-top.drv' (round 3/4)...
nix-dram>     FOO
nix-dram>     building '/build/nix-test/tests/check/store/6mwvf8g72bjmxbzp2qarj8kgyzlins6d-dependencies-top.drv' (round 4/4)...
nix-dram>     FOO
nix-dram>     /build/nix-test/tests/check/store/lqb8j0vd5zgd7d1xf1gg1mqphn3aqi28-dependencies-top
nix-dram>     + nix-build check.nix -A nondeterministic --no-out-link --repeat 1
nix-dram>     + status=1
nix-dram>     + '[' 1 = 1 ']'
nix-dram>     + grep 'differs from previous round' /build/nix-test/tests/check/log
nix-dram>     error: output '/build/nix-test/tests/check/store/9q2zsf368k3pqbz2pr0vids798b9a1v4-nondeterministic' of '/build/nix-test/tests/check/store/yxrldzdwf9n9p009jdmfly22ihjdw2s7-nondeterministic.drv' differs from previous round
nix-dram>     ++ nix-build check.nix -A fetchurl --no-out-link
nix-dram>     this derivation will be built:
nix-dram>       /build/nix-test/tests/check/store/3jr2088222i639n26f339hxjhgvqfcgn-eval-okay-xml.exp.xml.drv
nix-dram>     building '/build/nix-test/tests/check/store/3jr2088222i639n26f339hxjhgvqfcgn-eval-okay-xml.exp.xml.drv'...
nix-dram>     + path=/build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml
nix-dram>     + chmod +w /build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml
nix-dram>     + echo foo
nix-dram>     + chmod -w /build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml
nix-dram>     + nix-build check.nix -A fetchurl --no-out-link --check
nix-dram>     checking outputs of '/build/nix-test/tests/check/store/3jr2088222i639n26f339hxjhgvqfcgn-eval-okay-xml.exp.xml.drv'...
nix-dram>     /build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml
nix-dram>     ++ cat /build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml
nix-dram>     + [[ foo = foo ]]
nix-dram>     + nix-build check.nix -A fetchurl --no-out-link --repair
nix-dram>     checking path '/build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml'...
nix-dram>     path '/build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml' is corrupted or missing!
nix-dram>     repairing outputs of '/build/nix-test/tests/check/store/3jr2088222i639n26f339hxjhgvqfcgn-eval-okay-xml.exp.xml.drv'...
nix-dram>     /build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml
nix-dram>     ++ cat /build/nix-test/tests/check/store/48drh4fpbcmfykrd98k3md0sm2xjxvsz-eval-okay-xml.exp.xml
nix-dram>     + [[ <?xml version='1.0' encoding='utf-8'?>
nix-dram>     <expr>
nix-dram>       <attrs>
nix-dram>         <attr name="a">
nix-dram>           <string value="foo" />
nix-dram>         </attr>
nix-dram>         <attr name="at">
nix-dram>           <function>
nix-dram>             <attrspat name="args">
nix-dram>               <attr name="x" />
nix-dram>               <attr name="y" />
nix-dram>               <attr name="z" />
nix-dram>             </attrspat>
nix-dram>           </function>
nix-dram>         </attr>
nix-dram>         <attr name="b">
nix-dram>           <string value="bar" />
nix-dram>         </attr>
nix-dram>         <attr name="c">
nix-dram>           <string value="foobar" />
nix-dram>         </attr>
nix-dram>         <attr name="ellipsis">
nix-dram>           <function>
nix-dram>             <attrspat ellipsis="1">
nix-dram>               <attr name="x" />
nix-dram>               <attr name="y" />
nix-dram>               <attr name="z" />
nix-dram>             </attrspat>
nix-dram>           </function>
nix-dram>         </attr>
nix-dram>         <attr name="f">
nix-dram>           <function>
nix-dram>             <attrspat>
nix-dram>               <attr name="z" />
nix-dram>               <attr name="x" />
nix-dram>               <attr name="y" />
nix-dram>             </attrspat>
nix-dram>           </function>
nix-dram>         </attr>
nix-dram>         <attr name="id">
nix-dram>           <function>
nix-dram>             <varpat name="x" />
nix-dram>           </function>
nix-dram>         </attr>
nix-dram>         <attr name="x">
nix-dram>           <int value="123" />
nix-dram>         </attr>
nix-dram>         <attr name="y">
nix-dram>           <float value="567.89" />
nix-dram>         </attr>
nix-dram>       </attrs>
nix-dram>     </expr> != foo ]]
nix-dram>     + nix-build check.nix -A hashmismatch --no-out-link
nix-dram>     this derivation will be built:
nix-dram>       /build/nix-test/tests/check/store/dg0fqn0xc0fxk4cr46mlbqry0gzvy2nw-dummy.drv
nix-dram>     building '/build/nix-test/tests/check/store/dg0fqn0xc0fxk4cr46mlbqry0gzvy2nw-dummy.drv'...
nix-dram>     error: hash mismatch in fixed-output derivation '/build/nix-test/tests/check/store/dg0fqn0xc0fxk4cr46mlbqry0gzvy2nw-dummy.drv':
nix-dram>              specified: sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
nix-dram>                 got:    sha256-0qhPS4tlCTfsj3PNi+LHSt1akRumTfJ0WO2CKdqASiY=
nix-dram>     + status=102
nix-dram>     + '[' 102 = 102 ']'
nix-dram>     + echo -n
nix-dram>     + nix-build check.nix -A hashmismatch --no-out-link
nix-dram>     this derivation will be built:
nix-dram>       /build/nix-test/tests/check/store/dg0fqn0xc0fxk4cr46mlbqry0gzvy2nw-dummy.drv
nix-dram>     building '/build/nix-test/tests/check/store/dg0fqn0xc0fxk4cr46mlbqry0gzvy2nw-dummy.drv'...
nix-dram>     error: hash mismatch in fixed-output derivation '/build/nix-test/tests/check/store/dg0fqn0xc0fxk4cr46mlbqry0gzvy2nw-dummy.drv':
nix-dram>              specified: sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
nix-dram>                 got:    sha256-0qhPS4tlCTfsj3PNi+LHSt1akRumTfJ0WO2CKdqASiY=
nix-dram> make: *** [mk/lib.mk:106: tests/check.sh.test] Error 102
nix-dram> make: *** Waiting for unfinished jobs....
nix-dram> ran test tests/signing.sh... [PASS]
nix-dram> ran test tests/post-hook.sh... [PASS]
nix-dram> ran test tests/recursive.sh... [PASS]
error: --- Error ------------------------------------------------------------------------------------------ nix
builder for '/nix/store/rhki9xvk1shnqiy3aki3l26zgwiygid7-nix-dram-2.4pre20210326_dd77f71.drv' failed with exit code 2
error: --- Error ------------------------------------------------------------------------------------------ nix
1 dependencies of derivation '/nix/store/h5h4an1wsnf1jvkyxgi90ysb6nm38spv-nix.conf.drv' failed to build

rerunning nixos-rebuild succeeded, so it is not easy reproducible...