-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
test: add test for grpcio wheel usage #899
Conversation
@adisbladis I could really use your help here, it seems like Curiously, throwing Any idea why this would be the case? |
It seems like reordering the overlays in My rationale was that it seemed like eval isn't happening at all on many packages, so I tried "forcing" eval by putting user overrides first in the list of overlays. |
768b7f5
to
1984b1c
Compare
@asymmetric Can you try this PR out on your |
3e1e2f5
to
6f80667
Compare
@cpcloud thanks for looking into this! We actually don't use mkPoetryApplication = {
projectDir = ./.;
python = pythonVersion;
overrides = [
pkgs.poetry2nix.defaultPoetryOverrides
(final: prev: {
panel = prev.panel.override { preferWheel = true; };
bokeh = prev.bokeh.override { preferWheel = true; };
})
# more custom overlays
];
}; I moved the inline overlay above One thing I don't understand though is why the |
@adisbladis Any chance you can take a look at this PR? |
@cpcloud do you have any ideas about this? |
@@ -0,0 +1,18 @@ | |||
{ lib, poetry2nix, python3, pkgs, runCommand }: |
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.
One more thing: what does this test catch that the panel/bokeh one doesn't?
Could we just limit ourselves to one of the two? If not, then maybe adding an explanation of what exactly is being tested could be helpful.
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.
Sure, grpcio fails because of a missing wheel on the latest GitHub macos runners.
7628ab1
to
f109733
Compare
Applying defaults after user overlays feels wrong to me, and it does in fact break my code. It prevents users from undoing changes made in the default overlays. Please revert this. Code that breaks:
|
@adisbladis @yorickvP's request seems reasonable. Shall we revert? |
I'm OK with a revert. |
Any ideas about what the underlying cause of the lack of composability of |
Yes, Options:
|
I encountered the same issue. Will the change be reverted? As a workaround I did:
|
In nix-community/poetry2nix#899 the order of applying user and default overrides had been changed to apply user overrides first; this breaks overriding packages which already have entries in the default overrides. As a workaround, build the list of override overlays manually instead of using `poetry2nix.overrides.withDefaults`.
This also breaks in cases like #1519, or when trying to apply a local override for |
Adds a test to demonstrate failure to use the grpcio 1.51.1
osx 12.0 wheel available on PyPIwheel at all.Fixes #842.