Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All tests fail on NixOS unstable #4

Closed
yvan-sraka opened this issue Apr 27, 2020 · 4 comments · Fixed by NixOS/nixpkgs#86231
Closed

All tests fail on NixOS unstable #4

yvan-sraka opened this issue Apr 27, 2020 · 4 comments · Fixed by NixOS/nixpkgs#86231

Comments

@yvan-sraka
Copy link

Hello,

I have some issues recently while running sudo nixos-rebuild switch --upgrade, and after a quick investigation it seems that is because of the cargo test command of nix-du package failed ... here a build log:

running 13 tests
test filter_number_non_root ... FAILED
test filter_number_root_kept ... FAILED
test autodetect_optimised ... FAILED
test autodetect_un_optimised ... FAILED
test filter_size_non_root ... FAILED
test filter_number_root_not_kept ... FAILED
test filter_size_root_kept ... FAILED
test filter_size_root_not_kept ... FAILED
test k2_1 ... FAILED
test optimise ... FAILED
test rooted_simple ... FAILED
test rooted_lazy ... FAILED
test simple ... FAILED

failures:

---- filter_number_non_root stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     a = mkNode "a" [d]; b = mkNode "b" [d]; c = mkNode "c" [e]; d = mkNode "d" [e]; e = mkNode "e" [f]; f = mkNode "f" [];
}
Building a
thread 'filter_number_non_root' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- filter_number_root_kept stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [mux foo]; foo = mkNode "foo" [baz]; bar = mkNode "bar" [foo]; baz = mkNode "baz" []; mux = mkNode "mux" [baz];
}
Building coucou
thread 'filter_number_root_kept' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- autodetect_optimised stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [foo]; foo = mkNode "foo" []; bar = mkNode "bar" [];
}
Building coucou
thread 'autodetect_optimised' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- autodetect_un_optimised stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [foo]; foo = mkNode "foo" []; bar = mkNode "bar" [];
}
Building coucou
thread 'autodetect_un_optimised' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- filter_size_non_root stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     a = mkNode "a" [d]; b = mkNode "b" [d]; c = mkNode "c" [e]; d = mkNode "d" [e]; e = mkNode "e" [f]; f = mkNode "f" [];
}
Building a
thread 'filter_size_non_root' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- filter_number_root_not_kept stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [mux foo]; foo = mkNode "foo" [baz]; bar = mkNode "bar" [foo]; baz = mkNode "baz" []; mux = mkNode "mux" [baz]; frob = mkNode "frob" [];
}
Building coucou
thread 'filter_number_root_not_kept' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- filter_size_root_kept stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [mux foo]; foo = mkNode "foo" [baz]; bar = mkNode "bar" [foo]; baz = mkNode "baz" []; mux = mkNode "mux" [baz];
}
Building coucou
thread 'filter_size_root_kept' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- filter_size_root_not_kept stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [mux foo]; foo = mkNode "foo" [baz]; bar = mkNode "bar" [foo]; baz = mkNode "baz" []; mux = mkNode "mux" [baz]; frob = mkNode "frob" [];
}
Building coucou
thread 'filter_size_root_not_kept' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- k2_1 stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [foo]; foo = mkNode "foo" []; bar = mkNode "bar" [foo];
}
Building coucou
thread 'k2_1' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- optimise stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [foo]; foo = mkNode "foo" []; bar = mkNode "bar" []; blih = mkNode "blih" [];
}
Building coucou
thread 'optimise' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- rooted_simple stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     a = mkNode "a" [b]; b = mkNode "b" []; c = mkNode "c" [h d]; d = mkNode "d" [f e]; e = mkNode "e" [g j]; f = mkNode "f" [g]; g = mkNode "g" []; h = mkNode "h" [i]; i = mkNode "i" []; j = mkNode "j" [];
}
Building a
thread 'rooted_simple' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- rooted_lazy stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [foo]; foo = mkNode "foo" []; bar = mkNode "bar" [];
}
Building coucou
thread 'rooted_lazy' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25

---- simple stdout ----
Derivation: with import /build/source/tests/nix/template.nix;
    rec {
     coucou = mkNode "coucou" [mux foo]; foo = mkNode "foo" [baz]; bar = mkNode "bar" [foo]; baz = mkNode "baz" []; mux = mkNode "mux" [baz];
}
Building coucou
thread 'simple' panicked at 'error running command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /build/nix-du-0.3.1-vendor.tar.gz/cli_test_dir/src/lib.rs:559:25


failures:
    autodetect_optimised
    autodetect_un_optimised
    filter_number_non_root
    filter_number_root_kept
    filter_number_root_not_kept
    filter_size_non_root
    filter_size_root_kept
    filter_size_root_not_kept
    k2_1
    optimise
    rooted_lazy
    rooted_simple
    simple

test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test common'
builder for '/nix/store/9wcb744fjizgaf7qafvdv4xwaz2nfrkq-nix-du-0.3.1.drv' failed with exit code 101
cannot build derivation '/nix/store/0jsmvkmxvpcrz7dcbkrl8y5gghzciyz2-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/dzcfi2n6jgf0hjgf9py57xa1iql6rhyc-nixos-system-x230-20.09pre222973.7c399a4ee08.drv': 1 dependencies couldn't be built
error: build of '/nix/store/dzcfi2n6jgf0hjgf9py57xa1iql6rhyc-nixos-system-x230-20.09pre222973.7c399a4ee08.drv' failed
sudo nixos-rebuild switch --upgrade  795.09s user 16.07s system 358% cpu 3:46.27 total

I hope this could help to investigate this issue.

Yvan

@yvan-sraka
Copy link
Author

I think it could be linked to #3

@symphorien
Copy link
Owner

On which commit are you ? Can you paste the output of nix-info -m ?

@yvan-sraka
Copy link
Author

yvan@X230 ~ % nix-info -m        
 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.116, NixOS, 20.09pre222973.7c399a4ee08 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.4`
 - channels(root): `"nixos-20.09pre222973.7c399a4ee08, nixos-hardware"`
 - channels(yvan): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

@yvan-sraka yvan-sraka changed the title All tests fail on NixOS 20.03 All tests fail on NixOS unstable Apr 27, 2020
symphorien added a commit to symphorien/nixpkgs that referenced this issue Apr 28, 2020
@symphorien
Copy link
Owner

NixOS/nixpkgs#86231 should have fixed this.

dtzWill pushed a commit to dtzWill/nixpkgs that referenced this issue Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants