-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
python3Packages.dnspython: fix tests #161740
Conversation
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.
LGTM
]; | ||
|
||
disabledTests = [ | ||
# dns.exception.SyntaxError: protocol not found | ||
"test_misc_good_WKS_text" | ||
# fails if IPv6 isn't available | ||
"test_resolver_override" |
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 this a darwin-only fix? I would have thought the build sandbox would prevent host IPv6 setup from being visible to the build?
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.
that sounds like the origin of the error.
Either way, this fixes an existing regression. We can explore alternatives in another PR.
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.
WFM, macos 10.15
This is essentially the same fix as NixOS#161740, except not just for macOS. The `dnspython` build was failing on Linux with a certificate verification failure just like in NixOS#161740: ```ShellSession $ nix build nixpkgs#python3Packages.dnspython --rebuild error: builder for '/nix/store/c1v553fzq3yybsd0lm398qf87jmy47qd-python3.10-dnspython-2.3.0.drv' failed with exit code 1; last 10 log lines: > > /nix/store/iw1vmh509hcbby8dbpsaanbri4zsq7dj-python3-3.10.10/lib/python3.10/ssl.py:1342: SSLCertVerificationError … ``` … and this change fixes that build failure.
This is essentially the same fix as NixOS#161740, except not just for macOS. The `dnspython` build was failing on Linux with a certificate verification failure just like in NixOS#161740: ```ShellSession $ nix build nixpkgs#python3Packages.dnspython --rebuild error: builder for '/nix/store/c1v553fzq3yybsd0lm398qf87jmy47qd-python3.10-dnspython-2.3.0.drv' failed with exit code 1; last 10 log lines: > > /nix/store/iw1vmh509hcbby8dbpsaanbri4zsq7dj-python3-3.10.10/lib/python3.10/ssl.py:1342: SSLCertVerificationError … ``` … and this change fixes that build failure.
This is essentially the same fix as #161740, except not just for macOS. The `dnspython` build was failing on Linux with a certificate verification failure just like in #161740: ```ShellSession $ nix build nixpkgs#python3Packages.dnspython --rebuild error: builder for '/nix/store/c1v553fzq3yybsd0lm398qf87jmy47qd-python3.10-dnspython-2.3.0.drv' failed with exit code 1; last 10 log lines: > > /nix/store/iw1vmh509hcbby8dbpsaanbri4zsq7dj-python3-3.10.10/lib/python3.10/ssl.py:1342: SSLCertVerificationError … ``` … and this change fixes that build failure.
This is essentially the same fix as NixOS#161740, except not just for macOS. The `dnspython` build was failing on Linux with a certificate verification failure just like in NixOS#161740: ```ShellSession $ nix build nixpkgs#python3Packages.dnspython --rebuild error: builder for '/nix/store/c1v553fzq3yybsd0lm398qf87jmy47qd-python3.10-dnspython-2.3.0.drv' failed with exit code 1; last 10 log lines: > > /nix/store/iw1vmh509hcbby8dbpsaanbri4zsq7dj-python3-3.10.10/lib/python3.10/ssl.py:1342: SSLCertVerificationError … ``` … and this change fixes that build failure.
This is essentially the same fix as NixOS#161740, except not just for macOS. The `dnspython` build was failing on Linux with a certificate verification failure just like in NixOS#161740: ```ShellSession $ nix build nixpkgs#python3Packages.dnspython --rebuild error: builder for '/nix/store/c1v553fzq3yybsd0lm398qf87jmy47qd-python3.10-dnspython-2.3.0.drv' failed with exit code 1; last 10 log lines: > > /nix/store/iw1vmh509hcbby8dbpsaanbri4zsq7dj-python3-3.10.10/lib/python3.10/ssl.py:1342: SSLCertVerificationError … ``` … and this change fixes that build failure.
Motivation for this change
Test on
x86_64-darwin
andaarch64-darwin
fail for me (and also seem to be failing on Hydra) with errors like, e.g.:Also, the network I'm on also doesn't support IPv6 which causes the
test_resolver_override
test to fail.This PR fixes both those issues.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes