-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
testers.nixosTest: Deprecate #293891
base: master
Are you sure you want to change the base?
testers.nixosTest: Deprecate #293891
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Why is this not working? |
Maybe I don't understand the question, but I think I've explained that in the diff, and I've added extra context in the PR description. |
I was talking about the ofborg red status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the docs changes. Idk what's the reasoning behind the ofborg red status though.
@@ -118,6 +118,7 @@ | |||
* make sense for this evaluation of Nixpkgs. | |||
*/ | |||
nixosTesting = | |||
lib.warn "testers.nixosTest is deprecated. Use testers.runNixOSTest instead." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ofborg failure could be fixed by moving this warning into the function body under test:
. Non ideal that this is necessary though..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, looks like that doesn't work either..
Thinking about this again, I believe we need to not expose the attribute at all if config.allowAliases = false
(which then also prevents uses in Nixpkgs).
Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
This way ofborg doesn't see it and fail. Unfortunately, it will cause more warnings than it otherwise would, if multiple tests are evaluated in one go.
c1dad81
to
73cdcdd
Compare
73cdcdd
to
c44c917
Compare
`nixosTest` is to-be-depercated, see here: NixOS/nixpkgs#293891
`nixosTest` is to-be-depercated, see here: NixOS/nixpkgs#293891
Description of changes
It's time to migrate.
runNixOSTest
is a better alternative, that supports modules properly, as well as running on macOS.At this point, the existence of
nixosTest
leads to uncertainty, and its users are missing out on the new features.🚀
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.