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

python3Packages.dnspython: fix tests #161740

Merged
merged 1 commit into from
Feb 27, 2022
Merged

Conversation

malob
Copy link
Member

@malob malob commented Feb 24, 2022

Motivation for this change

Test on x86_64-darwin and aarch64-darwin fail for me (and also seem to be failing on Hydra) with errors like, e.g.:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

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
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Copy link
Member

@gador gador left a 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"
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

@risicle risicle left a 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

@jonringer jonringer merged commit 9239261 into NixOS:staging Feb 27, 2022
@malob malob deleted the dnspython-fix-tests branch February 28, 2022 05:20
Gabriella439 added a commit to MercuryTechnologies/nixpkgs that referenced this pull request Feb 27, 2023
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.
Gabriella439 added a commit to MercuryTechnologies/nixpkgs that referenced this pull request Feb 27, 2023
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.
Gabriella439 added a commit that referenced this pull request Feb 27, 2023
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.
9999years pushed a commit to MercuryTechnologies/nixpkgs that referenced this pull request Jun 8, 2023
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.
wavewave pushed a commit to MercuryTechnologies/nixpkgs that referenced this pull request Mar 12, 2024
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.
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.

5 participants