-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
buildPython*: pass check-related args whenever specified #376060
base: staging
Are you sure you want to change the base?
Conversation
Pass - disabledTests - disabledTestPaths - pytestFlags - pytestFlagsArray - unittestFlags - unittestFlagsArray whenever they are specified, no matter if doCheck is true or if they are empty lists. Simplify the buildPython* argument handling and bring us closer to the deprecation of overridePythonAttrs and the adoption of fixed-point arguments.
Any idea why it was done the way it was done before? |
The I doubt guarding the flags this way would be as effective as intended, as neither |
To achieve the effect, wouldn't we need to guard this on Edit: Ah, #272177 wasn't even merged. So it seems like the guards will only be useful once that's done, right? |
The original PR was an initial effort for #272177, but it was unfortunately closed due to author burnout. It is more practical to re-work the guard if someone wants to pick up the automatic-passthru-test work. |
I think so. |
|
Some Python packages, especially scientific ones, have expensive tests.
In python packages, However, I do not intend to prevent our ideals with these hacks, so I believe we could remove it if necessary. |
I understand this as we add such guards as a shorthand to "move" the attributes to If so, why do people not just define the check-related attributes under the package test definition (e.g., the |
Pass
disabledTests
disabledTestPaths
pytestFlags
pytestFlagsArray
unittestFlags
unittestFlagsArray
whenever they are specified,
no matter if doCheck is true or if they are empty lists.
This PR simplifies the buildPython* argument handling and brings us closer to deprecating
overridePythonAttrs
and adopting fixed-point arguments.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.