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
Update to support Datashader on Python 3.11 #5720
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## main #5720 +/- ##
==========================================
- Coverage 88.24% 88.19% -0.05%
==========================================
Files 304 304
Lines 62680 62680
==========================================
- Hits 55309 55283 -26
- Misses 7371 7397 +26 see 11 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The reason why this failed is because of the multiprocessing of
pytest-xdist
and not having set multipleOMP_NUM_THREADS
.I could recreate the problem locally in a Virtual Machine on AMD CPU + Windows 10. @ianthomas23 could not recreate on an Intel CPU + Windows 11 on a real machine.
The steps I needed to recreate it was creating an environment like:
conda install python=3.8 pytest nomkl pandas pyarrow pytest-xdist
which yielded the following environment:Environment
And having the following structure. Where
conftest.py
containingimport pandas as pd
andtest_example.py
was an empty file.When running this command:
pytest -n 8
. Where I have 8 cores available.The error output could, in the best case, be the following. In the worse case, it could raise a Windows error, close the command prompt or git bash, or even give freeze Windows, so I needed to restart.
Error traceback
Example of crash:
With small changes to the set-up the code would run just fine:
pytest -n 7
- Though it would fail if I had VS Code open and ran the command in Command prompt...import pandas as pd
in the conftest.pyOMP_NUM_THREADS=1