Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use pytest suite selection directly in CI and remove local wrappers
  • Loading branch information
csadorf committed Nov 18, 2026
commit aebab9257c4a3f8a6a18172e95432d03411a1ef0
8 changes: 0 additions & 8 deletions ci/run_cuml_dask_pytests.sh

This file was deleted.

8 changes: 0 additions & 8 deletions ci/run_cuml_integration_pytests.sh

This file was deleted.

8 changes: 0 additions & 8 deletions ci/run_cuml_singlegpu_accel_pytests.sh

This file was deleted.

8 changes: 0 additions & 8 deletions ci/run_cuml_singlegpu_pytests.sh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We rely on these ci/run_* files to have a way to invoke that tests that isn't tightly coupled to being on GitHub in cuML's open source CI.

That's useful in local development, hardware bringup, DLFW builds, etc.

That's why they were introduced in the first place: #5761

Can we please keep these?

cross-ref: rapidsai/build-planning#269

This file was deleted.

6 changes: 4 additions & 2 deletions ci/test_python_dask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ set +e

# Keep both transport reports; the UCXX run must not overwrite the TCP run.
rapids-logger "pytest cuml-dask (No UCXX)"
timeout -v --signal=SIGINT --kill-after=60s 1h ./ci/run_cuml_dask_pytests.sh \
timeout -v --signal=SIGINT --kill-after=60s 1h python -m pytest --cuml-suite=dask \
--cache-clear --durations=100 --durations-min=1 \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-dask.xml"

rapids-logger "pytest cuml-dask (UCXX only)"
timeout -v --signal=SIGINT --kill-after=60s 10m ./ci/run_cuml_dask_pytests.sh \
timeout -v --signal=SIGINT --kill-after=60s 10m python -m pytest --cuml-suite=dask \
--cache-clear --durations=100 --durations-min=1 \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-dask-ucxx.xml" --run_ucx

rapids-logger "Test script exiting with value: $EXITCODE"
Expand Down
5 changes: 3 additions & 2 deletions ci/test_python_integration.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Support invoking test_python_singlegpu.sh outside the script directory
Expand All @@ -13,7 +13,8 @@ trap "EXITCODE=1" ERR
set +e

rapids-logger "pytest cuml integration"
timeout -v --signal=SIGINT --kill-after=60s 1h ./ci/run_cuml_integration_pytests.sh \
timeout -v --signal=SIGINT --kill-after=60s 1h python -m pytest --cuml-suite=cudf-pandas \
--cache-clear --durations=100 --durations-min=1 --quick_run \
--numprocesses=8 \
--dist=worksteal \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuml.xml"
Expand Down
8 changes: 5 additions & 3 deletions ci/test_python_singlegpu.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Support invoking test_python_singlegpu.sh outside the script directory
Expand All @@ -21,13 +21,15 @@ trap "EXITCODE=1" ERR
set +e

rapids-logger "pytest cuml single GPU"
timeout -v --signal=SIGINT --kill-after=60s 1h ./ci/run_cuml_singlegpu_pytests.sh \
timeout -v --signal=SIGINT --kill-after=60s 1h python -m pytest --cuml-suite=standard \
--cache-clear --durations=100 --durations-min=1 \
--numprocesses=8 \
--dist=worksteal \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuml.xml"

rapids-logger "pytest cuml accelerator"
timeout -v --signal=SIGINT --kill-after=60s 15m ./ci/run_cuml_singlegpu_accel_pytests.sh \
timeout -v --signal=SIGINT --kill-after=60s 15m python -m pytest --cuml-suite=accel \
--cache-clear --durations=100 --durations-min=1 \
--numprocesses=8 \
--dist=worksteal \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-accel.xml"
Expand Down
9 changes: 6 additions & 3 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,25 @@ rapids-logger "Testing libcuml linkage"
python -m pytest --cache-clear python/libcuml/tests/test_libcuml_linkage.py -v

rapids-logger "pytest cuml single GPU"
timeout -v --signal=SIGINT --kill-after=60s 1h ./ci/run_cuml_singlegpu_pytests.sh \
timeout -v --signal=SIGINT --kill-after=60s 1h python -m pytest --cuml-suite=standard \
--cache-clear --durations=100 --durations-min=1 \
--numprocesses=8 \
--dist=worksteal \
-k 'not test_sparse_pca_inputs' \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuml.xml"

if [[ "${RAPIDS_DEPENDENCIES:-}" == "nightly" ]]; then
rapids-logger "pytest cuml accelerator"
timeout -v --signal=SIGINT --kill-after=60s 15m ./ci/run_cuml_singlegpu_accel_pytests.sh \
timeout -v --signal=SIGINT --kill-after=60s 15m python -m pytest --cuml-suite=accel \
--cache-clear --durations=100 --durations-min=1 \
--numprocesses=8 \
--dist=worksteal \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-accel.xml"
fi

# Run test_sparse_pca_inputs separately
timeout -v --signal=SIGINT --kill-after=60s 10m ./ci/run_cuml_singlegpu_pytests.sh \
timeout -v --signal=SIGINT --kill-after=60s 10m python -m pytest --cuml-suite=standard \
--cache-clear --durations=100 --durations-min=1 \
-k 'test_sparse_pca_inputs' \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-sparse-pca.xml"

Expand Down
3 changes: 2 additions & 1 deletion ci/test_wheel_dask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ trap "EXITCODE=1" ERR
set +e

rapids-logger "pytest cuml dask"
timeout -v --signal=SIGINT --kill-after=60s 1h ./ci/run_cuml_dask_pytests.sh --junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-dask.xml"
timeout -v --signal=SIGINT --kill-after=60s 1h python -m pytest --cuml-suite=dask \
--cache-clear --durations=100 --durations-min=1 --junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-dask.xml"

rapids-logger "Test script exiting with value: $EXITCODE"
exit ${EXITCODE}
34 changes: 0 additions & 34 deletions ci/tests/test_pytest_entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,37 +94,3 @@ def test_explicit_dask_not_ignored(repo):
result = run(repo, "python/cuml/tests/dask")
assert result.returncode == 0, result.stdout
assert "2 passed" in result.stdout


@pytest.mark.parametrize(
"runner",
[
"ci/run_cuml_singlegpu_pytests.sh",
"ci/run_cuml_dask_pytests.sh",
"ci/run_cuml_singlegpu_accel_pytests.sh",
"ci/run_cuml_integration_pytests.sh",
],
)
def test_runner_preserves_arguments_and_cwd(tmp_path, runner):
# Capture the exact interpreter invocation; no GPU or upstream checkout.
executable = tmp_path / "python"
executable.write_text('#!/bin/bash\nprintf "%s\\n" "$PWD" "$@"\n')
executable.chmod(0o755)
result = subprocess.run(
[
str(REPO / runner),
"some path/test_file.py::test_one",
"-k",
"a or b",
],
cwd=tmp_path,
env={**os.environ, "PATH": f"{tmp_path}:{os.environ['PATH']}"},
text=True,
capture_output=True,
)
assert result.returncode == 0, result.stderr
lines = result.stdout.splitlines()
assert lines[0] == str(tmp_path)
assert lines[1:5] == ["-m", "pytest", "-c", str(REPO / "pyproject.toml")]
assert lines[-3:] == ["some path/test_file.py::test_one", "-k", "a or b"]
assert "." not in lines
Loading