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.nilearn: fix test_signal tests #46850

Merged
merged 1 commit into from Sep 19, 2018
Merged

Conversation

xeji
Copy link
Contributor

@xeji xeji commented Sep 18, 2018

Motivation for this change

These tests failed on some hydra builders (Hydra example), probably due to lower arithmetic precision. The failure was not reproducible on my local machine.
Reduce required precision from 13 to 8 decimal digits, which should work everywhere.

ZHF #45960 - please backport.

Things done
  • built in a sandbox on NixOS

These tests failed on some machines, probably due to lower arithmetic
presicion. Reduce required precision from 13 to 8 decimal digits.
@xeji xeji requested a review from FRidh as a code owner September 18, 2018 18:09
@xeji
Copy link
Contributor Author

xeji commented Sep 18, 2018

@GrahamcOfBorg build python27Packages.nilearn python36Packages.nilearn

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: python27Packages.nilearn, python36Packages.nilearn

Partial log (click to expand)

nilearn/input_data/nifti_spheres_masker.py     116     92    21%
nilearn/masking.py                             196     39    80%
nilearn/signal.py                              169     55    67%
nilearn/version.py                              25      8    68%
----------------------------------------------------------------
TOTAL                                         4009   2433    39%
----------------------------------------------------------------------
Ran 161 tests in 6.001s

OK

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python27Packages.nilearn, python36Packages.nilearn

Partial log (click to expand)

nilearn/signal.py                              169     55    67%
nilearn/version.py                              25      8    68%
----------------------------------------------------------------
TOTAL                                         4009   2433    39%
----------------------------------------------------------------------
Ran 161 tests in 7.544s

OK
/nix/store/j5s02b4v5xdkpaa4dsdgla1gg0lhpjw5-python2.7-nilearn-0.4.2
/nix/store/nq2w8xghq91sd58djkmainvqs51acd7k-python3.6-nilearn-0.4.2

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: python27Packages.nilearn, python36Packages.nilearn

Partial log (click to expand)

nilearn/signal.py                              169     55    67%
nilearn/version.py                              25      8    68%
----------------------------------------------------------------
TOTAL                                         4009   2433    39%
----------------------------------------------------------------------
Ran 161 tests in 61.525s

OK
/nix/store/52a6z8n2yqnb57rndzvvbazxgx6z3pay-python2.7-nilearn-0.4.2
/nix/store/z20vdpi24686c8pmr09kndjyags1irx4-python3.6-nilearn-0.4.2

@xeji xeji merged commit 970393c into NixOS:master Sep 19, 2018
xeji added a commit that referenced this pull request Sep 19, 2018
These tests failed on some machines, probably due to lower arithmetic
presicion. Reduce required precision from 13 to 8 decimal digits.

(cherry picked from commit 970393c)
@xeji xeji deleted the p/nilearn branch September 19, 2018 14:18
@xeji
Copy link
Contributor Author

xeji commented Sep 19, 2018

backported: fd0c124

xeji added a commit to xeji/nixpkgs that referenced this pull request Sep 19, 2018
A previous attempt to fix tests failing on some machines (NixOS#46850)
was unsuccessful, they still failed on Hydra sometimes while
succeeding locally. Revert NixOS#46850 and disable these tests instead.
xeji added a commit that referenced this pull request Sep 19, 2018
A previous attempt to fix tests failing on some machines (#46850)
was unsuccessful, they still failed on Hydra sometimes while
succeeding locally. Revert #46850 and disable these tests instead.

(cherry picked from commit f3a0c8a)
xeji added a commit that referenced this pull request Sep 19, 2018
A previous attempt to fix tests failing on some machines (#46850)
was unsuccessful, they still failed on Hydra sometimes while
succeeding locally. Revert #46850 and disable these tests instead.
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

2 participants