PySpark XGBoost integration (#8020)
Co-authored-by: Hyunsu Cho <chohyu01@cs.washington.edu> Co-authored-by: Jiaming Yuan <jm.yuan@outlook.com>
This commit is contained in:
@@ -44,13 +44,15 @@ def pytest_addoption(parser):
|
||||
|
||||
|
||||
def pytest_collection_modifyitems(config, items):
|
||||
if config.getoption('--use-rmm-pool'):
|
||||
if config.getoption("--use-rmm-pool"):
|
||||
blocklist = [
|
||||
'python-gpu/test_gpu_demos.py::test_dask_training',
|
||||
'python-gpu/test_gpu_prediction.py::TestGPUPredict::test_shap',
|
||||
'python-gpu/test_gpu_linear.py::TestGPULinear'
|
||||
"python-gpu/test_gpu_demos.py::test_dask_training",
|
||||
"python-gpu/test_gpu_prediction.py::TestGPUPredict::test_shap",
|
||||
"python-gpu/test_gpu_linear.py::TestGPULinear",
|
||||
]
|
||||
skip_mark = pytest.mark.skip(reason='This test is not run when --use-rmm-pool flag is active')
|
||||
skip_mark = pytest.mark.skip(
|
||||
reason="This test is not run when --use-rmm-pool flag is active"
|
||||
)
|
||||
for item in items:
|
||||
if any(item.nodeid.startswith(x) for x in blocklist):
|
||||
item.add_marker(skip_mark)
|
||||
@@ -58,5 +60,9 @@ def pytest_collection_modifyitems(config, items):
|
||||
# mark dask tests as `mgpu`.
|
||||
mgpu_mark = pytest.mark.mgpu
|
||||
for item in items:
|
||||
if item.nodeid.startswith("python-gpu/test_gpu_with_dask.py"):
|
||||
if item.nodeid.startswith(
|
||||
"python-gpu/test_gpu_with_dask.py"
|
||||
) or item.nodeid.startswith(
|
||||
"python-gpu/test_spark_with_gpu/test_spark_with_gpu.py"
|
||||
):
|
||||
item.add_marker(mgpu_mark)
|
||||
|
||||
Reference in New Issue
Block a user