From 8b319d4ce0bdee5ef558b0d4d8ac837f9ea5ba28 Mon Sep 17 00:00:00 2001 From: Ralph Liu Date: Thu, 7 Nov 2024 12:59:26 -0800 Subject: [PATCH] Remove CI scripts for nx-cugraph --- ci/run_nx_cugraph_pytests.sh | 10 -------- ci/test_wheel_nx-cugraph.sh | 11 --------- ci/wheel_smoke_test_nx-cugraph.py | 38 ------------------------------- 3 files changed, 59 deletions(-) delete mode 100755 ci/run_nx_cugraph_pytests.sh delete mode 100755 ci/test_wheel_nx-cugraph.sh delete mode 100644 ci/wheel_smoke_test_nx-cugraph.py diff --git a/ci/run_nx_cugraph_pytests.sh b/ci/run_nx_cugraph_pytests.sh deleted file mode 100755 index 0e309d1e2d4..00000000000 --- a/ci/run_nx_cugraph_pytests.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# Copyright (c) 2024, NVIDIA CORPORATION. - -set -euo pipefail - -# Support invoking run_nx_cugraph_pytests.sh outside the script directory -cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/nx-cugraph/nx_cugraph - -NX_CUGRAPH_USE_COMPAT_GRAPHS=False pytest --capture=no --cache-clear --benchmark-disable "$@" tests -NX_CUGRAPH_USE_COMPAT_GRAPHS=True pytest --capture=no --cache-clear --benchmark-disable "$@" tests diff --git a/ci/test_wheel_nx-cugraph.sh b/ci/test_wheel_nx-cugraph.sh deleted file mode 100755 index 024169ae698..00000000000 --- a/ci/test_wheel_nx-cugraph.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# Copyright (c) 2023-2024, NVIDIA CORPORATION. - -set -eoxu pipefail - -# Download wheels built during this job. -RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" -RAPIDS_PY_WHEEL_NAME="pylibcugraph_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./local-deps -python -m pip install ./local-deps/*.whl - -./ci/test_wheel.sh nx-cugraph diff --git a/ci/wheel_smoke_test_nx-cugraph.py b/ci/wheel_smoke_test_nx-cugraph.py deleted file mode 100644 index 10d26e3aac7..00000000000 --- a/ci/wheel_smoke_test_nx-cugraph.py +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) 2023, NVIDIA CORPORATION. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import math - -import networkx as nx -import nx_cugraph as nxcg - - -if __name__ == "__main__": - G = nx.Graph() - G.add_edges_from([(0, 1), (1, 2), (2, 3)]) - - nx_result = nx.betweenness_centrality(G) - # nx_cugraph is intended to be called via the NetworkX dispatcher, like - # this: - # nxcu_result = nx.betweenness_centrality(G, backend="cugraph") - # - # but here it is being called directly since the NetworkX version that - # supports the "backend" kwarg may not be available in the testing env. - nxcu_result = nxcg.betweenness_centrality(G) - - nx_nodes, nxcu_nodes = nx_result.keys(), nxcu_result.keys() - assert nxcu_nodes == nx_nodes - for node_id in nx_nodes: - nx_bc, nxcu_bc = nx_result[node_id], nxcu_result[node_id] - assert math.isclose(nx_bc, nxcu_bc, rel_tol=1e-6), \ - f"bc for {node_id=} exceeds tolerance: {nx_bc=}, {nxcu_bc=}"