[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. |
| 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.
What's the reasoning behind 6 here? Should we set this programmatically based on something?
There was a problem hiding this comment.
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.
@rapidsai/ops any guidance / thoughts here? This looks good to go otherwise.
|
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&custreamzin CI. The changes also include addingpytest-xdistto dev environments.With these changes, here is the change in pytest execution times in CI:
Related Integration changes: rapidsai/integration#188