-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
runNixOSTest
fails on Darwin ( tests.testers.runNixOSTest-example
fails to build)
#294725
Comments
The macOS support for NixOS tests only adds support for running them but not building them. You still need access to a Linux builder to build those tests. |
Thanks for the quick response!
What's the difficulty to build NixOS tests on macOS? Isn't it just a QEMU virtual machine? |
It is possible to build Linux products on NixOS using something like https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder |
So I'm thinking about adding a nixpkgs/nixos/lib/testing/nodes.nix Lines 19 to 34 in 795c30f
Does anyone have opinions on this? I'll probably have a PR prepared today or tomorrow |
Does that mean, those derivations for testing firs got built on the host if not on the cache, and then run in the VM? |
Any progress on that @lilyinstarlight ? |
Describe the bug
#282401 should have made NixOS Tests available on Darwin. This should include package tests produced via tester
runNixOSTest
, but the OfBorg build result shows it isn't. An example istests.testers.runNixOSTest-example
See the OfBorg test result in #292759.
Steps To Reproduce
Steps to reproduce the behavior on MacOS:
git clone https://github.com/NixOS/nixpkgs.git
cd nixpkgs
tests.testers.runNixOSTest-example
Steps to reproduce the behavior on GitHub:
runNixOSTest
instead ofnixosTest
#292759 or any PR targeting the Nixpkgs master branch.@ofborg build tests.testers.runNixOSTest-example
Expected behavior
Package tests written by
testers.runNixOSTest
, includingtests.testers.runNixOSTest-example
, should run on MacOS. Related OfBorg build should be green.Screenshots
Additional context
OfBorg build log links:
x86_64-darwin
https://logs.ofborg.org/?key=nixos/nixpkgs.292759&attempt_id=932a1ae7-c6fa-4f38-bd08-6f26b23ed12a
Notify maintainers
@Gabriella439
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: