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
[18.09] pythonPackages.pyarrow: fix running tests on hydra #49175
Merged
FRidh
merged 1 commit into
NixOS:release-18.09
from
veprbl:pr/pyarrow_darwin_hydra_fix_18.09
Oct 27, 2018
Merged
[18.09] pythonPackages.pyarrow: fix running tests on hydra #49175
FRidh
merged 1 commit into
NixOS:release-18.09
from
veprbl:pr/pyarrow_darwin_hydra_fix_18.09
Oct 27, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This replaces standard checkPhase using setup.py that uses pytest-runner with an explicit call to pytest. One reason to do that is because setup.py triggers another rebuild when asked to do "test". Another reason is that there seems to be a conflict between possible imports for pyarrow: `pwd`/pyarrow vs $out/pyarrow. By some unknown reason this triggers an import error on hydra and ofborg, but not on my machine. The solution here is to remove `pwd`/pyarrow, keep the tests and use direct call to pytest (setup.py needs `pwd`/pyarrow). The added benefit is that we are now testing what is installed in $out. (cherry picked from commit 6ae3cb4)
veprbl
changed the title
pythonPackages.pyarrow: fix running tests on hydra
[18.09] pythonPackages.pyarrow: fix running tests on hydra
Oct 26, 2018
@GrahamcOfBorg build python2Packages.pyarrow python3Packages.pyarrow |
Success on x86_64-darwin (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
9 tasks
Failure on aarch64-linux (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This replaces standard checkPhase using setup.py that uses pytest-runner
with an explicit call to pytest. One reason to do that is because
setup.py triggers another rebuild when asked to do "test". Another
reason is that there seems to be a conflict between possible imports for
pyarrow:
pwd
/pyarrow vs $out/pyarrow. By some unknown reason thistriggers an import error on hydra and ofborg, but not on my machine. The
solution here is to remove
pwd
/pyarrow, keep the tests and use directcall to pytest (setup.py needs
pwd
/pyarrow). The added benefit is thatwe are now testing what is installed in $out.
(cherry picked from commit 6ae3cb4)
Motivation for this change
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)