-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
nixos/lib/test*: remove perl test driver #96396
Conversation
I think that's my only requested change. Everything else looks good. |
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, however could we please address #72964 before merging this? Most of the tests in nixpkgs are rather simple, but as soon as you use Nix to parameterize tests you'll get random failures with black.
@aszlig I don't see how #72964 should block merging this in. I agree this would be nice, but I don't know if finding a linter ignoring line lengths is too hard, or if just noone has picked up the task yet. All of nixpkgs managed to somewhat work around these issues too :-) This perl driver has been deprecated for a whole release now, and removing it from nixpkgs for the 20.09 release has been announced as well. |
This has been deprecated in 20.03, and all tests have been migrated to the python framework, effectively making this dead code.
02bd419
to
0620184
Compare
Or if you disable linting on your test suite wholesale, then an evaluation of all your packages produces a screenful of Before removing the Perl driver, I'm more concerned about #86889. It's pretty easy to hang the Python test driver with a test that produces a lot of output on stderr. In my experience it isn't even intermittently; if the test writes thousands of lines, it's going to hang. This is a regression compared to the Perl driver. |
|
For all of 20.03, if you still have been using the non-python test driver, there were 3 lines of warnings:
I don't see why getting it down to 1 line per test (after migrating to the python test and setting |
@aszlig when hacking on tests you probably want to use |
@flokli For my private tests I simply use |
Let's talk about how to make the python linter less annoying in #72964. Thanks for merging this PR - I don't really see how this is related to removing a piece of code unused in nixpkgs, and announced to be removed half a year ago. |
Well, there are people who also use one of the test frameworks for their own stuff and dislike this "feature" ;-) |
This has been deprecated in 20.03, and all tests have been migrated to
the python framework, effectively making this dead code.
Motivation for this change
#72828
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)