-
Notifications
You must be signed in to change notification settings - Fork 925
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
[REVIEW] Add pytest-xdist to dev environment.yml #6958
[REVIEW] Add pytest-xdist to dev environment.yml #6958
Conversation
@galipremsagar I think we'd need to hook up pytest-xdist into CI in this PR as well: https://github.com/rapidsai/cudf/blob/branch-0.18/ci/gpu/build.sh#L202-L222 |
Thanks @kkraus14, I was under the impression integration repo was the place pytests were being triggered. Added it here aswell. |
@@ -205,11 +205,11 @@ fi | |||
|
|||
cd $WORKSPACE/python/cudf | |||
gpuci_logger "Python py.test for cuDF" | |||
py.test --cache-clear --basetemp=${WORKSPACE}/cudf-cuda-tmp --junitxml=${WORKSPACE}/junit-cudf.xml -v --cov-config=.coveragerc --cov=cudf --cov-report=xml:${WORKSPACE}/python/cudf/cudf-coverage.xml --cov-report term | |||
py.test -n 6 --cache-clear --basetemp=${WORKSPACE}/cudf-cuda-tmp --junitxml=${WORKSPACE}/junit-cudf.xml -v --cov-config=.coveragerc --cov=cudf --cov-report=xml:${WORKSPACE}/python/cudf/cudf-coverage.xml --cov-report term |
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.
What's the reasoning behind 6
here? Should we set this programmatically based on something?
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.
CI test jobs have 8vCPUS, but only set PARALLEL_LEVEL
to 4 to have a stable build. But for pytests we can easily use 6 to 7 cores. That was the reason I didn't set it programmatically here, and the reason to not use all 8 cores is to prevent choking of pytest execution.
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.
@rapidsai/ops any guidance / thoughts here? This looks good to go otherwise.
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.
looks good to me.
rerun tests |
1 similar comment
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-0.18 #6958 +/- ##
===============================================
+ Coverage 81.59% 82.02% +0.42%
===============================================
Files 96 96
Lines 15905 16340 +435
===============================================
+ Hits 12978 13403 +425
- Misses 2927 2937 +10
Continue to review full report at Codecov.
|
Resolves: #6370
This PR enables the parallel execution of pytests of
cudf
,dask_cudf
&custreamz
in CI. The changes also include addingpytest-xdist
to dev environments.With these changes, here is the change in pytest execution times in CI:
Related Integration changes: rapidsai/integration#188