-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Build passthru.tests automatically along with the package #368
Comments
@FRidh It's been discussed at a few places, first and foremost here and around there, for the two that stand out by memory. To sum up my current thoughts, probably missing arguments that have been raised before: As someone who is (slowly) writing another nix-based OS (trying out some other paradigms), I also pretty much want to decouple Nixpkgs and NixOS. OTOH, we just do not have a better way to test things for the time being. So IMO pointing to NixOS tests from |
Right, thanks, I recall now. Since everything goes through that one attribute it should be fine for now. |
(as someone who complains about NixOS tests being expensive to change and hard to use directly for my own environment) indeed, the NixOS tests someone already maintains should be used in any corner case they can be used to get a payoff on the effort. They do run fine on non-NixOS Nix, and Nixpkgs has a few NixOS-oriented places anyway (like |
It seems that currently these tests are not built anymore? See this PR where I have a package which fails to build, which is also a test case for another package which succeeds. |
If I look at the logs, I see this:
So… my guess would be that for some reason |
Oh maybe I just understood: I don't think anyone wanted |
@Ekleog Yes, that works! Thanks! (See NixOS/nixpkgs#98214 (comment)) |
I often have to manually call a
build nixosTests.<foo>
when checking a PR. I'm slowly adding them topassthru.tests
, and since nix-community/nixpkgs-update#118 r-ryantm is taking them into account, but it'd be great if ofborg also automatically checked the derivations listed inpassthru.tests
Building
<package>.tests or {}
in addition to<package>
should (hopefully) be enough, and not be too hard to implement. This would let the maintainers responsible for determining which tests must pass to consider a change to a package valid.What do you think about this?
The text was updated successfully, but these errors were encountered: