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.pyopenssl: Disable some tests, for libressl support. #46072
Conversation
Please rebase this on the |
sed -i 's/test_set_session_id_fail/noop/' tests/test_ssl.py | ||
sed -i 's/test_verify_with_revoked/noop/' tests/test_crypto.py | ||
sed -i 's/test_set_notAfter/noop/' tests/test_crypto.py | ||
sed -i 's/test_set_notBefore/noop/' tests/test_crypto.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to disable tests with pytest
instead?
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/database/pgcli/default.nix#L17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an alternative with so many test failures, it might be also possible to set doCheck = openssl != libressl
until it is fixed upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, interesting. What would you recommend: should I make the derivation accept libressl
as well, and do a literal !=
comparison between the openssl
and libressl
attributes?
Please don't unconditionally disable any tests that work with openssl.
|
Ah, interesting. What would you recommend: should I make the derivation accept `libressl` as well, and do a literal `!=` comparison between the `openssl` and `libressl` attributes?
I would do `lib.hasPrefix "libressl" openssl.meta.name` (`meta.name` is a clean version of `.name` that stays constant under cross compilation).
|
Thanks, @Mic92! |
Motivation for this change
pyopenssl
fails its test phase if built againstlibressl
(2.7 and 2.8). Disabling these 12 tests (as already done for 2 existing tests) fixes that. The remaining 483 tests pass as expected.I filed an upstream ticket with the pyopenssl project, so we can reverse this if and when they fix it.
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)