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

No make unittests #11301

Merged
merged 2 commits into from
Aug 15, 2024
Merged

No make unittests #11301

merged 2 commits into from
Aug 15, 2024

Conversation

Ericson2314
Copy link
Member

Motivation

Now that we can run all tests with Meson, we want developers making code changes to use it.

(Only the manual needs to be built with the build system, and that will change shortly.)

This reverts commit b0bc2a9.

Context

#2503

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Aug 14, 2024
Now that we can run all tests with Meson, we want developers making code
changes to use it.

(Only the manual needs to be built with the build system, and that will
change shortly.)

This reverts commit b0bc2a9.
@Ericson2314 Ericson2314 force-pushed the no-make-unittests branch 7 times, most recently from d52ccf6 to b8b679c Compare August 14, 2024 21:40
@@ -222,7 +222,7 @@
# for which we don't apply the full build matrix such as cross or static.
inherit (nixpkgsFor.${system}.native)
changelog-d;
default = self.packages.${system}.nix;
default = self.packages.${system}.nix-ng;
Copy link
Member

Choose a reason for hiding this comment

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

This is good because it preserves the property that nix build . only works if the tests pass.

packaging/everything.nix Outdated Show resolved Hide resolved
packaging/everything.nix Show resolved Hide resolved
@Ericson2314 Ericson2314 force-pushed the no-make-unittests branch 2 times, most recently from 14d0ae1 to ec4d347 Compare August 14, 2024 21:56
This ensures just `nix build`-ing the flake doesn't forget to run all
tests. One can still specifiy specific attributes to just build one
thing.

Co-authored-by: Robert Hensing <[email protected]>
@Ericson2314 Ericson2314 merged commit d8c1550 into NixOS:master Aug 15, 2024
10 checks passed
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-08-14-nix-team-meeting-minutes-169/50633/1

@Ericson2314 Ericson2314 deleted the no-make-unittests branch August 15, 2024 13:26
@edolstra
Copy link
Member

Ehm, how am I supposed to run unit tests now? make check now does nothing.

Please revert, removing make functionality seems premature.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-08-19-nix-team-meeting-minutes-170/50942/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants