lix:installcheck / functional-build-remote-trustless-should-fail-0 sometimes fails during build #506

Open
opened 2024-09-09 08:08:11 +00:00 by r-vdp · 1 comment

Describe the bug

I get an intermittent test failure when building lix. Upon rebuilding, the test succeeded, so it seems to be flaky somehow.

lix> 153/163 lix:installcheck / functional-build-remote-trustless-should-fail-0             FAIL             5.42s   exit status 1
lix> >>> MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MESON_BUILD_ROOT=/build/source/build MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_e
rror=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=177 /nix/store/pgb120fb7srbh418v4i
2a70aq1w9dawd-python3-3.12.5/bin/python3 /build/source/meson/run-test.py build-remote-trustless-should-fail-0.sh
lix>  ✀
lix> stdout:
lix> /nix/store/c17fi99mv3ppivw7iadxh07w1cwyfsj4-build-remote-input-2
lix> [FAIL]
lix> stderr:
lix> ++(common/vars-and-functions.sh:286) trap onError ERR
lix> +(init.sh:6) test -n /build/nix-test/build-remote-trustless-should-fail-0
lix> +(init.sh:7) test -d /build/nix-test/build-remote-trustless-should-fail-0
lix> +(init.sh:8) chmod -R u+w /build/nix-test/build-remote-trustless-should-fail-0
lix> +(init.sh:10) killDaemon
lix> +(common/vars-and-functions.sh:117) [[ '' == '' ]]
lix> +(common/vars-and-functions.sh:118) return
lix> +(init.sh:11) rm -rf /build/nix-test/build-remote-trustless-should-fail-0
lix> +(init.sh:13) mkdir /build/nix-test/build-remote-trustless-should-fail-0
lix> +(init.sh:15) mkdir /build/nix-test/build-remote-trustless-should-fail-0/store
lix> +(init.sh:16) mkdir /build/nix-test/build-remote-trustless-should-fail-0/var
lix> +(init.sh:17) mkdir -p /build/nix-test/build-remote-trustless-should-fail-0/var/log/nix/drvs
lix> +(init.sh:18) mkdir /build/nix-test/build-remote-trustless-should-fail-0/var/nix
lix> +(init.sh:19) mkdir /build/nix-test/build-remote-trustless-should-fail-0/etc
lix> +(init.sh:21) cat
lix> ++(init.sh:21) whoami
lix> +(init.sh:34) cat
lix> +(init.sh:41) nix-store --init
lix> +(init.sh:44) test -e /build/nix-test/build-remote-trustless-should-fail-0/var/nix/db/db.sqlite
lix> +++(/build/source/build/tests/functional/common/vars-and-functions.sh:286) trap onError ERR
lix> ++(common.sh:8) [[ -n '' ]]
lix> +(build-remote-trustless-should-fail-0.sh:3) enableFeatures daemon-trust-override
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:233) local features=daemon-trust-override
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:234) sed -i 's/experimental-features .*/& daemon-trust-override/' /build/nix-test/build-remote-trus
tless-should-fail-0/etc/nix.conf
lix> +(build-remote-trustless-should-fail-0.sh:5) restartDaemon
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:136) [[ -z '' ]]
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:136) return 0
lix> +(build-remote-trustless-should-fail-0.sh:7) requireSandboxSupport
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:172) canUseSandbox
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:168) [[ -n 1 ]]
lix> +(build-remote-trustless-should-fail-0.sh:8) [[ /nix/store/klq8q81dhz3ijg5n1rhivf8rxyl65jkv-busybox-static-x86_64-unknown-linux-musl-1.36.1/bin/busybox =~ busybox ]]
lix> +(build-remote-trustless-should-fail-0.sh:10) unset NIX_STORE_DIR
lix> +(build-remote-trustless-should-fail-0.sh:11) unset NIX_STATE_DIR
lix> +(build-remote-trustless-should-fail-0.sh:15) nix-build build-hook.nix -A passthru.input2 -o /build/nix-test/build-remote-trustless-should-fail-0/input2 --arg busybox
/nix/store/klq8q81dhz3ijg5n1rhivf8rxyl65jkv-busybox-static-x86_64-unknown-linux-musl-1.36.1/bin/busybox --store /build/nix-test/build-remote-trustless-should-fail-0/local -
-option system-features bar
lix> this derivation will be built:
lix>   /nix/store/lzkp1wpmiwigj0d0v2lp264niypwcyir-build-remote-input-2.drv
lix> building '/nix/store/lzkp1wpmiwigj0d0v2lp264niypwcyir-build-remote-input-2.drv'...
lix> hi
lix> +(build-remote-trustless-should-fail-0.sh:25) file=build-hook.nix
lix> ++(build-remote-trustless-should-fail-0.sh:26) readlink -e ./nix-daemon-untrusting.sh
lix> +(build-remote-trustless-should-fail-0.sh:26) prog=/build/source/build/tests/functional/nix-daemon-untrusting.sh
lix> +(build-remote-trustless-should-fail-0.sh:27) proto=ssh-ng
lix> +(build-remote-trustless-should-fail-0.sh:29) expectStderr 1 source build-remote-trustless.sh
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:210) local expected res
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:211) expected=1
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:212) shift
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:213) source build-remote-trustless.sh
lix> +(build-remote-trustless-should-fail-0.sh:30) grepQuiet 'cannot add path '\''[^ ]*'\'' because it lacks a signature by a trusted key'
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:273) grep 'cannot add path '\''[^ ]*'\'' because it lacks a signature by a trusted key'
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:213) res=1
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:214) [[ 1 -ne 1 ]]
lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:218) return 0
lix> ++(build-remote-trustless-should-fail-0.sh:30) onError
lix> ++(/build/source/build/tests/functional/common/vars-and-functions.sh:244) set +x
lix> build-remote-trustless-should-fail-0.sh: test failed at:
lix>   main in build-remote-trustless-should-fail-0.sh:30

Steps To Reproduce

I simply build lix from HEAD, using the overlay from lix-module.

Expected behavior

No test failures.

nix --version output

nix (Lix, like Nix) 2.92.0-dev

Additional context

Add any other context about the problem here.

## Describe the bug I get an intermittent test failure when building lix. Upon rebuilding, the test succeeded, so it seems to be flaky somehow. ``` lix> 153/163 lix:installcheck / functional-build-remote-trustless-should-fail-0 FAIL 5.42s exit status 1 lix> >>> MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MESON_BUILD_ROOT=/build/source/build MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_e rror=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=177 /nix/store/pgb120fb7srbh418v4i 2a70aq1w9dawd-python3-3.12.5/bin/python3 /build/source/meson/run-test.py build-remote-trustless-should-fail-0.sh lix> ✀ lix> stdout: lix> /nix/store/c17fi99mv3ppivw7iadxh07w1cwyfsj4-build-remote-input-2 lix> [FAIL] lix> stderr: lix> ++(common/vars-and-functions.sh:286) trap onError ERR lix> +(init.sh:6) test -n /build/nix-test/build-remote-trustless-should-fail-0 lix> +(init.sh:7) test -d /build/nix-test/build-remote-trustless-should-fail-0 lix> +(init.sh:8) chmod -R u+w /build/nix-test/build-remote-trustless-should-fail-0 lix> +(init.sh:10) killDaemon lix> +(common/vars-and-functions.sh:117) [[ '' == '' ]] lix> +(common/vars-and-functions.sh:118) return lix> +(init.sh:11) rm -rf /build/nix-test/build-remote-trustless-should-fail-0 lix> +(init.sh:13) mkdir /build/nix-test/build-remote-trustless-should-fail-0 lix> +(init.sh:15) mkdir /build/nix-test/build-remote-trustless-should-fail-0/store lix> +(init.sh:16) mkdir /build/nix-test/build-remote-trustless-should-fail-0/var lix> +(init.sh:17) mkdir -p /build/nix-test/build-remote-trustless-should-fail-0/var/log/nix/drvs lix> +(init.sh:18) mkdir /build/nix-test/build-remote-trustless-should-fail-0/var/nix lix> +(init.sh:19) mkdir /build/nix-test/build-remote-trustless-should-fail-0/etc lix> +(init.sh:21) cat lix> ++(init.sh:21) whoami lix> +(init.sh:34) cat lix> +(init.sh:41) nix-store --init lix> +(init.sh:44) test -e /build/nix-test/build-remote-trustless-should-fail-0/var/nix/db/db.sqlite lix> +++(/build/source/build/tests/functional/common/vars-and-functions.sh:286) trap onError ERR lix> ++(common.sh:8) [[ -n '' ]] lix> +(build-remote-trustless-should-fail-0.sh:3) enableFeatures daemon-trust-override lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:233) local features=daemon-trust-override lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:234) sed -i 's/experimental-features .*/& daemon-trust-override/' /build/nix-test/build-remote-trus tless-should-fail-0/etc/nix.conf lix> +(build-remote-trustless-should-fail-0.sh:5) restartDaemon lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:136) [[ -z '' ]] lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:136) return 0 lix> +(build-remote-trustless-should-fail-0.sh:7) requireSandboxSupport lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:172) canUseSandbox lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:168) [[ -n 1 ]] lix> +(build-remote-trustless-should-fail-0.sh:8) [[ /nix/store/klq8q81dhz3ijg5n1rhivf8rxyl65jkv-busybox-static-x86_64-unknown-linux-musl-1.36.1/bin/busybox =~ busybox ]] lix> +(build-remote-trustless-should-fail-0.sh:10) unset NIX_STORE_DIR lix> +(build-remote-trustless-should-fail-0.sh:11) unset NIX_STATE_DIR lix> +(build-remote-trustless-should-fail-0.sh:15) nix-build build-hook.nix -A passthru.input2 -o /build/nix-test/build-remote-trustless-should-fail-0/input2 --arg busybox /nix/store/klq8q81dhz3ijg5n1rhivf8rxyl65jkv-busybox-static-x86_64-unknown-linux-musl-1.36.1/bin/busybox --store /build/nix-test/build-remote-trustless-should-fail-0/local - -option system-features bar lix> this derivation will be built: lix> /nix/store/lzkp1wpmiwigj0d0v2lp264niypwcyir-build-remote-input-2.drv lix> building '/nix/store/lzkp1wpmiwigj0d0v2lp264niypwcyir-build-remote-input-2.drv'... lix> hi lix> +(build-remote-trustless-should-fail-0.sh:25) file=build-hook.nix lix> ++(build-remote-trustless-should-fail-0.sh:26) readlink -e ./nix-daemon-untrusting.sh lix> +(build-remote-trustless-should-fail-0.sh:26) prog=/build/source/build/tests/functional/nix-daemon-untrusting.sh lix> +(build-remote-trustless-should-fail-0.sh:27) proto=ssh-ng lix> +(build-remote-trustless-should-fail-0.sh:29) expectStderr 1 source build-remote-trustless.sh lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:210) local expected res lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:211) expected=1 lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:212) shift lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:213) source build-remote-trustless.sh lix> +(build-remote-trustless-should-fail-0.sh:30) grepQuiet 'cannot add path '\''[^ ]*'\'' because it lacks a signature by a trusted key' lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:273) grep 'cannot add path '\''[^ ]*'\'' because it lacks a signature by a trusted key' lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:213) res=1 lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:214) [[ 1 -ne 1 ]] lix> +(/build/source/build/tests/functional/common/vars-and-functions.sh:218) return 0 lix> ++(build-remote-trustless-should-fail-0.sh:30) onError lix> ++(/build/source/build/tests/functional/common/vars-and-functions.sh:244) set +x lix> build-remote-trustless-should-fail-0.sh: test failed at: lix> main in build-remote-trustless-should-fail-0.sh:30 ``` ## Steps To Reproduce I simply build lix from HEAD, using the overlay from lix-module. ## Expected behavior No test failures. ## `nix --version` output nix (Lix, like Nix) 2.92.0-dev ## Additional context Add any other context about the problem here.
r-vdp added the
bug
label 2024-09-09 08:08:11 +00:00
Owner

I think I've heard reports of this before, thanks for reporting it!

I think I've heard reports of this before, thanks for reporting it!
jade added the
testing/flakey
testing
labels 2024-09-14 00:06:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#506
No description provided.