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
pythonPackages.mahotas: fix build, move expression #46368
Conversation
See https://hydra.nixos.org/build/80828287 Moves `mahotas` out of `python-packages.nix` into its own file and fixes broken test cases by skipping them using nosetest's `@nottest` annotation. These tests broke from time to time in a sandbox and are therefore considered impure. Addresses NixOS#45960
@timokau this fixes a Hydra failure for 18.09. Would you mind backporting this? :) |
While this works on master, it still fails on 18.09: https://hydra.nixos.org/jobset/nixos/release-18.09/jobs-tab?filter=mahotas @Ma27 can you have a look please? |
ouch, I'm sorry for this! Will have a look at this tonight! |
@xeji I just had a look into it. Unfortunately I can't reliably reproduce the issue with |
These failures look like they can be hardware-dependent due to different arithmetic precision. |
…texture.test_haralick3d` testcase As stated in NixOS#46368, this package seems to have issues with impure tests (reported in luispedro/mahotas#97). Unfortunately the `release-18.09` job on Hydra fails at the attempt to build this package since `test_moments.test_normalize1` and `test_texture.test_haralick3d` breaks. Until the root cause is identified, we skip the disabled tests to ensure that the resulting package is not entirely broken (which can't be confirmed with `doCheck = false`). See https://hydra.nixos.org/job/nixos/release-18.09/nixpkgs.python27Packages.mahotas.x86_64-linux See https://hydra.nixos.org/job/nixos/release-18.09/nixpkgs.python36Packages.mahotas.x86_64-linux See https://logs.nix.ci/?key=nixos/nixpkgs.46793&attempt_id=b85a638d-dcb0-41d3-ab2a-9616a3bb0175 /cc @xeji @luispedro
…texture.test_haralick3d` testcase (#46793) As stated in #46368, this package seems to have issues with impure tests (reported in luispedro/mahotas#97). Unfortunately the `release-18.09` job on Hydra fails at the attempt to build this package since `test_moments.test_normalize1` and `test_texture.test_haralick3d` breaks. Until the root cause is identified, we skip the disabled tests to ensure that the resulting package is not entirely broken (which can't be confirmed with `doCheck = false`). See https://hydra.nixos.org/job/nixos/release-18.09/nixpkgs.python27Packages.mahotas.x86_64-linux See https://hydra.nixos.org/job/nixos/release-18.09/nixpkgs.python36Packages.mahotas.x86_64-linux See https://logs.nix.ci/?key=nixos/nixpkgs.46793&attempt_id=b85a638d-dcb0-41d3-ab2a-9616a3bb0175 /cc @xeji @luispedro (cherry picked from commit 5f2eacc)
…texture.test_haralick3d` testcase (#46793) As stated in #46368, this package seems to have issues with impure tests (reported in luispedro/mahotas#97). Unfortunately the `release-18.09` job on Hydra fails at the attempt to build this package since `test_moments.test_normalize1` and `test_texture.test_haralick3d` breaks. Until the root cause is identified, we skip the disabled tests to ensure that the resulting package is not entirely broken (which can't be confirmed with `doCheck = false`). See https://hydra.nixos.org/job/nixos/release-18.09/nixpkgs.python27Packages.mahotas.x86_64-linux See https://hydra.nixos.org/job/nixos/release-18.09/nixpkgs.python36Packages.mahotas.x86_64-linux See https://logs.nix.ci/?key=nixos/nixpkgs.46793&attempt_id=b85a638d-dcb0-41d3-ab2a-9616a3bb0175 /cc @xeji @luispedro
Motivation for this change
See https://hydra.nixos.org/build/80828287
Moves
mahotas
out ofpython-packages.nix
into its own file and fixesbroken test cases by skipping them using nosetest's
@nottest
annotation.
These tests broke from time to time in a sandbox and are therefore
considered impure.
Addresses #45960
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)