-
-
Notifications
You must be signed in to change notification settings - Fork 13.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
python312Packages.plotly: disable checks on darwin, unbreak #347567
Conversation
@ofborg build python311Packages.plotly python312Packages.plotly |
During a nixpkgs-review on x86-64-Linux when building for python 3.11 Edit: also breaks in the CI, same error): > FAILED plotly/tests/test_optional/test_px/test_px_input.py::test_build_df_from_vaex_and_polars[vaex] - ModuleNotFoundError: No module named 'vaex'
> FAILED plotly/tests/test_optional/test_px/test_px_input.py::test_build_df_from_vaex_and_polars[polars] - ModuleNotFoundError: No module named 'polars'
> FAILED plotly/tests/test_optional/test_px/test_px_input.py::test_build_df_with_hover_data_from_vaex_and_polars[hover_data0-vaex] - ModuleNotFoundError: No module named 'vaex'
> FAILED plotly/tests/test_optional/test_px/test_px_input.py::test_build_df_with_hover_data_from_vaex_and_polars[hover_data0-polars] - ModuleNotFoundError: No module named 'polars'
> FAILED plotly/tests/test_optional/test_px/test_px_input.py::test_build_df_with_hover_data_from_vaex_and_polars[hover_data1-vaex] - ModuleNotFoundError: No module named 'vaex'
> FAILED plotly/tests/test_optional/test_px/test_px_input.py::test_build_df_with_hover_data_from_vaex_and_polars[hover_data1-polars] - ModuleNotFoundError: No module named 'polars' |
ah, i misread the logs while fixing #347564, i'll move the fix here |
|
likely oom, you either need to wait for ofborg eval or install more ram |
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.
Can confirm that both python311Packages.plotly
and python312Packages.plotly
build. nixpkgs-review
is OOMing.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/2029 |
I've done that too. An easy mistake! P.S. Test error is fixed, just awaiting nixpkgs-review |
Result of 8 packages marked as broken and skipped:
122 packages built:
|
Result of 28 packages marked as broken and skipped:
21 packages failed to build:
71 packages built:
|
darwin derivation is now unchanged from before the checkphase was added. Can be addressed in a followup, less time-pressed PR |
seems to be a spike in ofborg eval queue, it might take a while |
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 with the expectation you'll unblock Darwin soon. Letting it be deferred due to the urgency of unbreaking the build.
It looks like |
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 made it all work properly on Darwin without breaking Linux. The review tool wouldn't let me put optional-dependencies
in the right place beneath dependencies
, so please do so.
If we're rebuilding a slew of Darwin packages, might as well do it right.
@@ -1,5 +1,6 @@ | |||
{ | |||
lib, | |||
stdenv, |
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.
stdenv, |
# the check inputs are broken on darwin | ||
doCheck = !stdenv.hostPlatform.isDarwin; | ||
|
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 check inputs are broken on darwin | |
doCheck = !stdenv.hostPlatform.isDarwin; | |
optional-dependencies = { | |
orca = [ orca ]; | |
}; |
and change nativeCheckInputs
to checkInputs
@@ -116,6 +120,9 @@ buildPythonPackage rec { | |||
"test_dependencies_not_imported" | |||
# FAILED test_init/test_lazy_imports.py::test_lazy_imports - AssertionError: assert 'plotly' not in {'IPython': <module 'IPython' from '... | |||
"test_lazy_imports" | |||
# requires vaex and polars, vaex is not packaged | |||
"test_build_df_from_vaex_and_polars" | |||
"test_build_df_with_hover_data_from_vaex_and_polars" |
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.
"test_build_df_with_hover_data_from_vaex_and_polars" | |
"test_build_df_with_hover_data_from_vaex_and_polars" | |
# Cannot launch kaleido as a subprocess. This would need a passthru test. | |
"test_kaleido_engine_to_image_returns_bytes" | |
"test_kaleido_fulljson" | |
"test_bytesio" | |
"test_png_renderer_mimetype" | |
"test_svg_renderer_show" | |
"test_pdf_renderer_show_override" | |
"test_mimetype_combination" | |
# Cannot run on systes without orca | |
"test_scraper" | |
"test_bytesio" |
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.
How about
"test_build_df_with_hover_data_from_vaex_and_polars" | |
"test_build_df_with_hover_data_from_vaex_and_polars" | |
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ | |
# Cannot launch kaleido as a subprocess. This would need a passthru test. | |
"test_kaleido_engine_to_image_returns_bytes" | |
"test_kaleido_fulljson" | |
"test_bytesio" | |
"test_png_renderer_mimetype" | |
"test_svg_renderer_show" | |
"test_pdf_renderer_show_override" | |
"test_mimetype_combination" | |
# Cannot run on systes without orca | |
"test_scraper" | |
"test_bytesio" | |
]; |
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.
@Pandapip1 that's even better.
I would argue the important thing is getting this merged to fix the broken builds; 11-100 additional rebuilds aren't worth blocking this PR. As per usual, the aarch64-darwin tests have stalled; this PR should be ready for merge. |
I got it to build by simply disabling those two tests: https://github.com/NixOS/nixpkgs/pull/347732/files#diff-efb1e886a286b10961f06040b7b538e22155f85984a2098f190c9751bbb63f7fR80-R82 |
On Darwin? Sandboxed? |
It looks like my change did not affect darwin platforms for some reason, so I don't know. |
darwin was broken since some check inputs dont eval on darwin, disabling checkPhase makes it so the nativeCheckInputs are not passed to the derivation |
In any case, I have no objection to this getting merged as is plus a follow-up patch. Or the fixes can be added (easily) and this is done the right way. |
i held of my own cleanup fix due to the slow eval, i'll open a followup |
please view #347763 |
It was broken on Darwin for all Python versions. Edit: Whoops, I see you've already responded. |
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.