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.pyarrow: fix running tests on hydra #49130
Conversation
@GrahamcOfBorg build python2Packages.pyarrow python3Packages.pyarrow |
Failure on x86_64-darwin (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
0b652c4
to
b4306e0
Compare
Failure on x86_64-linux (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
Right, forgot that I was testing against release-18.09 @GrahamcOfBorg build python2Packages.pyarrow python3Packages.pyarrow |
Failure on x86_64-darwin (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
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.
b4306e0
to
e76082a
Compare
@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)
|
Failure on aarch64-linux (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
Success! |
Failure on aarch64-linux (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: python2Packages.pyarrow, python3Packages.pyarrow Partial log (click to expand)
|
Does this affect 18.09? |
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.
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)