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

pythonPackages.mahotas: fix build, move expression #46368

Merged
merged 1 commit into from Sep 10, 2018

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Sep 8, 2018

Motivation for this change

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 #45960

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

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 timokau merged commit 2b6144d into NixOS:master Sep 10, 2018
@Ma27 Ma27 deleted the fix-mahotas branch September 10, 2018 10:18
@Ma27
Copy link
Member Author

Ma27 commented Sep 10, 2018

@timokau this fixes a Hydra failure for 18.09. Would you mind backporting this? :)

@timokau
Copy link
Member

timokau commented Sep 10, 2018

7666310

@xeji
Copy link
Contributor

xeji commented Sep 16, 2018

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?

@Ma27
Copy link
Member Author

Ma27 commented Sep 16, 2018

ouch, I'm sorry for this! Will have a look at this tonight!

@Ma27
Copy link
Member Author

Ma27 commented Sep 17, 2018

@xeji I just had a look into it. Unfortunately I can't reliably reproduce the issue with python2 and python3 (I previously checked the package multiple times by garbage-collecting successful builds). I guess it would be the best solution for now to disable the check phase entirely.

@xeji
Copy link
Contributor

xeji commented Sep 17, 2018

These failures look like they can be hardware-dependent due to different arithmetic precision.
Can you try and disable the test cases that fail on hydra? Let's give that a chance before we disable all checks.

Ma27 added a commit to Ma27/nixpkgs that referenced this pull request Sep 17, 2018
…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
xeji pushed a commit that referenced this pull request Sep 17, 2018
…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)
xeji pushed a commit that referenced this pull request Sep 17, 2018
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants