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

Test all nix expressions where applicable #46632

Closed
ghost opened this issue Sep 13, 2018 · 4 comments · Fixed by #120534
Closed

Test all nix expressions where applicable #46632

ghost opened this issue Sep 13, 2018 · 4 comments · Fixed by #120534
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: testing Tooling for automated testing of packages and modules

Comments

@ghost
Copy link

ghost commented Sep 13, 2018

Issue description

While the system we have right now is good for contributing, I think each new nix expression should have a test in nixos/tests written along with it in each new PR.
We should do this retroactively where possible for all currently existing packages too.
This way, we can ensure everything works with hydra, and be alerted quickly for broken, but successfully built expressions that may not be actively maintained and (user) tested anymore.

Would it be possible to change the policy in Contributing to do this?
The flow I see is this:

  1. Make new expression for program X
  2. Test locally to ensure it works
  3. Make test in nixos/tests for it so hydra can do this automatically
  4. Submit PR after everything fits Contributing.

Is this a good idea, something we should implement? I see more benefits that drawbacks.

@ghost
Copy link
Author

ghost commented Sep 13, 2018

This will also be really great for stable releases, since if implemented in full, we can ensure all packages are at least minimally tested.

@jtojnar
Copy link
Member

jtojnar commented Sep 14, 2018

Some packages offer installed tests #34987

@7c6f434c
Copy link
Member

7c6f434c commented Sep 14, 2018 via email

@c0bw3b c0bw3b added the 6.topic: testing Tooling for automated testing of packages and modules label Apr 28, 2019
@stale
Copy link

stale bot commented Jun 2, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: testing Tooling for automated testing of packages and modules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants