Skip to content

Commit 6812116

Browse files
committed
Merge remote-tracking branch 'upstream/branch-25.08' into branch-25.08_update-cugraph-api
2 parents 1623b11 + 2d1fa05 commit 6812116

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

ci/run_cugraph_pytests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ DASK_DISTRIBUTED__SCHEDULER__WORKER_TTL="${DASK_DISTRIBUTED__SCHEDULER__WORKER_T
1111
DASK_DISTRIBUTED__COMM__TIMEOUTS__CONNECT="${DASK_DISTRIBUTED__COMM__TIMEOUTS__CONNECT:-1000s}" \
1212
DASK_CUDA_WAIT_WORKERS_MIN_TIMEOUT="${DASK_CUDA_WAIT_WORKERS_MIN_TIMEOUT:-1000s}" \
1313
pytest --cache-clear --import-mode=append --benchmark-disable \
14-
-k "not test_property_graph_mg" \
1514
"$@" \
1615
tests

ci/test_python.sh

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,31 +82,43 @@ rapids-logger "pytest cugraph (not mg, with xdist)"
8282
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/cugraph-coverage.xml" \
8383
--cov-report=term
8484

85-
# Some tests fail with pytest-xdist enabled.
86-
# See https://github.com/rapidsai/cugraph/issues/5048
87-
rapids-logger "pytest cugraph (not mg, without xdist)"
85+
# The datasets tests may modify global states and interfere with tests running on other workers
86+
# these tests are typically only limited by network speed and run fairly quickly, so they can be
87+
# run separately
88+
rapids-logger "pytest cugraph (datasets APIs)"
8889
./ci/run_cugraph_pytests.sh \
8990
--verbose \
9091
--junitxml="${RAPIDS_TESTS_DIR}/junit-cugraph.xml" \
91-
--numprocesses=1 \
92-
--dist=worksteal \
93-
-m "not mg" \
94-
-k "not test_dataset and (test_bulk_sampler or test_create_undirected_graph_from_asymmetric_adj_list or test_uniform_neighbor_sample or test_node2vec)" \
92+
-k "test_dataset" \
9593
--cov-config=../../.coveragerc \
9694
--cov=cugraph \
9795
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/cugraph-coverage.xml" \
9896
--cov-report=term
9997

100-
rapids-logger "pytest cugraph (mg)"
98+
# excludes known failures that will always fail when run in combination
99+
rapids-logger "pytest cugraph (mg, with xdist)"
101100
./ci/run_cugraph_pytests.sh \
102101
--verbose \
103102
--junitxml="${RAPIDS_TESTS_DIR}/junit-cugraph.xml" \
103+
--numprocesses=8 \
104+
--dist=worksteal \
104105
-m "mg" \
106+
-k "not test_dataset and not test_property_graph_mg and not test_dist_sampler_mg and not test_uniform_neighbor_sample_mg" \
105107
--cov-config=../../.coveragerc \
106108
--cov=cugraph \
107109
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/cugraph-coverage.xml" \
108110
--cov-report=term
109111

112+
rapids-logger "pytest cugraph (mg dist_sampler and uns)"
113+
./ci/run_cugraph_pytests.sh \
114+
--verbose \
115+
--junitxml="${RAPIDS_TESTS_DIR}/junit-cugraph.xml" \
116+
-m "mg" \
117+
-k "test_dist_sampler_mg or test_uniform_neighbor_sample_mg" \
118+
--cov-config=../../.coveragerc \
119+
--cov=cugraph \
120+
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/cugraph-coverage.xml" \
121+
--cov-report=term
110122

111123
rapids-logger "pytest cugraph benchmarks (run as tests)"
112124
./ci/run_cugraph_benchmark_pytests.sh --verbose

python/.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ include = cugraph/cugraph/*
66
omit = cugraph/cugraph/tests/*
77
cugraph-service/tests/*
88
pylibcugraph/pylibcugraph/tests/*
9+
disable_warnings = include-ignored

python/cugraph/cugraph/dask/common/mg_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def is_single_gpu():
5656
status, count = runtime.cudaGetDeviceCount()
5757
if status != runtime.cudaError_t.cudaSuccess:
5858
raise RuntimeError("Could not get CUDA device count.")
59-
return count > 1
59+
return count == 1
6060

6161

6262
def get_visible_devices():

python/cugraph/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,6 @@ select = [
103103

104104
# PyPI limit is 100 MiB, fail CI before we get too close to that
105105
max_allowed_size_compressed = '75M'
106+
107+
[tool.coverage.run]
108+
disable_warnings = ["module-not-measured"]

0 commit comments

Comments
 (0)