NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.03k stars 14.03k forks source link

Build failure: haskellPackages.unordered-containers checks are freezing #349053

Open surfaceflinger opened 2 weeks ago

surfaceflinger commented 2 weeks ago

Steps To Reproduce

No idea how to track it down yet because it doesn't happen with nix build .#pkgsi686Linux.haskellPackages.unordered-containers or nix build .#haskellPackages.unordered-containers

Possible to reproduce by cloning https://github.com/surfaceflinger/flake, reverting 7e302a5031895b779f0e813d736142ba15402730 and running nixos-rebuild build --flake .#blahaj

possible to reproduce by building obs-vkcapture without nixpkgs commit d7198131df8707823cdbe1ac3d370939ddb26df0

Build log

unordered-containers> [10 of 10] Linking dist/build/unordered-containers-tests/unordered-containers-tests
unordered-containers> Running phase: checkPhase
unordered-containers> Running 1 test suites...
unordered-containers> Test suite unordered-containers-tests: RUNNING...
unordered-containers> All
unordered-containers>   Properties
unordered-containers>     Data.HashMap.Lazy
unordered-containers>       instances
unordered-containers>         Eq
unordered-containers>           ==:                              OK
unordered-containers>             +++ OK, passed 100 tests.

Additional context

https://github.com/haskell-unordered-containers/unordered-containers/issues/491 Someone else also spotted it in https://discourse.nixos.org/t/help-using-overlays-with-flake-parts/54321

Maybe the package could get rolled back to an older version or if it works fine after building, just turn off checks for now?

Notify maintainers

idk for now

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.2, NixOS, 24.11 (Vicuna), 24.11.20241009.65d98cb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.0
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/nat/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/nat/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/nat/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/nat/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/0nrvyvki12xmq6ccidgrin0k0c9hf136-gnome-settings-daemon-46.0/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/cfl6rqw64ndbh2m0qapg410jf4xmycia-lix-2.91.0/share`
 - nixpkgs: `/nix/store/y4rmd9g036gmgz5xjiplw1zcbi16fqdr-source`

Add a :+1: reaction to issues you find important.

nixos-discourse commented 1 week ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/help-using-overlays-with-flake-parts/54321/4

HyperCrusher commented 1 week ago

This was also happening on my system, could build the package fine but when the checks came it would freeze at the same step.

surfaceflinger commented 1 week ago

Can confirm that #349081 helped, but ig this package is still problematic for now and might break something again until the upstream issue is fixed or is somehow worked around in nixpkgs

Hannes1909 commented 1 week ago

Can confirm, unordered-container tests did hang for me at:

Test suite unordered-containers-tests: RUNNING...
All
  Properties
    Data.HashMap.Lazy
      instances
        Eq

Disabling obs-vkcapture in home-manager did the trick. Thanks!

ashleyghooper commented 1 week ago

I've had this issue for a while due to wanting to run the i686 version of etlegacy, which mysteriously pulls in haskell/unordered-containers.

I was using an overlay with doCheck = false but that's no longer working, as now the entirety of haskell seems to require compilation, and the hackage-security tests are failing on my system.