-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support for NixOS tests #28
Comments
We've started using NixOS tests for pretalx. It's still work in progress... Lines 63 to 67 in 66a4995
We put the test itself under Then, Of course, as we accumulate more tests, we might switch to a pattern analogous to configurations and packages, with something like Just noting this here, in case someone else works in that direction... |
Thanks for sharing this, @lorenzleutgeb ! There was also recently discussion of this on matrix recently where you shared these additional details that I think are very helpful for anyone using this for local interactive testing of a web service:
|
In their major PR #38 yesterday, @ngi-nix/algae has improved considerably the support in ngipkgs for NixOS tests! There is now a tests directory containing an After discussion with @ngi-nix/algae, in the end we decided not to include the Also, I learned yesterday that there is a README with documentation for pretalx, including the kind of testing docs I had referenced earlier: https://github.com/ngi-nix/ngipkgs/tree/main/pkgs/pretalx#testing This recent work covers a lot of what I had in mind for integration of NixOS tests into ngipkgs, however there is still the major CI piece of getting these tests running on a hydra instance. My next step will be evaluating what it might entail to get this working for ngipkgs on https://hydra.ngi0.nixos.org. |
The remaining integration of nixos-tests into the hydra CI has been completed with commit 1153203 which adds the |
I'd like to remind ourselves, that the output |
NixOS tests are a powerful tool for writing automated VM-based integration tests of complex and high-level software functionality. It would be great to have support for them in Ngipkgs. One of the main questions is where they would run. On nixpkgs they run on hydra so hopefully we can do the same on hydra.ngi0.nixos.org.
Some links to relevant documentation:
https://nixos.org/manual/nixos/stable/index.html#sec-nixos-tests
https://nix.dev/tutorials/nixos/integration-testing-using-virtual-machines
The text was updated successfully, but these errors were encountered: