Skip to content

nixosTests.postgresql.*: fix eval#375292

Merged
wolfgangwalther merged 1 commit intoNixOS:stagingfrom
Ma27:anon-eval
Jan 20, 2025
Merged

nixosTests.postgresql.*: fix eval#375292
wolfgangwalther merged 1 commit intoNixOS:stagingfrom
Ma27:anon-eval

Conversation

@Ma27
Copy link
Member

@Ma27 Ma27 commented Jan 20, 2025

The libpq attribute from postgresqlVersions doesn't have a pkgs attribute with extensions in it. Filtering for postgresql server packages only fixes the problem.

Reported in #359659 (comment)


cc @trofi

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 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
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@Ma27 Ma27 requested a review from wolfgangwalther January 20, 2025 09:32
@github-actions github-actions bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Jan 20, 2025
@nix-owners nix-owners bot requested a review from thoughtpolice January 20, 2025 09:34
Copy link
Contributor

@wolfgangwalther wolfgangwalther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

We also need the same for some other tests in the same folder, which use the same pattern!

The `libpq` attribute from `postgresqlVersions` doesn't have a `pkgs`
attribute with extensions in it. Filtering for postgresql server
packages only fixes the problem.

Reported in NixOS#359659 (comment)
@Ma27 Ma27 changed the title nixosTests.postgresql.anonymizer: fix eval nixosTests.postgresql.*: fix eval Jan 20, 2025
@Ma27 Ma27 requested a review from wolfgangwalther January 20, 2025 13:29
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jan 20, 2025
Copy link
Contributor

@wolfgangwalther wolfgangwalther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't run, just eye-balled. LGTM.

We should think about extracting some of that logic into maybe a set of utility functions for those postgresql tests. But that's not for here, not for now.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 20, 2025
@wolfgangwalther wolfgangwalther merged commit efa0c1b into NixOS:staging Jan 20, 2025
34 of 36 checks passed
@wolfgangwalther wolfgangwalther mentioned this pull request Jan 20, 2025
13 tasks
@Ma27 Ma27 deleted the anon-eval branch January 24, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants