Open adminy opened 3 days ago
Also this test is failing on newer version:
ran test tests/functional/remote-store.sh... [FAIL]
+ source common.sh
++ set -eu -o pipefail
++ [[ -z '' ]]
++ COMMON_SH_SOURCED=1
++++ dirname common.sh
+++ readlink -f .
++ source /tmp/nix-build-nix-2.22.2.drv-0/source/tests/functional/common/vars-and-functions.sh
+++ set -eu -o pipefail
+++ [[ -z '' ]]
+++ COMMON_VARS_AND_FUNCTIONS_SH_SOURCED=1
+++ set +x
+++ trap onError ERR
++ [[ -n '' ]]
+ clearStore
+ echo 'clearing store...'
clearing store...
+ chmod -R +w /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/store
+ rm -rf /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/store
+ mkdir /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/store
+ rm -rf /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/var/nix
+ mkdir /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/var/nix
+ clearProfiles
+ profiles=/tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/test-home/.local/state/nix/profiles
+ rm -rf /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/test-home/.local/state/nix/profiles
+ nix --store 'ssh-ng://localhost?remote-store=/tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/other-stor>
warning: 'doctor' is a deprecated alias for 'config check'
Running checks against store uri: ssh-ng://localhost
[PASS] Client protocol matches store protocol.
[INFO] You are trusted by store uri: ssh-ng://localhost
+ nix --store 'ssh-ng://localhost?remote-store=/tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/other-stor>
+ jq -e .trusted
1
+ startDaemon
+ [[ '' != '' ]]
+ rm -f /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/dSocket
+ _NIX_TEST_DAEMON_PID=24656
+ export _NIX_TEST_DAEMON_PID
+ (( i = 0 ))
+ (( i < 300 ))
+ [[ -S /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/dSocket ]]
+ sleep 0.1
+ PATH=/nix/store/dy8lxl6147340jwl6plq6vanii7dbwd9-nix-2.22.2/bin:/nix/store/c0x6ljv1blsrg8b26ga9afw2ijvb2kfw-p>
+ nix --extra-experimental-features nix-command daemon
+ (( i++ ))
+ (( i < 300 ))
+ [[ -S /tmp/nix-build-nix-2.22.2.drv-0/nix-test/remote-store/dSocket ]]
+ DAEMON_STARTED=1
+ break
+ [[ -z x ]]
+ trap killDaemon EXIT
+ NIX_REMOTE_OLD=
+ export NIX_REMOTE=daemon
+ NIX_REMOTE=daemon
+ isDaemonNewer 2.15pre0
+ [[ -n '' ]]
+ return 0
+ nix store info --json
+ jq -e .trusted
accepted connection from pid 24784, user 0
0
+ export NIX_REMOTE=daemon
+ NIX_REMOTE=daemon
+ isDaemonNewer 2.15pre0
+ [[ -n '' ]]
+ return 0
+ nix store info --json
+ jq -e .trusted
accepted connection from pid 24784, user 0
0
+ grep 'You are trusted by'
accepted connection from pid 24822, user 0
++ onError
++ set +x
remote-store.sh: test failed at:
main in remote-store.sh:17
make: *** [mk/lib.mk:91: tests/functional/remote-store.sh.test] Error 1
Describe the bug
When building the
nix
package derivation, the tests are failing. This occurs on a containerized linux nix binary, running on macos with a virtual filesystem volume.Note the error is:
found here:
Steps To Reproduce
nixos/nix:2.21.2
in dockerlinux/arm64/v8
nix-2.22.2
Expected behavior
The lock files are hashed and it doesn't create files that are too long.
nix-env --version
output nix-env (Nix) 2.21.2Priorities
Add :+1: to issues you find important.