-
Notifications
You must be signed in to change notification settings - Fork 18
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
Don't splice NixOS tests into packages #222
Comments
I agree. But I fail to understand "produce redundant test jobs". NixOS tests are not under Just for reference: #28 is about the introduction of NixOS tests. I initially wanted to put them in |
Yes. I suggest Opting for
While there's indeed a section on
It is purely optional, packages like Guix don't follow that. People only do that because in Nixpkgs, ofborg does |
Yup, and before we had |
Problem
The code in
flake.nix
is tying knots, which makes it more mysterious than necessary:ngipkgs/flake.nix
Lines 83 to 93 in 425f4bc
and also happens to produce redundant test jobs:
ngipkgs/flake.nix
Lines 212 to 223 in 425f4bc
The value of binding NixOS tests to derivation builds is questionable, as in this example
ngipkgs/pkgs/by-name/kbin/package.nix
Lines 13 to 15 in 425f4bc
because we're collecting all of them for the top-level projects anyway. And we're also primarily interested in "projects" working as a whole, which almost always requires complex test setups that aren't provided upstream, and have little to do with "the derivation builds".
Proposal
nixosTests
from package recipe inputspassthru.tests
The text was updated successfully, but these errors were encountered: