[Nix#9831] ssh-ng test fails when remote is too new (or eqv. client is older) #65

Open
opened 2024-03-16 06:44:43 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#9831

Describe the bug

https://github.com/NixOS/nix/pull/9830/files#diff-7234a357f14107533702004c573c10a11b095da0e31b309abc1f448341362f03R117

Log
[...]
vm-test-run-remoteBuildsSshNg_local_2_3> (finished: must succeed: ssh -o StrictHostKeyChecking=no builder 'echo hello world', in 0.47 seconds)
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.584411] sshd[940]: pam_unix(sshd:session): session closed for user root
vm-test-run-remoteBuildsSshNg_local_2_3> client: must succeed: nix-build /nix/store/laqiwvpan4dkp07gpc9brp6khb11y8hs-expr.nix 2> build-output
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.587877] systemd-logind[731]: Session 1 logged out. Waiting for processes to exit.
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.589449] systemd[1]: session-1.scope: Deactivated successfully.
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.592142] systemd-logind[731]: Removed session 1.
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.833228] sshd[951]: Accepted publickey for root from 192.168.1.2 port 54768 ssh2: ED25519 SHA256:bxJvhehOxJ94anOmHeiOydWwNSY9wZIT/Q5ZjXbzOwI
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.840476] sshd[951]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.845186] systemd-logind[731]: New session 3 of user root.
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.846389] systemd[1]: Started Session 3 of User root.
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.944904] sshd[951]: pam_unix(sshd:session): session closed for user root
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.949400] systemd-logind[731]: Session 3 logged out. Waiting for processes to exit.
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.956076] systemd[1]: session-3.scope: Deactivated successfully.
vm-test-run-remoteBuildsSshNg_local_2_3> (finished: must succeed: nix-build /nix/store/laqiwvpan4dkp07gpc9brp6khb11y8hs-expr.nix 2> build-output, in 0.37 seconds)
vm-test-run-remoteBuildsSshNg_local_2_3> builder: must succeed: test -e /nix/store/xh6ph4shmiiaq21j3qyfbbgji1f4054a-hello-1
vm-test-run-remoteBuildsSshNg_local_2_3> builder # [    8.959288] systemd-logind[731]: Removed session 3.
vm-test-run-remoteBuildsSshNg_local_2_3> (finished: must succeed: test -e /nix/store/xh6ph4shmiiaq21j3qyfbbgji1f4054a-hello-1, in 0.01 seconds)
vm-test-run-remoteBuildsSshNg_local_2_3> client: must succeed: sed -e 's/^/build-output:/' build-output
vm-test-run-remoteBuildsSshNg_local_2_3> (finished: must succeed: sed -e 's/^/build-output:/' build-output, in 0.02 seconds)
vm-test-run-remoteBuildsSshNg_local_2_3> build-output:these derivations will be built:
vm-test-run-remoteBuildsSshNg_local_2_3> build-output:  /nix/store/mr6lgpsadykwvvjn5bq2llrc4ivm5lbr-hello-1.drv
vm-test-run-remoteBuildsSshNg_local_2_3> build-output:building '/nix/store/mr6lgpsadykwvvjn5bq2llrc4ivm5lbr-hello-1.drv' on 'ssh-ng://root@builder'...
vm-test-run-remoteBuildsSshNg_local_2_3> build-output:copying 1 paths...
vm-test-run-remoteBuildsSshNg_local_2_3> build-output:copying path '/nix/store/xh6ph4shmiiaq21j3qyfbbgji1f4054a-hello-1' from 'ssh-ng://root@builder'...
vm-test-run-remoteBuildsSshNg_local_2_3> client: must succeed: grep -qF Hello build-output
vm-test-run-remoteBuildsSshNg_local_2_3> client: output:
vm-test-run-remoteBuildsSshNg_local_2_3> cleanup
vm-test-run-remoteBuildsSshNg_local_2_3> kill machine (pid 8)
vm-test-run-remoteBuildsSshNg_local_2_3> builder # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/h31x3zrwrws1c3392919br8g9isvhh4x-python3-3.10.13/bin/python3.10)
[...]

Steps To Reproduce

  1. grep and uncomment remoteBuildsSshNg_local_2_3
  2. nix build .#hydraJobs.tests.remoteBuildsSshNg_local_2_3
  3. voila - or see expandable log above

Expected behavior

A clear and concise description of what you expected to happen.

nix-env --version output

Additional context

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/9831 **Describe the bug** https://github.com/NixOS/nix/pull/9830/files#diff-7234a357f14107533702004c573c10a11b095da0e31b309abc1f448341362f03R117 <details><summary>Log</summary> ``` [...] vm-test-run-remoteBuildsSshNg_local_2_3> (finished: must succeed: ssh -o StrictHostKeyChecking=no builder 'echo hello world', in 0.47 seconds) vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.584411] sshd[940]: pam_unix(sshd:session): session closed for user root vm-test-run-remoteBuildsSshNg_local_2_3> client: must succeed: nix-build /nix/store/laqiwvpan4dkp07gpc9brp6khb11y8hs-expr.nix 2> build-output vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.587877] systemd-logind[731]: Session 1 logged out. Waiting for processes to exit. vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.589449] systemd[1]: session-1.scope: Deactivated successfully. vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.592142] systemd-logind[731]: Removed session 1. vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.833228] sshd[951]: Accepted publickey for root from 192.168.1.2 port 54768 ssh2: ED25519 SHA256:bxJvhehOxJ94anOmHeiOydWwNSY9wZIT/Q5ZjXbzOwI vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.840476] sshd[951]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0) vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.845186] systemd-logind[731]: New session 3 of user root. vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.846389] systemd[1]: Started Session 3 of User root. vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.944904] sshd[951]: pam_unix(sshd:session): session closed for user root vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.949400] systemd-logind[731]: Session 3 logged out. Waiting for processes to exit. vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.956076] systemd[1]: session-3.scope: Deactivated successfully. vm-test-run-remoteBuildsSshNg_local_2_3> (finished: must succeed: nix-build /nix/store/laqiwvpan4dkp07gpc9brp6khb11y8hs-expr.nix 2> build-output, in 0.37 seconds) vm-test-run-remoteBuildsSshNg_local_2_3> builder: must succeed: test -e /nix/store/xh6ph4shmiiaq21j3qyfbbgji1f4054a-hello-1 vm-test-run-remoteBuildsSshNg_local_2_3> builder # [ 8.959288] systemd-logind[731]: Removed session 3. vm-test-run-remoteBuildsSshNg_local_2_3> (finished: must succeed: test -e /nix/store/xh6ph4shmiiaq21j3qyfbbgji1f4054a-hello-1, in 0.01 seconds) vm-test-run-remoteBuildsSshNg_local_2_3> client: must succeed: sed -e 's/^/build-output:/' build-output vm-test-run-remoteBuildsSshNg_local_2_3> (finished: must succeed: sed -e 's/^/build-output:/' build-output, in 0.02 seconds) vm-test-run-remoteBuildsSshNg_local_2_3> build-output:these derivations will be built: vm-test-run-remoteBuildsSshNg_local_2_3> build-output: /nix/store/mr6lgpsadykwvvjn5bq2llrc4ivm5lbr-hello-1.drv vm-test-run-remoteBuildsSshNg_local_2_3> build-output:building '/nix/store/mr6lgpsadykwvvjn5bq2llrc4ivm5lbr-hello-1.drv' on 'ssh-ng://root@builder'... vm-test-run-remoteBuildsSshNg_local_2_3> build-output:copying 1 paths... vm-test-run-remoteBuildsSshNg_local_2_3> build-output:copying path '/nix/store/xh6ph4shmiiaq21j3qyfbbgji1f4054a-hello-1' from 'ssh-ng://root@builder'... vm-test-run-remoteBuildsSshNg_local_2_3> client: must succeed: grep -qF Hello build-output vm-test-run-remoteBuildsSshNg_local_2_3> client: output: vm-test-run-remoteBuildsSshNg_local_2_3> cleanup vm-test-run-remoteBuildsSshNg_local_2_3> kill machine (pid 8) vm-test-run-remoteBuildsSshNg_local_2_3> builder # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/h31x3zrwrws1c3392919br8g9isvhh4x-python3-3.10.13/bin/python3.10) [...] ``` </details> **Steps To Reproduce** 1. grep and uncomment `remoteBuildsSshNg_local_2_3` 2. `nix build .#hydraJobs.tests.remoteBuildsSshNg_local_2_3` 3. voila - or see expandable log above **Expected behavior** A clear and concise description of what you expected to happen. **`nix-env --version` output** **Additional context** - Found in #9830 **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
bug
imported
labels 2024-03-16 06:44:44 +00:00
jade added the
Area/remote-builds
label 2024-05-23 00:51:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#65
No description provided.