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

proj: fix test suite #218719

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

Gabriella439
Copy link
Contributor

When testing #213831 internally we ran into a build failure caused by that change for the proj package (on x86_64-linux). We're not sure how that's possible, but the nature of the build failure was that the network tests for the proj package were failing due to missing certificates, so I fixed the build failure by adding cacert as a test dependency.

It's still not clear (A) why the cert suddenly became necessary after the change in #213831 or (B) why the build worked at all before, but this is probably the right thing to do regardless because the test suite does have a network component.

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)
  • Fits CONTRIBUTING.md.

When testing NixOS#213831 internally we ran into a build failure caused by
that change for the `proj` package (on `x86_64-linux`).  We're not sure
how that's possible, but the nature of the build failure was that the
network tests for the `proj` package were failing due to missing
certificates, so I fixed the build failure by adding `cacert` as a
test dependency.

It's still not clear (A) why the cert suddenly became necessary after
the change in NixOS#213831 or (B) why the build worked at all before, but
this is probably the right thing to do regardless because the test
suite does have a network component.
@jsoo1
Copy link
Contributor

jsoo1 commented Feb 28, 2023

Very curious! I'm wondering if sandbox = false had anything to do with it? I found a couple packages that fail when sandbox = false but not when sandbox = true...

@Gabriella439
Copy link
Contributor Author

Yeah, although even so it would still not explain why the linker-related change affected the behavior. It wasn't just because of triggering a new build, because I also verified that triggering a rebuild of proj before my linker change still succeeded.

@jsoo1
Copy link
Contributor

jsoo1 commented Mar 1, 2023

So so odd! Thanks for sharing this curiosity!

@Gabriella439 Gabriella439 merged commit 6340fcc into NixOS:master Mar 1, 2023
@Gabriella439 Gabriella439 deleted the gabriella/fix_proj branch March 1, 2023 03:58
imincik added a commit to imincik/geospatial-nix that referenced this pull request Mar 28, 2023
imincik added a commit to imincik/geospatial-nix that referenced this pull request Mar 28, 2023
imincik added a commit to imincik/geospatial-nix that referenced this pull request Mar 28, 2023
imincik added a commit to imincik/geospatial-nix that referenced this pull request Mar 28, 2023
* also contains Nixpkgs PR: NixOS/nixpkgs#218719

* pkgs(pyproj): update tests for PROJ 9.2
  Nixpkgs PR: NixOS/nixpkgs#220067
imincik added a commit to imincik/geospatial-nix that referenced this pull request Mar 28, 2023
* also contains Nixpkgs PR: NixOS/nixpkgs#218719

* pkgs(pyproj): update tests for PROJ 9.2
  Nixpkgs PR: NixOS/nixpkgs#220067
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.

2 participants