Skip to content

testers.hasCmakeConfigModules: init#410516

Merged
NickCao merged 3 commits intoNixOS:masterfrom
qbisi:testCmake
Jun 4, 2025
Merged

testers.hasCmakeConfigModules: init#410516
NickCao merged 3 commits intoNixOS:masterfrom
qbisi:testCmake

Conversation

@qbisi
Copy link
Contributor

@qbisi qbisi commented May 24, 2025

This tester write a mininal CmakeLists.txt to test if the finalPackages and all its dependencies can be imported via
find_package($modulename NO_MODULE REQUIRED)

It is used to check if the finalPackage does correctly propagate all the needed packages required in *config.cmake module.

As a example, we check the library c-blosc2 with hasCmakeConfigModules.

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/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (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.

@github-actions github-actions bot added the 6.topic: testing Tooling for automated testing of packages and modules label May 24, 2025
@qbisi qbisi requested a review from risicle May 24, 2025 13:22
@nix-owners nix-owners bot requested a review from philiptaron May 24, 2025 13:23
@qbisi qbisi force-pushed the testCmake branch 2 times, most recently from 468ef28 to e7e83c2 Compare May 24, 2025 13:47
@github-actions github-actions bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. labels May 24, 2025
@qbisi qbisi force-pushed the testCmake branch 5 times, most recently from 6fea2b8 to 9d988c0 Compare May 30, 2025 10:29
@github-actions github-actions bot added the 8.has: documentation This PR adds or changes documentation label May 30, 2025
@qbisi qbisi force-pushed the testCmake branch 3 times, most recently from 16c2ce6 to 9eea041 Compare May 30, 2025 20:14
Copy link
Member

@NickCao NickCao left a comment

Choose a reason for hiding this comment

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

Diff LGTM.

@qbisi
Copy link
Contributor Author

qbisi commented May 30, 2025

@risicle ask for your comment/review, this hasCmakeConfigModules test is highly inspired by hasPkgConfigModule, hence a ping.

@NickCao NickCao merged commit abe0e73 into NixOS:master Jun 4, 2025
16 of 17 checks passed
@imincik
Copy link
Contributor

imincik commented Jun 4, 2025

@qbisi , this PR broke OTB package .

Why change of buildInputs to propagatedBuildInputs in bb3d46c was needed ? Is it possible to revert this particular change ? I also suggest to run full nixpkgs-review for this kind of library changes.

@qbisi
Copy link
Contributor Author

qbisi commented Jun 4, 2025

See #410844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: testing Tooling for automated testing of packages and modules 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants