-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
CI Use pytest-xdist in debian 32 build #32031
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
Conversation
…ne core (we were doing this when using physical cores_
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. The last run was 16 min long. So there is definitely an improvement!
@@ -58,8 +58,10 @@ if [[ "$COVERAGE" == "true" ]]; then | |||
fi | |||
|
|||
if [[ "$PYTEST_XDIST_VERSION" != "none" ]]; then | |||
XDIST_WORKERS=$(python -c "import joblib; print(joblib.cpu_count(only_physical_cores=True))") | |||
TEST_CMD="$TEST_CMD -n$XDIST_WORKERS" | |||
XDIST_WORKERS=$(python -c "import joblib; print(joblib.cpu_count())") |
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.
Why is this change needed? Is this caused by a bug or limitation in joblib?
Does this negatively impact other build times?
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.
Basically right now, most (all?) of the Linux Azure VMs appears to have 1 physical cores and 2 logical cores 1, so we run pytest -n1
2. pytest -n2
speeds things up on debian-32 build but for some reason (maybe BLAS?) does not seem to have much effect on the other Linux builds, see #32031 (comment).
Footnotes
It does speed-up the Debian 32 builds from ~25 minutes on 3 CI runs on The other builds don't seem affected or at least the difference is within the variability which is big sometimes. Note that using the number of logical cores does not affect OSX because OSX VMs seems to have |
Debian 32 build tends to be one of the slow build I think, something like ~25 minutes where others are more 10-20 minutes. Let's see if using
pytest-xdist
still has issues and whether it speeds things up a bit.