-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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/testing: add deprecation notice for Perl VM tests #79335
Conversation
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.
I agree with the intent of this PR.
Just concerned that the warning message may get lost as nixos tests are particularly noisy. Using nix build
it might be useful, but nix-build
will definitely blanket the warning with noise.
@worldofpeace I assume you're adding a general explanation to the release notes as well?
|
There's one thing that's being forgot here aside from the deprecation notice and it's |
@flokli I believe I will be adding that as a highlight. |
While in principle being in favour of this, I have a question about your refactoring plans: Will the current Python driver API (both Nix and Python) stay compatible? If we advocate to move away from the Perl test infra, we should have something ready that will still be compatible for at least the next release in half a year. If there a big changes planned, keeping the Perl stuff around could be worthwhile and a manageable technical debt because both test drivers could be cleanly separated with the Perl driver in maintenance mode. If the Python API is considered stable, awesome! 👍 |
I assume most refactorings will first happen behind the scenes, and we should be able to keep API compatibility for at least the next release. (There might be new features, but code assuming the current framework should still work)
We might change subtest failure exit behaviour (#79328), but that won't affect overall test failure/success behaviour.
|
503dfbd
to
101dd1f
Compare
c12ef95
to
d43a353
Compare
This still referred to the legacy make-test.nix (Perl)
Most VM tests have been migrated to use the python test driver (introduced in NixOS#71684), the migration is tracked in NixOS#72828 (which also thankfully uncovered and fixed many currently broken tests) While increasing the acceptance and adoption of NixOS integration tests by using a more popular language, there was also nobody willing to do larger refactors in the currently very convoluted test infrastructure. We plan to remove the perl infrastructure between the 20.03 and 20.09 release, to be able to do these refactorings. Some people might be using Perl tests in their internal CI, so print a warning for 20.03, and give users time to move to the python testing infrastructure.
d43a353
to
0945178
Compare
This PR does update |
Well, I don't think it makes any sense to introduce a |
I think similarly that having anything like a |
Most VM tests have been migrated to use the python test driver
(introduced in #71684), the migration is tracked in #72828 (which also
thankfully uncovered and fixed many currently broken tests)
While increasing the acceptance and adoption of NixOS integration tests
by using a more popular language, there was also nobody willing to do
larger refactors in the currently very convoluted test infrastructure.
We plan to remove the perl infrastructure between the 20.03 and 20.09
release, to be able to do these refactorings.
Some people might be using Perl tests in their internal CI, so print a
warning for 20.03, and give users time to move to the python testing
infrastructure.
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)