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
python3Packages.numpy: add hypothesis to checkInputs #94989
Conversation
I don't know whether we should run hypothesis tests in Nixpkgs. Hypothesis tests are by itself very useful, but typically take up quite some more time and we have to consider resources in Nixpkgs. Tests in Nixpkgs are mostly to see that "are things still working" after packaging. Being complete dependencies-wise is a good thing though. Note that hypothesis tests can easily be disabled with |
I see, thanks! The tests do run pretty fast on my machine though (74s on a Ryzen 3700X), didn't check what portion are hypothesis-based tests. |
@ofborg build python2Packages.numpy python37Packages.numpy python38Packages.numpy |
numpy has added hypothesis as a dependency for running property-based tests: numpy/numpy#15189 However, hypothesis is not an input of the derivations. And thus tests have been failing with: ERROR .. - ModuleNotFoundError: No module named 'hypothesis' https://hydra.nixos.org/build/124613306/nixlog/1 This change adds hypothesis to checkInputs, so that tests are run again.
e02f4c7
to
703d2fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff LGTM, the numpy test suite already takes a bit, i don't think this will add too much
Motivation for this change
numpy has added hypothesis as a dependency for running property-based
tests:
numpy/numpy#15189
However, hypothesis is not an input of the derivations. And thus tests
have been failing with:
https://hydra.nixos.org/build/124613306/nixlog/1
This change adds
hypothesis
tocheckInputs
, so that tests are runagain.
I guess a separate issue is that the build should probably fail when tests fail?
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)