From 326cbd453e48df5983380da36dac592a1857f0f9 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 3 Nov 2026 12:13:36 -0600 Subject: [PATCH 01/17] Test on WSL in CI --- .github/workflows/pr.yaml | 12 ++++++------ .github/workflows/test.yaml | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 741614c962..8be4dfe59b 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -327,12 +327,12 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@wsl-matrices if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp with: build_type: pull-request script: ci/test_cpp.sh - matrix_type: pull-request + matrix_type: pull-request,wsl-pr conda-cpp-checks: needs: conda-cpp-build permissions: @@ -572,12 +572,12 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_wheels with: build_type: pull-request script: ci/test_wheel.sh - matrix_type: pull-request + matrix_type: pull-request,wsl-pr wheel-tests-cuml-dask: needs: [wheel-build-cuml, changed-files] permissions: @@ -587,12 +587,12 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_wheels with: build_type: pull-request script: ci/test_wheel_dask.sh - matrix_type: pull-request + matrix_type: pull-request,wsl-pr devcontainer: permissions: actions: read diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 397a6ea422..2736c7962e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -48,14 +48,14 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@wsl-matrices with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} date: ${{ inputs.date }} script: ci/test_cpp.sh sha: ${{ inputs.sha }} - matrix_type: nightly + matrix_type: nightly,wsl-nightly conda-python-tests-singlegpu: permissions: actions: read @@ -179,14 +179,14 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} date: ${{ inputs.date }} sha: ${{ inputs.sha }} script: ci/test_wheel.sh - matrix_type: nightly + matrix_type: nightly,wsl-nightly wheel-tests-cuml-nightly-dependencies-versions: permissions: actions: read @@ -195,7 +195,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} @@ -210,7 +210,7 @@ jobs: | max_by([.CUDA_VER, .PY_VER] | map(split(".") | map(tonumber))) | .DEPENDENCIES = "nightly" | [.] - matrix_type: nightly + matrix_type: nightly,wsl-nightly wheel-tests-cuml-dask: permissions: actions: read @@ -219,14 +219,14 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} date: ${{ inputs.date }} sha: ${{ inputs.sha }} script: ci/test_wheel_dask.sh - matrix_type: nightly + matrix_type: nightly,wsl-nightly wheel-tests-integrations: permissions: actions: read @@ -235,7 +235,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} @@ -245,4 +245,4 @@ jobs: # Test all CUDA major versions with latest dependencies and respective latest Python version matrix_filter: 'map(select(.DEPENDENCIES == "latest")) | group_by(.CUDA_VER|split(".")|.[0]) | map(max_by(.PY_VER|split(".")|map(tonumber)))' continue-on-error: true - matrix_type: nightly + matrix_type: nightly,wsl-nightly From 7fb75ea7eef5956f8c608292b5314f4693750eff Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 3 Nov 2026 13:29:41 -0600 Subject: [PATCH 02/17] Use shared-workflows main for WSL matrices --- .github/workflows/pr.yaml | 6 +++--- .github/workflows/test.yaml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 8be4dfe59b..17df9685bf 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -327,7 +327,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@wsl-matrices + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp with: build_type: pull-request @@ -572,7 +572,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_wheels with: build_type: pull-request @@ -587,7 +587,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_wheels with: build_type: pull-request diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2736c7962e..6ba47a3e37 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -48,7 +48,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@wsl-matrices + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} @@ -179,7 +179,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} @@ -195,7 +195,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} @@ -219,7 +219,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} @@ -235,7 +235,7 @@ jobs: packages: read pull-requests: read secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@wsl-matrices + uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main with: build_type: ${{ inputs.build_type }} branch: ${{ inputs.branch }} From 51b800c7f18c44c677f90c688d4c734b43d7eadd Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 3 Nov 2026 17:09:45 -0600 Subject: [PATCH 03/17] TEMP: minimize CI to failing WSL jobs --- .github/workflows/pr.yaml | 333 +------------------------------------- 1 file changed, 4 insertions(+), 329 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 17df9685bf..67ba3cac83 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,64 +8,8 @@ concurrency: cancel-in-progress: true permissions: {} jobs: - # Please keep pr-builder as the top job here - pr-builder: - needs: - - build-details - - check-nightly-ci - - changed-files - - checks - - clang-tidy - - conda-cpp-build - - conda-cpp-tests - - conda-cpp-checks - - conda-python-build - - conda-python-tests-singlegpu - - conda-python-tests-dask - - conda-python-tests-cudf-pandas-integration - - conda-python-scikit-learn-accel-tests - - conda-python-cuml-accel-upstream-tests - - conda-notebook-tests - - docs-build - - docs-build-matrix - - publish-api-docs - - wheel-build-libcuml - - wheel-build-cuml - - wheel-tests-cuml - - wheel-tests-cuml-dask - - devcontainer - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@main - if: always() - with: - needs: ${{ toJSON(needs) }} build-details: uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main - check-nightly-ci: - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - id-token: write - pull-requests: read - env: - GH_TOKEN: ${{ github.token }} - steps: - - name: Get PR Info - id: get-pr-info - uses: nv-gha-runners/get-pr-info@090577647b8ddc4e06e809e264f7881650ecdccf # main - - name: Check if nightly CI is passing - uses: rapidsai/shared-actions/check_nightly_success/dispatch@main - with: - repo: ${{ github.repository }} - target-branch: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }} - max-days-without-success: 14 changed-files: permissions: actions: read @@ -272,256 +216,8 @@ jobs: - '!img/**' - '!notebooks/**' - '!thirdparty/LICENSES/**' - checks: - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@main - with: - enable_check_generated_files: false - # Main builds seed this cache. PR merge refs can restore it but should not create - # duplicate archives that are inaccessible to other PRs. - pre-commit-cache-read-only: true - clang-tidy: - needs: checks - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - with: - build_type: pull-request - node_type: "cpu8" - arch: "amd64" - container_image: "rapidsai/ci-conda:26.12-latest" - script: "ci/run_clang_tidy.sh" - conda-cpp-build: - needs: [build-details, checks] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main - with: - build_type: pull-request - build-datetime: ${{ needs.build-details.outputs.build-datetime }} - node_type: cpu16 - script: ci/build_cpp.sh - matrix_type: pull-request - conda-cpp-tests: - needs: [conda-cpp-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp - with: - build_type: pull-request - script: ci/test_cpp.sh - matrix_type: pull-request,wsl-pr - conda-cpp-checks: - needs: conda-cpp-build - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-post-build-checks.yaml@main - with: - build_type: pull-request - package_name: libcuml - conda-python-build: - needs: [build-details, conda-cpp-build] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main - with: - build_type: pull-request - build-datetime: ${{ needs.build-details.outputs.build-datetime }} - script: ci/build_python.sh - # Build a conda package for each CUDA x ARCH x minimum supported Python version - matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber))) - matrix_type: pull-request - conda-python-tests-singlegpu: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_singlegpu.sh" - matrix_type: pull-request - conda-python-tests-cudf-pandas-integration: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - # Select the amd64 entry with the highest CUDA and Python version - matrix_filter: map(select(.ARCH=="amd64")) | [max_by([.CUDA_VER,.PY_VER]|map(split(".")|map(tonumber)))] - build_type: pull-request - script: "ci/test_python_integration.sh" - matrix_type: pull-request - conda-python-tests-dask: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_dask.sh" - matrix_type: pull-request - conda-python-scikit-learn-accel-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_scikit_learn_tests.sh" - # One run for each dependencies config on amd64, breaking ties by highest Python version - matrix_filter: | - ( - map(select(.ARCH == "amd64")) - | sort_by(.PY_VER) - | unique_by(.DEPENDENCIES) - ) - + ( - map(select(.ARCH == "amd64")) - | map(select(.DEPENDENCIES == "oldest")) - | sort_by(.PY_VER) - | map(.DEPENDENCIES = "intermediate") - ) - matrix_type: pull-request - conda-python-cuml-accel-upstream-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_cuml_accel_upstream.sh" - # One run for each dependencies config on amd64, breaking ties by highest Python version - matrix_filter: map(select(.ARCH == "amd64")) | sort_by(.PY_VER) | unique_by(.DEPENDENCIES) - matrix_type: pull-request - conda-notebook-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_notebooks - with: - build_type: pull-request - node_type: "gpu-rtxpro6000-latest-1" - arch: "amd64" - container_image: "rapidsai/ci-conda:26.12-latest" - script: "ci/test_notebooks.sh" - docs-build-matrix: - permissions: - contents: read - uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@main - with: - build_type: pull-request - matrix_name: docs-build - matrix_type: pull-request - docs-build: - needs: [docs-build-matrix, conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - strategy: - fail-fast: false - matrix: ${{ fromJSON(needs.docs-build-matrix.outputs.matrix) }} - if: fromJSON(needs.changed-files.outputs.changed_file_groups).build_docs - with: - build_type: pull-request - node_type: "gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1" - arch: "${{ matrix.arch }}" - container_image: "rapidsai/ci-conda:26.12-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}" - script: "ci/build_docs.sh" - publish-api-docs: - needs: [docs-build] - permissions: - contents: read - id-token: write - secrets: - akamai-access-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_ACCESS_TOKEN }} - akamai-client-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_TOKEN }} - akamai-client-secret: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_SECRET }} - akamai-emails-to-notify: ${{ secrets.NVIDIA_DOCS_AKAMAI_EMAILS_TO_NOTIFY }} - akamai-host: ${{ secrets.NVIDIA_DOCS_AKAMAI_HOST }} - target-aws-access-key-id: ${{ secrets.NVIDIA_DOCS_AWS_ACCESS_KEY_ID }} - target-aws-region: ${{ secrets.NVIDIA_DOCS_AWS_REGION }} - target-aws-secret-access-key: ${{ secrets.NVIDIA_DOCS_AWS_SECRET_ACCESS_KEY }} - target-archive-s3-bucket: ${{ secrets.NVIDIA_DOCS_ARCHIVE_S3_BUCKET }} - target-s3-bucket: ${{ secrets.NVIDIA_DOCS_S3_BUCKET }} - uses: rapidsai/shared-workflows/.github/workflows/publish-api-docs.yaml@main - with: - docs-projects: cuml - dry-run: true wheel-build-libcuml: - needs: [build-details, checks] + needs: [build-details] permissions: actions: read contents: read @@ -544,7 +240,7 @@ jobs: package-type: cpp matrix_type: pull-request wheel-build-cuml: - needs: [build-details, checks, wheel-build-libcuml] + needs: [build-details, wheel-build-libcuml] permissions: actions: read contents: read @@ -577,7 +273,7 @@ jobs: with: build_type: pull-request script: ci/test_wheel.sh - matrix_type: pull-request,wsl-pr + matrix_type: wsl-pr wheel-tests-cuml-dask: needs: [wheel-build-cuml, changed-files] permissions: @@ -592,25 +288,4 @@ jobs: with: build_type: pull-request script: ci/test_wheel_dask.sh - matrix_type: pull-request,wsl-pr - devcontainer: - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/build-in-devcontainer.yaml@main - with: - arch: '["amd64", "arm64"]' - cuda: '["13.4"]' - node_type: "cpu8" - env: | - SCCACHE_DIST_MAX_RETRIES=inf - SCCACHE_SERVER_LOG=sccache=debug - SCCACHE_DIST_FALLBACK_TO_LOCAL_COMPILE=false - build_command: | - sccache --zero-stats; - build-all -j0 --verbose -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=ON; - sccache --show-adv-stats; + matrix_type: wsl-pr From 6aaa80b0283f7e28d25003d50966d4c10ef2748c Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 3 Nov 2026 17:10:53 -0600 Subject: [PATCH 04/17] TEMP: WSL diagnostics for NCCL and test durations --- ci/test_wheel.sh | 3 ++- ci/test_wheel_dask.sh | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 23f3a13392..9514fdce3c 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -64,7 +64,8 @@ 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 \ +nproc; free -g; lscpu | head -20 +timeout -v --signal=SIGINT --kill-after=60s 2h ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \ --dist=worksteal \ -k 'not test_sparse_pca_inputs' \ diff --git a/ci/test_wheel_dask.sh b/ci/test_wheel_dask.sh index 2e08ca09ff..b64ab5c645 100755 --- a/ci/test_wheel_dask.sh +++ b/ci/test_wheel_dask.sh @@ -31,6 +31,19 @@ EXITCODE=0 trap "EXITCODE=1" ERR set +e +rapids-logger "TEMP: WSL diagnostics" +nproc; free -g; nvidia-smi topo -m || true; ls -la /dev/shm; df -h /dev/shm +export NCCL_DEBUG=INFO +export NCCL_DEBUG_SUBSYS=ALL +python -c " +from raft_dask.common.nccl import nccl, unique_id +n = nccl() +uid = nccl.get_unique_id() +n.init(1, uid, 0) +print('single-rank NCCL init OK') +" || true +timeout -v --signal=SIGINT --kill-after=60s 10m ./ci/run_cuml_dask_pytests.sh -x -k 'test_get_combined_model' || true +unset NCCL_DEBUG NCCL_DEBUG_SUBSYS 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" From 5d8bb1ce110883363b1b64a22d965e75f8703734 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 3 Nov 2026 19:17:41 -0600 Subject: [PATCH 05/17] Revert "TEMP: WSL diagnostics for NCCL and test durations" This reverts commit 6aaa80b0283f7e28d25003d50966d4c10ef2748c. --- ci/test_wheel.sh | 3 +-- ci/test_wheel_dask.sh | 13 ------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 9514fdce3c..23f3a13392 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -64,8 +64,7 @@ rapids-logger "Testing libcuml linkage" python -m pytest --cache-clear python/libcuml/tests/test_libcuml_linkage.py -v rapids-logger "pytest cuml single GPU" -nproc; free -g; lscpu | head -20 -timeout -v --signal=SIGINT --kill-after=60s 2h ./ci/run_cuml_singlegpu_pytests.sh \ +timeout -v --signal=SIGINT --kill-after=60s 1h ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \ --dist=worksteal \ -k 'not test_sparse_pca_inputs' \ diff --git a/ci/test_wheel_dask.sh b/ci/test_wheel_dask.sh index b64ab5c645..2e08ca09ff 100755 --- a/ci/test_wheel_dask.sh +++ b/ci/test_wheel_dask.sh @@ -31,19 +31,6 @@ EXITCODE=0 trap "EXITCODE=1" ERR set +e -rapids-logger "TEMP: WSL diagnostics" -nproc; free -g; nvidia-smi topo -m || true; ls -la /dev/shm; df -h /dev/shm -export NCCL_DEBUG=INFO -export NCCL_DEBUG_SUBSYS=ALL -python -c " -from raft_dask.common.nccl import nccl, unique_id -n = nccl() -uid = nccl.get_unique_id() -n.init(1, uid, 0) -print('single-rank NCCL init OK') -" || true -timeout -v --signal=SIGINT --kill-after=60s 10m ./ci/run_cuml_dask_pytests.sh -x -k 'test_get_combined_model' || true -unset NCCL_DEBUG NCCL_DEBUG_SUBSYS 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" From 69f7e66894a3f71155d73ac6c7c2e0fcf13c40bb Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 3 Nov 2026 19:17:41 -0600 Subject: [PATCH 06/17] Increase single-GPU wheel test timeout to 90 minutes for slower WSL runners --- ci/test_wheel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 23f3a13392..5064f198e7 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -64,7 +64,7 @@ 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 90m ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \ --dist=worksteal \ -k 'not test_sparse_pca_inputs' \ From 03a8d2eb2e52cbc3427d8863f1f93eb8c3fb8c4c Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 3 Nov 2026 19:17:41 -0600 Subject: [PATCH 07/17] Disable NCCL cuMem allocations in dask wheel tests on WSL --- ci/test_wheel_dask.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/test_wheel_dask.sh b/ci/test_wheel_dask.sh index 2e08ca09ff..6a9cf71154 100755 --- a/ci/test_wheel_dask.sh +++ b/ci/test_wheel_dask.sh @@ -31,6 +31,11 @@ EXITCODE=0 trap "EXITCODE=1" ERR set +e +# NCCL cuMem allocations fail with CUDA error 999 on WSL (driver 596.36), breaking ncclCommInitRank. +if grep -qi microsoft /proc/version; then + export NCCL_CUMEM_ENABLE=0 +fi + 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" From 911c07b3d57a9fdf87fd7c02498a39f18d64e493 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 3 Nov 2026 20:04:39 -0600 Subject: [PATCH 08/17] Revert "TEMP: minimize CI to failing WSL jobs" This reverts commit 51b800c7f18c44c677f90c688d4c734b43d7eadd. --- .github/workflows/pr.yaml | 333 +++++++++++++++++++++++++++++++++++++- 1 file changed, 329 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 67ba3cac83..17df9685bf 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,8 +8,64 @@ concurrency: cancel-in-progress: true permissions: {} jobs: + # Please keep pr-builder as the top job here + pr-builder: + needs: + - build-details + - check-nightly-ci + - changed-files + - checks + - clang-tidy + - conda-cpp-build + - conda-cpp-tests + - conda-cpp-checks + - conda-python-build + - conda-python-tests-singlegpu + - conda-python-tests-dask + - conda-python-tests-cudf-pandas-integration + - conda-python-scikit-learn-accel-tests + - conda-python-cuml-accel-upstream-tests + - conda-notebook-tests + - docs-build + - docs-build-matrix + - publish-api-docs + - wheel-build-libcuml + - wheel-build-cuml + - wheel-tests-cuml + - wheel-tests-cuml-dask + - devcontainer + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@main + if: always() + with: + needs: ${{ toJSON(needs) }} build-details: uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main + check-nightly-ci: + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + id-token: write + pull-requests: read + env: + GH_TOKEN: ${{ github.token }} + steps: + - name: Get PR Info + id: get-pr-info + uses: nv-gha-runners/get-pr-info@090577647b8ddc4e06e809e264f7881650ecdccf # main + - name: Check if nightly CI is passing + uses: rapidsai/shared-actions/check_nightly_success/dispatch@main + with: + repo: ${{ github.repository }} + target-branch: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }} + max-days-without-success: 14 changed-files: permissions: actions: read @@ -216,8 +272,256 @@ jobs: - '!img/**' - '!notebooks/**' - '!thirdparty/LICENSES/**' + checks: + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@main + with: + enable_check_generated_files: false + # Main builds seed this cache. PR merge refs can restore it but should not create + # duplicate archives that are inaccessible to other PRs. + pre-commit-cache-read-only: true + clang-tidy: + needs: checks + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + with: + build_type: pull-request + node_type: "cpu8" + arch: "amd64" + container_image: "rapidsai/ci-conda:26.12-latest" + script: "ci/run_clang_tidy.sh" + conda-cpp-build: + needs: [build-details, checks] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main + with: + build_type: pull-request + build-datetime: ${{ needs.build-details.outputs.build-datetime }} + node_type: cpu16 + script: ci/build_cpp.sh + matrix_type: pull-request + conda-cpp-tests: + needs: [conda-cpp-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp + with: + build_type: pull-request + script: ci/test_cpp.sh + matrix_type: pull-request,wsl-pr + conda-cpp-checks: + needs: conda-cpp-build + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-post-build-checks.yaml@main + with: + build_type: pull-request + package_name: libcuml + conda-python-build: + needs: [build-details, conda-cpp-build] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main + with: + build_type: pull-request + build-datetime: ${{ needs.build-details.outputs.build-datetime }} + script: ci/build_python.sh + # Build a conda package for each CUDA x ARCH x minimum supported Python version + matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber))) + matrix_type: pull-request + conda-python-tests-singlegpu: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_singlegpu.sh" + matrix_type: pull-request + conda-python-tests-cudf-pandas-integration: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + # Select the amd64 entry with the highest CUDA and Python version + matrix_filter: map(select(.ARCH=="amd64")) | [max_by([.CUDA_VER,.PY_VER]|map(split(".")|map(tonumber)))] + build_type: pull-request + script: "ci/test_python_integration.sh" + matrix_type: pull-request + conda-python-tests-dask: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_dask.sh" + matrix_type: pull-request + conda-python-scikit-learn-accel-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_scikit_learn_tests.sh" + # One run for each dependencies config on amd64, breaking ties by highest Python version + matrix_filter: | + ( + map(select(.ARCH == "amd64")) + | sort_by(.PY_VER) + | unique_by(.DEPENDENCIES) + ) + + ( + map(select(.ARCH == "amd64")) + | map(select(.DEPENDENCIES == "oldest")) + | sort_by(.PY_VER) + | map(.DEPENDENCIES = "intermediate") + ) + matrix_type: pull-request + conda-python-cuml-accel-upstream-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_cuml_accel_upstream.sh" + # One run for each dependencies config on amd64, breaking ties by highest Python version + matrix_filter: map(select(.ARCH == "amd64")) | sort_by(.PY_VER) | unique_by(.DEPENDENCIES) + matrix_type: pull-request + conda-notebook-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_notebooks + with: + build_type: pull-request + node_type: "gpu-rtxpro6000-latest-1" + arch: "amd64" + container_image: "rapidsai/ci-conda:26.12-latest" + script: "ci/test_notebooks.sh" + docs-build-matrix: + permissions: + contents: read + uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@main + with: + build_type: pull-request + matrix_name: docs-build + matrix_type: pull-request + docs-build: + needs: [docs-build-matrix, conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + strategy: + fail-fast: false + matrix: ${{ fromJSON(needs.docs-build-matrix.outputs.matrix) }} + if: fromJSON(needs.changed-files.outputs.changed_file_groups).build_docs + with: + build_type: pull-request + node_type: "gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1" + arch: "${{ matrix.arch }}" + container_image: "rapidsai/ci-conda:26.12-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}" + script: "ci/build_docs.sh" + publish-api-docs: + needs: [docs-build] + permissions: + contents: read + id-token: write + secrets: + akamai-access-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_ACCESS_TOKEN }} + akamai-client-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_TOKEN }} + akamai-client-secret: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_SECRET }} + akamai-emails-to-notify: ${{ secrets.NVIDIA_DOCS_AKAMAI_EMAILS_TO_NOTIFY }} + akamai-host: ${{ secrets.NVIDIA_DOCS_AKAMAI_HOST }} + target-aws-access-key-id: ${{ secrets.NVIDIA_DOCS_AWS_ACCESS_KEY_ID }} + target-aws-region: ${{ secrets.NVIDIA_DOCS_AWS_REGION }} + target-aws-secret-access-key: ${{ secrets.NVIDIA_DOCS_AWS_SECRET_ACCESS_KEY }} + target-archive-s3-bucket: ${{ secrets.NVIDIA_DOCS_ARCHIVE_S3_BUCKET }} + target-s3-bucket: ${{ secrets.NVIDIA_DOCS_S3_BUCKET }} + uses: rapidsai/shared-workflows/.github/workflows/publish-api-docs.yaml@main + with: + docs-projects: cuml + dry-run: true wheel-build-libcuml: - needs: [build-details] + needs: [build-details, checks] permissions: actions: read contents: read @@ -240,7 +544,7 @@ jobs: package-type: cpp matrix_type: pull-request wheel-build-cuml: - needs: [build-details, wheel-build-libcuml] + needs: [build-details, checks, wheel-build-libcuml] permissions: actions: read contents: read @@ -273,7 +577,7 @@ jobs: with: build_type: pull-request script: ci/test_wheel.sh - matrix_type: wsl-pr + matrix_type: pull-request,wsl-pr wheel-tests-cuml-dask: needs: [wheel-build-cuml, changed-files] permissions: @@ -288,4 +592,25 @@ jobs: with: build_type: pull-request script: ci/test_wheel_dask.sh - matrix_type: wsl-pr + matrix_type: pull-request,wsl-pr + devcontainer: + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/build-in-devcontainer.yaml@main + with: + arch: '["amd64", "arm64"]' + cuda: '["13.4"]' + node_type: "cpu8" + env: | + SCCACHE_DIST_MAX_RETRIES=inf + SCCACHE_SERVER_LOG=sccache=debug + SCCACHE_DIST_FALLBACK_TO_LOCAL_COMPILE=false + build_command: | + sccache --zero-stats; + build-all -j0 --verbose -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=ON; + sccache --show-adv-stats; From ca3307bf591ccd7edab81aae4dde837ddc7d040d Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Wed, 4 Nov 2026 23:19:41 -0600 Subject: [PATCH 09/17] Enlarge /dev/shm for dask wheel tests so NCCL's non-cuMem path works on WSL --- .github/workflows/pr.yaml | 2 ++ .github/workflows/test.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 17df9685bf..bab96edcd2 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -593,6 +593,8 @@ jobs: build_type: pull-request script: ci/test_wheel_dask.sh matrix_type: pull-request,wsl-pr + # NCCL_CUMEM_ENABLE=0 on WSL needs more than Docker's default 64 MB /dev/shm. + container-options: "--shm-size=1g" devcontainer: permissions: actions: read diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6ba47a3e37..406ef62779 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -227,6 +227,8 @@ jobs: sha: ${{ inputs.sha }} script: ci/test_wheel_dask.sh matrix_type: nightly,wsl-nightly + # NCCL_CUMEM_ENABLE=0 on WSL needs more than Docker's default 64 MB /dev/shm. + container-options: "--shm-size=1g" wheel-tests-integrations: permissions: actions: read From 9c7ac9e27271878ef1f23bcf048a5e225e64829f Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Wed, 4 Nov 2026 23:20:40 -0600 Subject: [PATCH 10/17] TEMP: minimize CI to WSL wheel tests with GPU memory and NCCL diagnostics --- .github/workflows/pr.yaml | 333 +------------------------------------- ci/test_wheel.sh | 7 + ci/test_wheel_dask.sh | 2 + 3 files changed, 13 insertions(+), 329 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index bab96edcd2..53459a9039 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,64 +8,8 @@ concurrency: cancel-in-progress: true permissions: {} jobs: - # Please keep pr-builder as the top job here - pr-builder: - needs: - - build-details - - check-nightly-ci - - changed-files - - checks - - clang-tidy - - conda-cpp-build - - conda-cpp-tests - - conda-cpp-checks - - conda-python-build - - conda-python-tests-singlegpu - - conda-python-tests-dask - - conda-python-tests-cudf-pandas-integration - - conda-python-scikit-learn-accel-tests - - conda-python-cuml-accel-upstream-tests - - conda-notebook-tests - - docs-build - - docs-build-matrix - - publish-api-docs - - wheel-build-libcuml - - wheel-build-cuml - - wheel-tests-cuml - - wheel-tests-cuml-dask - - devcontainer - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@main - if: always() - with: - needs: ${{ toJSON(needs) }} build-details: uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main - check-nightly-ci: - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - id-token: write - pull-requests: read - env: - GH_TOKEN: ${{ github.token }} - steps: - - name: Get PR Info - id: get-pr-info - uses: nv-gha-runners/get-pr-info@090577647b8ddc4e06e809e264f7881650ecdccf # main - - name: Check if nightly CI is passing - uses: rapidsai/shared-actions/check_nightly_success/dispatch@main - with: - repo: ${{ github.repository }} - target-branch: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }} - max-days-without-success: 14 changed-files: permissions: actions: read @@ -272,256 +216,8 @@ jobs: - '!img/**' - '!notebooks/**' - '!thirdparty/LICENSES/**' - checks: - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@main - with: - enable_check_generated_files: false - # Main builds seed this cache. PR merge refs can restore it but should not create - # duplicate archives that are inaccessible to other PRs. - pre-commit-cache-read-only: true - clang-tidy: - needs: checks - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - with: - build_type: pull-request - node_type: "cpu8" - arch: "amd64" - container_image: "rapidsai/ci-conda:26.12-latest" - script: "ci/run_clang_tidy.sh" - conda-cpp-build: - needs: [build-details, checks] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main - with: - build_type: pull-request - build-datetime: ${{ needs.build-details.outputs.build-datetime }} - node_type: cpu16 - script: ci/build_cpp.sh - matrix_type: pull-request - conda-cpp-tests: - needs: [conda-cpp-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp - with: - build_type: pull-request - script: ci/test_cpp.sh - matrix_type: pull-request,wsl-pr - conda-cpp-checks: - needs: conda-cpp-build - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-post-build-checks.yaml@main - with: - build_type: pull-request - package_name: libcuml - conda-python-build: - needs: [build-details, conda-cpp-build] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main - with: - build_type: pull-request - build-datetime: ${{ needs.build-details.outputs.build-datetime }} - script: ci/build_python.sh - # Build a conda package for each CUDA x ARCH x minimum supported Python version - matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber))) - matrix_type: pull-request - conda-python-tests-singlegpu: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_singlegpu.sh" - matrix_type: pull-request - conda-python-tests-cudf-pandas-integration: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - # Select the amd64 entry with the highest CUDA and Python version - matrix_filter: map(select(.ARCH=="amd64")) | [max_by([.CUDA_VER,.PY_VER]|map(split(".")|map(tonumber)))] - build_type: pull-request - script: "ci/test_python_integration.sh" - matrix_type: pull-request - conda-python-tests-dask: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_dask.sh" - matrix_type: pull-request - conda-python-scikit-learn-accel-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_scikit_learn_tests.sh" - # One run for each dependencies config on amd64, breaking ties by highest Python version - matrix_filter: | - ( - map(select(.ARCH == "amd64")) - | sort_by(.PY_VER) - | unique_by(.DEPENDENCIES) - ) - + ( - map(select(.ARCH == "amd64")) - | map(select(.DEPENDENCIES == "oldest")) - | sort_by(.PY_VER) - | map(.DEPENDENCIES = "intermediate") - ) - matrix_type: pull-request - conda-python-cuml-accel-upstream-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_cuml_accel_upstream.sh" - # One run for each dependencies config on amd64, breaking ties by highest Python version - matrix_filter: map(select(.ARCH == "amd64")) | sort_by(.PY_VER) | unique_by(.DEPENDENCIES) - matrix_type: pull-request - conda-notebook-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_notebooks - with: - build_type: pull-request - node_type: "gpu-rtxpro6000-latest-1" - arch: "amd64" - container_image: "rapidsai/ci-conda:26.12-latest" - script: "ci/test_notebooks.sh" - docs-build-matrix: - permissions: - contents: read - uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@main - with: - build_type: pull-request - matrix_name: docs-build - matrix_type: pull-request - docs-build: - needs: [docs-build-matrix, conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - strategy: - fail-fast: false - matrix: ${{ fromJSON(needs.docs-build-matrix.outputs.matrix) }} - if: fromJSON(needs.changed-files.outputs.changed_file_groups).build_docs - with: - build_type: pull-request - node_type: "gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1" - arch: "${{ matrix.arch }}" - container_image: "rapidsai/ci-conda:26.12-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}" - script: "ci/build_docs.sh" - publish-api-docs: - needs: [docs-build] - permissions: - contents: read - id-token: write - secrets: - akamai-access-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_ACCESS_TOKEN }} - akamai-client-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_TOKEN }} - akamai-client-secret: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_SECRET }} - akamai-emails-to-notify: ${{ secrets.NVIDIA_DOCS_AKAMAI_EMAILS_TO_NOTIFY }} - akamai-host: ${{ secrets.NVIDIA_DOCS_AKAMAI_HOST }} - target-aws-access-key-id: ${{ secrets.NVIDIA_DOCS_AWS_ACCESS_KEY_ID }} - target-aws-region: ${{ secrets.NVIDIA_DOCS_AWS_REGION }} - target-aws-secret-access-key: ${{ secrets.NVIDIA_DOCS_AWS_SECRET_ACCESS_KEY }} - target-archive-s3-bucket: ${{ secrets.NVIDIA_DOCS_ARCHIVE_S3_BUCKET }} - target-s3-bucket: ${{ secrets.NVIDIA_DOCS_S3_BUCKET }} - uses: rapidsai/shared-workflows/.github/workflows/publish-api-docs.yaml@main - with: - docs-projects: cuml - dry-run: true wheel-build-libcuml: - needs: [build-details, checks] + needs: [build-details] permissions: actions: read contents: read @@ -544,7 +240,7 @@ jobs: package-type: cpp matrix_type: pull-request wheel-build-cuml: - needs: [build-details, checks, wheel-build-libcuml] + needs: [build-details, wheel-build-libcuml] permissions: actions: read contents: read @@ -577,7 +273,7 @@ jobs: with: build_type: pull-request script: ci/test_wheel.sh - matrix_type: pull-request,wsl-pr + matrix_type: wsl-pr wheel-tests-cuml-dask: needs: [wheel-build-cuml, changed-files] permissions: @@ -592,27 +288,6 @@ jobs: with: build_type: pull-request script: ci/test_wheel_dask.sh - matrix_type: pull-request,wsl-pr + matrix_type: wsl-pr # NCCL_CUMEM_ENABLE=0 on WSL needs more than Docker's default 64 MB /dev/shm. container-options: "--shm-size=1g" - devcontainer: - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/build-in-devcontainer.yaml@main - with: - arch: '["amd64", "arm64"]' - cuda: '["13.4"]' - node_type: "cpu8" - env: | - SCCACHE_DIST_MAX_RETRIES=inf - SCCACHE_SERVER_LOG=sccache=debug - SCCACHE_DIST_FALLBACK_TO_LOCAL_COMPILE=false - build_command: | - sccache --zero-stats; - build-all -j0 --verbose -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=ON; - sccache --show-adv-stats; diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 5064f198e7..449a2effba 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -64,6 +64,9 @@ rapids-logger "Testing libcuml linkage" python -m pytest --cache-clear python/libcuml/tests/test_libcuml_linkage.py -v rapids-logger "pytest cuml single GPU" +df -h /dev/shm +nvidia-smi --query-gpu=timestamp,memory.used,memory.total --format=csv -l 2 > /tmp/gpu_mem.csv 2>&1 & +GPU_MEM_PID=$! timeout -v --signal=SIGINT --kill-after=60s 90m ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \ --dist=worksteal \ @@ -78,6 +81,10 @@ if [[ "${RAPIDS_DEPENDENCIES:-}" == "nightly" ]]; then --junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-accel.xml" fi +kill "${GPU_MEM_PID}" +rapids-logger "GPU memory.used max (MiB) and samples above 60000 MiB" +awk -F', ' 'NR>1 {v=$2+0; if (v>m) m=v; if (v>60000) print} END {print "max", m}' /tmp/gpu_mem.csv | tail -200 + # Run test_sparse_pca_inputs separately timeout -v --signal=SIGINT --kill-after=60s 10m ./ci/run_cuml_singlegpu_pytests.sh \ -k 'test_sparse_pca_inputs' \ diff --git a/ci/test_wheel_dask.sh b/ci/test_wheel_dask.sh index 6a9cf71154..c1be60849f 100755 --- a/ci/test_wheel_dask.sh +++ b/ci/test_wheel_dask.sh @@ -36,6 +36,8 @@ if grep -qi microsoft /proc/version; then export NCCL_CUMEM_ENABLE=0 fi +df -h /dev/shm +export NCCL_DEBUG=WARN 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" From ed871634c241b19ef1cc0cdd3af69fb54761d2f9 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 5 Nov 2026 01:19:04 -0600 Subject: [PATCH 11/17] Reduce max_iter in dask coordinate descent tests, since float32 never reaches tol=1e-10 and 100 epochs give the same fit --- python/cuml/tests/dask/test_dask_coordinate_descent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cuml/tests/dask/test_dask_coordinate_descent.py b/python/cuml/tests/dask/test_dask_coordinate_descent.py index e4af9ab3b8..e43e6fb9c1 100644 --- a/python/cuml/tests/dask/test_dask_coordinate_descent.py +++ b/python/cuml/tests/dask/test_dask_coordinate_descent.py @@ -51,7 +51,7 @@ def test_lasso( lasso = Lasso( alpha=np.array([alpha]), fit_intercept=True, - max_iter=1000, + max_iter=100, selection=algorithm, tol=1e-10, client=client, @@ -140,7 +140,7 @@ def test_elastic_net( elasticnet = ElasticNet( alpha=np.array([alpha]), fit_intercept=True, - max_iter=1000, + max_iter=100, selection=algorithm, tol=1e-10, client=client, From 0d269555c627bbe820f25eedb08129cdf1495bce Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 5 Nov 2026 02:56:00 -0600 Subject: [PATCH 12/17] TEMP: log host memory and per-test timestamps in WSL single-GPU wheel tests --- ci/test_wheel.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 449a2effba..12c3281d74 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -67,10 +67,14 @@ rapids-logger "pytest cuml single GPU" df -h /dev/shm nvidia-smi --query-gpu=timestamp,memory.used,memory.total --format=csv -l 2 > /tmp/gpu_mem.csv 2>&1 & GPU_MEM_PID=$! +hostname; nproc; free -m; cat /proc/sys/vm/overcommit_memory; ulimit -a +(while true; do echo "$(date -u +%H:%M:%S) $(awk '/MemAvailable|Committed_AS|SwapFree/ {printf "%s %d ", $1, $2/1024}' /proc/meminfo)"; sleep 2; done) > /tmp/host_mem.log 2>&1 & +HOST_MEM_PID=$! timeout -v --signal=SIGINT --kill-after=60s 90m ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \ --dist=worksteal \ -k 'not test_sparse_pca_inputs' \ + -v \ --junitxml="${RAPIDS_TESTS_DIR}/junit-cuml.xml" if [[ "${RAPIDS_DEPENDENCIES:-}" == "nightly" ]]; then @@ -84,6 +88,10 @@ fi kill "${GPU_MEM_PID}" rapids-logger "GPU memory.used max (MiB) and samples above 60000 MiB" awk -F', ' 'NR>1 {v=$2+0; if (v>m) m=v; if (v>60000) print} END {print "max", m}' /tmp/gpu_mem.csv | tail -200 +kill "${HOST_MEM_PID}" +rapids-logger "Host MemAvailable min (MiB) and samples below 4096 MiB" +awk '{v=$3+0; if (NR==1 || v Date: Thu, 5 Nov 2026 04:45:39 -0600 Subject: [PATCH 13/17] Revert "TEMP: log host memory and per-test timestamps in WSL single-GPU wheel tests" This reverts commit 0d269555c627bbe820f25eedb08129cdf1495bce. --- ci/test_wheel.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 12c3281d74..449a2effba 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -67,14 +67,10 @@ rapids-logger "pytest cuml single GPU" df -h /dev/shm nvidia-smi --query-gpu=timestamp,memory.used,memory.total --format=csv -l 2 > /tmp/gpu_mem.csv 2>&1 & GPU_MEM_PID=$! -hostname; nproc; free -m; cat /proc/sys/vm/overcommit_memory; ulimit -a -(while true; do echo "$(date -u +%H:%M:%S) $(awk '/MemAvailable|Committed_AS|SwapFree/ {printf "%s %d ", $1, $2/1024}' /proc/meminfo)"; sleep 2; done) > /tmp/host_mem.log 2>&1 & -HOST_MEM_PID=$! timeout -v --signal=SIGINT --kill-after=60s 90m ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \ --dist=worksteal \ -k 'not test_sparse_pca_inputs' \ - -v \ --junitxml="${RAPIDS_TESTS_DIR}/junit-cuml.xml" if [[ "${RAPIDS_DEPENDENCIES:-}" == "nightly" ]]; then @@ -88,10 +84,6 @@ fi kill "${GPU_MEM_PID}" rapids-logger "GPU memory.used max (MiB) and samples above 60000 MiB" awk -F', ' 'NR>1 {v=$2+0; if (v>m) m=v; if (v>60000) print} END {print "max", m}' /tmp/gpu_mem.csv | tail -200 -kill "${HOST_MEM_PID}" -rapids-logger "Host MemAvailable min (MiB) and samples below 4096 MiB" -awk '{v=$3+0; if (NR==1 || v Date: Thu, 5 Nov 2026 04:45:39 -0600 Subject: [PATCH 14/17] Revert "TEMP: minimize CI to WSL wheel tests with GPU memory and NCCL diagnostics" This reverts commit 9c7ac9e27271878ef1f23bcf048a5e225e64829f. --- .github/workflows/pr.yaml | 333 +++++++++++++++++++++++++++++++++++++- ci/test_wheel.sh | 7 - ci/test_wheel_dask.sh | 2 - 3 files changed, 329 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 53459a9039..bab96edcd2 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,8 +8,64 @@ concurrency: cancel-in-progress: true permissions: {} jobs: + # Please keep pr-builder as the top job here + pr-builder: + needs: + - build-details + - check-nightly-ci + - changed-files + - checks + - clang-tidy + - conda-cpp-build + - conda-cpp-tests + - conda-cpp-checks + - conda-python-build + - conda-python-tests-singlegpu + - conda-python-tests-dask + - conda-python-tests-cudf-pandas-integration + - conda-python-scikit-learn-accel-tests + - conda-python-cuml-accel-upstream-tests + - conda-notebook-tests + - docs-build + - docs-build-matrix + - publish-api-docs + - wheel-build-libcuml + - wheel-build-cuml + - wheel-tests-cuml + - wheel-tests-cuml-dask + - devcontainer + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@main + if: always() + with: + needs: ${{ toJSON(needs) }} build-details: uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main + check-nightly-ci: + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + id-token: write + pull-requests: read + env: + GH_TOKEN: ${{ github.token }} + steps: + - name: Get PR Info + id: get-pr-info + uses: nv-gha-runners/get-pr-info@090577647b8ddc4e06e809e264f7881650ecdccf # main + - name: Check if nightly CI is passing + uses: rapidsai/shared-actions/check_nightly_success/dispatch@main + with: + repo: ${{ github.repository }} + target-branch: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }} + max-days-without-success: 14 changed-files: permissions: actions: read @@ -216,8 +272,256 @@ jobs: - '!img/**' - '!notebooks/**' - '!thirdparty/LICENSES/**' + checks: + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@main + with: + enable_check_generated_files: false + # Main builds seed this cache. PR merge refs can restore it but should not create + # duplicate archives that are inaccessible to other PRs. + pre-commit-cache-read-only: true + clang-tidy: + needs: checks + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + with: + build_type: pull-request + node_type: "cpu8" + arch: "amd64" + container_image: "rapidsai/ci-conda:26.12-latest" + script: "ci/run_clang_tidy.sh" + conda-cpp-build: + needs: [build-details, checks] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main + with: + build_type: pull-request + build-datetime: ${{ needs.build-details.outputs.build-datetime }} + node_type: cpu16 + script: ci/build_cpp.sh + matrix_type: pull-request + conda-cpp-tests: + needs: [conda-cpp-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp + with: + build_type: pull-request + script: ci/test_cpp.sh + matrix_type: pull-request,wsl-pr + conda-cpp-checks: + needs: conda-cpp-build + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-post-build-checks.yaml@main + with: + build_type: pull-request + package_name: libcuml + conda-python-build: + needs: [build-details, conda-cpp-build] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main + with: + build_type: pull-request + build-datetime: ${{ needs.build-details.outputs.build-datetime }} + script: ci/build_python.sh + # Build a conda package for each CUDA x ARCH x minimum supported Python version + matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber))) + matrix_type: pull-request + conda-python-tests-singlegpu: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_singlegpu.sh" + matrix_type: pull-request + conda-python-tests-cudf-pandas-integration: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + # Select the amd64 entry with the highest CUDA and Python version + matrix_filter: map(select(.ARCH=="amd64")) | [max_by([.CUDA_VER,.PY_VER]|map(split(".")|map(tonumber)))] + build_type: pull-request + script: "ci/test_python_integration.sh" + matrix_type: pull-request + conda-python-tests-dask: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_dask.sh" + matrix_type: pull-request + conda-python-scikit-learn-accel-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_scikit_learn_tests.sh" + # One run for each dependencies config on amd64, breaking ties by highest Python version + matrix_filter: | + ( + map(select(.ARCH == "amd64")) + | sort_by(.PY_VER) + | unique_by(.DEPENDENCIES) + ) + + ( + map(select(.ARCH == "amd64")) + | map(select(.DEPENDENCIES == "oldest")) + | sort_by(.PY_VER) + | map(.DEPENDENCIES = "intermediate") + ) + matrix_type: pull-request + conda-python-cuml-accel-upstream-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_cuml_accel_upstream.sh" + # One run for each dependencies config on amd64, breaking ties by highest Python version + matrix_filter: map(select(.ARCH == "amd64")) | sort_by(.PY_VER) | unique_by(.DEPENDENCIES) + matrix_type: pull-request + conda-notebook-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_notebooks + with: + build_type: pull-request + node_type: "gpu-rtxpro6000-latest-1" + arch: "amd64" + container_image: "rapidsai/ci-conda:26.12-latest" + script: "ci/test_notebooks.sh" + docs-build-matrix: + permissions: + contents: read + uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@main + with: + build_type: pull-request + matrix_name: docs-build + matrix_type: pull-request + docs-build: + needs: [docs-build-matrix, conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + strategy: + fail-fast: false + matrix: ${{ fromJSON(needs.docs-build-matrix.outputs.matrix) }} + if: fromJSON(needs.changed-files.outputs.changed_file_groups).build_docs + with: + build_type: pull-request + node_type: "gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1" + arch: "${{ matrix.arch }}" + container_image: "rapidsai/ci-conda:26.12-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}" + script: "ci/build_docs.sh" + publish-api-docs: + needs: [docs-build] + permissions: + contents: read + id-token: write + secrets: + akamai-access-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_ACCESS_TOKEN }} + akamai-client-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_TOKEN }} + akamai-client-secret: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_SECRET }} + akamai-emails-to-notify: ${{ secrets.NVIDIA_DOCS_AKAMAI_EMAILS_TO_NOTIFY }} + akamai-host: ${{ secrets.NVIDIA_DOCS_AKAMAI_HOST }} + target-aws-access-key-id: ${{ secrets.NVIDIA_DOCS_AWS_ACCESS_KEY_ID }} + target-aws-region: ${{ secrets.NVIDIA_DOCS_AWS_REGION }} + target-aws-secret-access-key: ${{ secrets.NVIDIA_DOCS_AWS_SECRET_ACCESS_KEY }} + target-archive-s3-bucket: ${{ secrets.NVIDIA_DOCS_ARCHIVE_S3_BUCKET }} + target-s3-bucket: ${{ secrets.NVIDIA_DOCS_S3_BUCKET }} + uses: rapidsai/shared-workflows/.github/workflows/publish-api-docs.yaml@main + with: + docs-projects: cuml + dry-run: true wheel-build-libcuml: - needs: [build-details] + needs: [build-details, checks] permissions: actions: read contents: read @@ -240,7 +544,7 @@ jobs: package-type: cpp matrix_type: pull-request wheel-build-cuml: - needs: [build-details, wheel-build-libcuml] + needs: [build-details, checks, wheel-build-libcuml] permissions: actions: read contents: read @@ -273,7 +577,7 @@ jobs: with: build_type: pull-request script: ci/test_wheel.sh - matrix_type: wsl-pr + matrix_type: pull-request,wsl-pr wheel-tests-cuml-dask: needs: [wheel-build-cuml, changed-files] permissions: @@ -288,6 +592,27 @@ jobs: with: build_type: pull-request script: ci/test_wheel_dask.sh - matrix_type: wsl-pr + matrix_type: pull-request,wsl-pr # NCCL_CUMEM_ENABLE=0 on WSL needs more than Docker's default 64 MB /dev/shm. container-options: "--shm-size=1g" + devcontainer: + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/build-in-devcontainer.yaml@main + with: + arch: '["amd64", "arm64"]' + cuda: '["13.4"]' + node_type: "cpu8" + env: | + SCCACHE_DIST_MAX_RETRIES=inf + SCCACHE_SERVER_LOG=sccache=debug + SCCACHE_DIST_FALLBACK_TO_LOCAL_COMPILE=false + build_command: | + sccache --zero-stats; + build-all -j0 --verbose -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=ON; + sccache --show-adv-stats; diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 449a2effba..5064f198e7 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -64,9 +64,6 @@ rapids-logger "Testing libcuml linkage" python -m pytest --cache-clear python/libcuml/tests/test_libcuml_linkage.py -v rapids-logger "pytest cuml single GPU" -df -h /dev/shm -nvidia-smi --query-gpu=timestamp,memory.used,memory.total --format=csv -l 2 > /tmp/gpu_mem.csv 2>&1 & -GPU_MEM_PID=$! timeout -v --signal=SIGINT --kill-after=60s 90m ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \ --dist=worksteal \ @@ -81,10 +78,6 @@ if [[ "${RAPIDS_DEPENDENCIES:-}" == "nightly" ]]; then --junitxml="${RAPIDS_TESTS_DIR}/junit-cuml-accel.xml" fi -kill "${GPU_MEM_PID}" -rapids-logger "GPU memory.used max (MiB) and samples above 60000 MiB" -awk -F', ' 'NR>1 {v=$2+0; if (v>m) m=v; if (v>60000) print} END {print "max", m}' /tmp/gpu_mem.csv | tail -200 - # Run test_sparse_pca_inputs separately timeout -v --signal=SIGINT --kill-after=60s 10m ./ci/run_cuml_singlegpu_pytests.sh \ -k 'test_sparse_pca_inputs' \ diff --git a/ci/test_wheel_dask.sh b/ci/test_wheel_dask.sh index c1be60849f..6a9cf71154 100755 --- a/ci/test_wheel_dask.sh +++ b/ci/test_wheel_dask.sh @@ -36,8 +36,6 @@ if grep -qi microsoft /proc/version; then export NCCL_CUMEM_ENABLE=0 fi -df -h /dev/shm -export NCCL_DEBUG=WARN 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" From ee741b729915ceab47fb71245ee9b53c69bcd727 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 5 Nov 2026 05:00:17 -0600 Subject: [PATCH 15/17] Update copyright header in dask coordinate descent tests --- python/cuml/tests/dask/test_dask_coordinate_descent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cuml/tests/dask/test_dask_coordinate_descent.py b/python/cuml/tests/dask/test_dask_coordinate_descent.py index e43e6fb9c1..e56e5797f9 100644 --- a/python/cuml/tests/dask/test_dask_coordinate_descent.py +++ b/python/cuml/tests/dask/test_dask_coordinate_descent.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # import numpy as np From b580fc77e971d39a624f14f3963ebbd90a5bf42c Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 5 Nov 2026 06:32:51 -0600 Subject: [PATCH 16/17] TEMP: minimize CI to WSL wheel tests and repeat benchmark real-worker tests with faulthandler --- .github/workflows/pr.yaml | 333 +------------------------------------- ci/test_wheel.sh | 7 + 2 files changed, 11 insertions(+), 329 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index bab96edcd2..53459a9039 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,64 +8,8 @@ concurrency: cancel-in-progress: true permissions: {} jobs: - # Please keep pr-builder as the top job here - pr-builder: - needs: - - build-details - - check-nightly-ci - - changed-files - - checks - - clang-tidy - - conda-cpp-build - - conda-cpp-tests - - conda-cpp-checks - - conda-python-build - - conda-python-tests-singlegpu - - conda-python-tests-dask - - conda-python-tests-cudf-pandas-integration - - conda-python-scikit-learn-accel-tests - - conda-python-cuml-accel-upstream-tests - - conda-notebook-tests - - docs-build - - docs-build-matrix - - publish-api-docs - - wheel-build-libcuml - - wheel-build-cuml - - wheel-tests-cuml - - wheel-tests-cuml-dask - - devcontainer - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@main - if: always() - with: - needs: ${{ toJSON(needs) }} build-details: uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main - check-nightly-ci: - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - id-token: write - pull-requests: read - env: - GH_TOKEN: ${{ github.token }} - steps: - - name: Get PR Info - id: get-pr-info - uses: nv-gha-runners/get-pr-info@090577647b8ddc4e06e809e264f7881650ecdccf # main - - name: Check if nightly CI is passing - uses: rapidsai/shared-actions/check_nightly_success/dispatch@main - with: - repo: ${{ github.repository }} - target-branch: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }} - max-days-without-success: 14 changed-files: permissions: actions: read @@ -272,256 +216,8 @@ jobs: - '!img/**' - '!notebooks/**' - '!thirdparty/LICENSES/**' - checks: - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@main - with: - enable_check_generated_files: false - # Main builds seed this cache. PR merge refs can restore it but should not create - # duplicate archives that are inaccessible to other PRs. - pre-commit-cache-read-only: true - clang-tidy: - needs: checks - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - with: - build_type: pull-request - node_type: "cpu8" - arch: "amd64" - container_image: "rapidsai/ci-conda:26.12-latest" - script: "ci/run_clang_tidy.sh" - conda-cpp-build: - needs: [build-details, checks] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main - with: - build_type: pull-request - build-datetime: ${{ needs.build-details.outputs.build-datetime }} - node_type: cpu16 - script: ci/build_cpp.sh - matrix_type: pull-request - conda-cpp-tests: - needs: [conda-cpp-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp - with: - build_type: pull-request - script: ci/test_cpp.sh - matrix_type: pull-request,wsl-pr - conda-cpp-checks: - needs: conda-cpp-build - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-post-build-checks.yaml@main - with: - build_type: pull-request - package_name: libcuml - conda-python-build: - needs: [build-details, conda-cpp-build] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main - with: - build_type: pull-request - build-datetime: ${{ needs.build-details.outputs.build-datetime }} - script: ci/build_python.sh - # Build a conda package for each CUDA x ARCH x minimum supported Python version - matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber))) - matrix_type: pull-request - conda-python-tests-singlegpu: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_singlegpu.sh" - matrix_type: pull-request - conda-python-tests-cudf-pandas-integration: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - # Select the amd64 entry with the highest CUDA and Python version - matrix_filter: map(select(.ARCH=="amd64")) | [max_by([.CUDA_VER,.PY_VER]|map(split(".")|map(tonumber)))] - build_type: pull-request - script: "ci/test_python_integration.sh" - matrix_type: pull-request - conda-python-tests-dask: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_dask.sh" - matrix_type: pull-request - conda-python-scikit-learn-accel-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_scikit_learn_tests.sh" - # One run for each dependencies config on amd64, breaking ties by highest Python version - matrix_filter: | - ( - map(select(.ARCH == "amd64")) - | sort_by(.PY_VER) - | unique_by(.DEPENDENCIES) - ) - + ( - map(select(.ARCH == "amd64")) - | map(select(.DEPENDENCIES == "oldest")) - | sort_by(.PY_VER) - | map(.DEPENDENCIES = "intermediate") - ) - matrix_type: pull-request - conda-python-cuml-accel-upstream-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda - with: - build_type: pull-request - script: "ci/test_python_cuml_accel_upstream.sh" - # One run for each dependencies config on amd64, breaking ties by highest Python version - matrix_filter: map(select(.ARCH == "amd64")) | sort_by(.PY_VER) | unique_by(.DEPENDENCIES) - matrix_type: pull-request - conda-notebook-tests: - needs: [conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_notebooks - with: - build_type: pull-request - node_type: "gpu-rtxpro6000-latest-1" - arch: "amd64" - container_image: "rapidsai/ci-conda:26.12-latest" - script: "ci/test_notebooks.sh" - docs-build-matrix: - permissions: - contents: read - uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@main - with: - build_type: pull-request - matrix_name: docs-build - matrix_type: pull-request - docs-build: - needs: [docs-build-matrix, conda-python-build, changed-files] - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main - strategy: - fail-fast: false - matrix: ${{ fromJSON(needs.docs-build-matrix.outputs.matrix) }} - if: fromJSON(needs.changed-files.outputs.changed_file_groups).build_docs - with: - build_type: pull-request - node_type: "gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1" - arch: "${{ matrix.arch }}" - container_image: "rapidsai/ci-conda:26.12-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}" - script: "ci/build_docs.sh" - publish-api-docs: - needs: [docs-build] - permissions: - contents: read - id-token: write - secrets: - akamai-access-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_ACCESS_TOKEN }} - akamai-client-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_TOKEN }} - akamai-client-secret: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_SECRET }} - akamai-emails-to-notify: ${{ secrets.NVIDIA_DOCS_AKAMAI_EMAILS_TO_NOTIFY }} - akamai-host: ${{ secrets.NVIDIA_DOCS_AKAMAI_HOST }} - target-aws-access-key-id: ${{ secrets.NVIDIA_DOCS_AWS_ACCESS_KEY_ID }} - target-aws-region: ${{ secrets.NVIDIA_DOCS_AWS_REGION }} - target-aws-secret-access-key: ${{ secrets.NVIDIA_DOCS_AWS_SECRET_ACCESS_KEY }} - target-archive-s3-bucket: ${{ secrets.NVIDIA_DOCS_ARCHIVE_S3_BUCKET }} - target-s3-bucket: ${{ secrets.NVIDIA_DOCS_S3_BUCKET }} - uses: rapidsai/shared-workflows/.github/workflows/publish-api-docs.yaml@main - with: - docs-projects: cuml - dry-run: true wheel-build-libcuml: - needs: [build-details, checks] + needs: [build-details] permissions: actions: read contents: read @@ -544,7 +240,7 @@ jobs: package-type: cpp matrix_type: pull-request wheel-build-cuml: - needs: [build-details, checks, wheel-build-libcuml] + needs: [build-details, wheel-build-libcuml] permissions: actions: read contents: read @@ -577,7 +273,7 @@ jobs: with: build_type: pull-request script: ci/test_wheel.sh - matrix_type: pull-request,wsl-pr + matrix_type: wsl-pr wheel-tests-cuml-dask: needs: [wheel-build-cuml, changed-files] permissions: @@ -592,27 +288,6 @@ jobs: with: build_type: pull-request script: ci/test_wheel_dask.sh - matrix_type: pull-request,wsl-pr + matrix_type: wsl-pr # NCCL_CUMEM_ENABLE=0 on WSL needs more than Docker's default 64 MB /dev/shm. container-options: "--shm-size=1g" - devcontainer: - permissions: - actions: read - contents: read - id-token: write - packages: read - pull-requests: read - secrets: inherit # zizmor: ignore[secrets-inherit] - uses: rapidsai/shared-workflows/.github/workflows/build-in-devcontainer.yaml@main - with: - arch: '["amd64", "arm64"]' - cuda: '["13.4"]' - node_type: "cpu8" - env: | - SCCACHE_DIST_MAX_RETRIES=inf - SCCACHE_SERVER_LOG=sccache=debug - SCCACHE_DIST_FALLBACK_TO_LOCAL_COMPILE=false - build_command: | - sccache --zero-stats; - build-all -j0 --verbose -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=ON; - sccache --show-adv-stats; diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 5064f198e7..47b94f9af9 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -63,6 +63,13 @@ set +e rapids-logger "Testing libcuml linkage" python -m pytest --cache-clear python/libcuml/tests/test_libcuml_linkage.py -v +export PYTHONFAULTHANDLER=1 +rapids-logger "TEMP: repeat benchmark real-worker tests" +for i in $(seq 1 20); do + out=$(cd python/cuml/tests && python -m pytest test_benchmark.py -k 'test_cli_real_workers or test_real_backend_smoke' -q -p no:cacheprovider 2>&1) + if echo "${out}" | tail -1 | grep -q failed; then echo "iter ${i} FAILED"; echo "${out}" | tail -300; else echo "iter ${i}: $(echo "${out}" | tail -1)"; fi +done + rapids-logger "pytest cuml single GPU" timeout -v --signal=SIGINT --kill-after=60s 90m ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \ From fc91ea428a01dcf52de2daf41f7571c5b8ec9518 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 5 Nov 2026 08:34:28 -0600 Subject: [PATCH 17/17] Revert "TEMP: minimize CI to WSL wheel tests and repeat benchmark real-worker tests with faulthandler" This reverts commit b580fc77e971d39a624f14f3963ebbd90a5bf42c. --- .github/workflows/pr.yaml | 333 +++++++++++++++++++++++++++++++++++++- ci/test_wheel.sh | 7 - 2 files changed, 329 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 53459a9039..bab96edcd2 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,8 +8,64 @@ concurrency: cancel-in-progress: true permissions: {} jobs: + # Please keep pr-builder as the top job here + pr-builder: + needs: + - build-details + - check-nightly-ci + - changed-files + - checks + - clang-tidy + - conda-cpp-build + - conda-cpp-tests + - conda-cpp-checks + - conda-python-build + - conda-python-tests-singlegpu + - conda-python-tests-dask + - conda-python-tests-cudf-pandas-integration + - conda-python-scikit-learn-accel-tests + - conda-python-cuml-accel-upstream-tests + - conda-notebook-tests + - docs-build + - docs-build-matrix + - publish-api-docs + - wheel-build-libcuml + - wheel-build-cuml + - wheel-tests-cuml + - wheel-tests-cuml-dask + - devcontainer + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@main + if: always() + with: + needs: ${{ toJSON(needs) }} build-details: uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main + check-nightly-ci: + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + id-token: write + pull-requests: read + env: + GH_TOKEN: ${{ github.token }} + steps: + - name: Get PR Info + id: get-pr-info + uses: nv-gha-runners/get-pr-info@090577647b8ddc4e06e809e264f7881650ecdccf # main + - name: Check if nightly CI is passing + uses: rapidsai/shared-actions/check_nightly_success/dispatch@main + with: + repo: ${{ github.repository }} + target-branch: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }} + max-days-without-success: 14 changed-files: permissions: actions: read @@ -216,8 +272,256 @@ jobs: - '!img/**' - '!notebooks/**' - '!thirdparty/LICENSES/**' + checks: + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@main + with: + enable_check_generated_files: false + # Main builds seed this cache. PR merge refs can restore it but should not create + # duplicate archives that are inaccessible to other PRs. + pre-commit-cache-read-only: true + clang-tidy: + needs: checks + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + with: + build_type: pull-request + node_type: "cpu8" + arch: "amd64" + container_image: "rapidsai/ci-conda:26.12-latest" + script: "ci/run_clang_tidy.sh" + conda-cpp-build: + needs: [build-details, checks] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main + with: + build_type: pull-request + build-datetime: ${{ needs.build-details.outputs.build-datetime }} + node_type: cpu16 + script: ci/build_cpp.sh + matrix_type: pull-request + conda-cpp-tests: + needs: [conda-cpp-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp + with: + build_type: pull-request + script: ci/test_cpp.sh + matrix_type: pull-request,wsl-pr + conda-cpp-checks: + needs: conda-cpp-build + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-post-build-checks.yaml@main + with: + build_type: pull-request + package_name: libcuml + conda-python-build: + needs: [build-details, conda-cpp-build] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main + with: + build_type: pull-request + build-datetime: ${{ needs.build-details.outputs.build-datetime }} + script: ci/build_python.sh + # Build a conda package for each CUDA x ARCH x minimum supported Python version + matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber))) + matrix_type: pull-request + conda-python-tests-singlegpu: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_singlegpu.sh" + matrix_type: pull-request + conda-python-tests-cudf-pandas-integration: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + # Select the amd64 entry with the highest CUDA and Python version + matrix_filter: map(select(.ARCH=="amd64")) | [max_by([.CUDA_VER,.PY_VER]|map(split(".")|map(tonumber)))] + build_type: pull-request + script: "ci/test_python_integration.sh" + matrix_type: pull-request + conda-python-tests-dask: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_dask.sh" + matrix_type: pull-request + conda-python-scikit-learn-accel-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_scikit_learn_tests.sh" + # One run for each dependencies config on amd64, breaking ties by highest Python version + matrix_filter: | + ( + map(select(.ARCH == "amd64")) + | sort_by(.PY_VER) + | unique_by(.DEPENDENCIES) + ) + + ( + map(select(.ARCH == "amd64")) + | map(select(.DEPENDENCIES == "oldest")) + | sort_by(.PY_VER) + | map(.DEPENDENCIES = "intermediate") + ) + matrix_type: pull-request + conda-python-cuml-accel-upstream-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda + with: + build_type: pull-request + script: "ci/test_python_cuml_accel_upstream.sh" + # One run for each dependencies config on amd64, breaking ties by highest Python version + matrix_filter: map(select(.ARCH == "amd64")) | sort_by(.PY_VER) | unique_by(.DEPENDENCIES) + matrix_type: pull-request + conda-notebook-tests: + needs: [conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_notebooks + with: + build_type: pull-request + node_type: "gpu-rtxpro6000-latest-1" + arch: "amd64" + container_image: "rapidsai/ci-conda:26.12-latest" + script: "ci/test_notebooks.sh" + docs-build-matrix: + permissions: + contents: read + uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@main + with: + build_type: pull-request + matrix_name: docs-build + matrix_type: pull-request + docs-build: + needs: [docs-build-matrix, conda-python-build, changed-files] + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main + strategy: + fail-fast: false + matrix: ${{ fromJSON(needs.docs-build-matrix.outputs.matrix) }} + if: fromJSON(needs.changed-files.outputs.changed_file_groups).build_docs + with: + build_type: pull-request + node_type: "gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1" + arch: "${{ matrix.arch }}" + container_image: "rapidsai/ci-conda:26.12-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}" + script: "ci/build_docs.sh" + publish-api-docs: + needs: [docs-build] + permissions: + contents: read + id-token: write + secrets: + akamai-access-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_ACCESS_TOKEN }} + akamai-client-token: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_TOKEN }} + akamai-client-secret: ${{ secrets.NVIDIA_DOCS_AKAMAI_CLIENT_SECRET }} + akamai-emails-to-notify: ${{ secrets.NVIDIA_DOCS_AKAMAI_EMAILS_TO_NOTIFY }} + akamai-host: ${{ secrets.NVIDIA_DOCS_AKAMAI_HOST }} + target-aws-access-key-id: ${{ secrets.NVIDIA_DOCS_AWS_ACCESS_KEY_ID }} + target-aws-region: ${{ secrets.NVIDIA_DOCS_AWS_REGION }} + target-aws-secret-access-key: ${{ secrets.NVIDIA_DOCS_AWS_SECRET_ACCESS_KEY }} + target-archive-s3-bucket: ${{ secrets.NVIDIA_DOCS_ARCHIVE_S3_BUCKET }} + target-s3-bucket: ${{ secrets.NVIDIA_DOCS_S3_BUCKET }} + uses: rapidsai/shared-workflows/.github/workflows/publish-api-docs.yaml@main + with: + docs-projects: cuml + dry-run: true wheel-build-libcuml: - needs: [build-details] + needs: [build-details, checks] permissions: actions: read contents: read @@ -240,7 +544,7 @@ jobs: package-type: cpp matrix_type: pull-request wheel-build-cuml: - needs: [build-details, wheel-build-libcuml] + needs: [build-details, checks, wheel-build-libcuml] permissions: actions: read contents: read @@ -273,7 +577,7 @@ jobs: with: build_type: pull-request script: ci/test_wheel.sh - matrix_type: wsl-pr + matrix_type: pull-request,wsl-pr wheel-tests-cuml-dask: needs: [wheel-build-cuml, changed-files] permissions: @@ -288,6 +592,27 @@ jobs: with: build_type: pull-request script: ci/test_wheel_dask.sh - matrix_type: wsl-pr + matrix_type: pull-request,wsl-pr # NCCL_CUMEM_ENABLE=0 on WSL needs more than Docker's default 64 MB /dev/shm. container-options: "--shm-size=1g" + devcontainer: + permissions: + actions: read + contents: read + id-token: write + packages: read + pull-requests: read + secrets: inherit # zizmor: ignore[secrets-inherit] + uses: rapidsai/shared-workflows/.github/workflows/build-in-devcontainer.yaml@main + with: + arch: '["amd64", "arm64"]' + cuda: '["13.4"]' + node_type: "cpu8" + env: | + SCCACHE_DIST_MAX_RETRIES=inf + SCCACHE_SERVER_LOG=sccache=debug + SCCACHE_DIST_FALLBACK_TO_LOCAL_COMPILE=false + build_command: | + sccache --zero-stats; + build-all -j0 --verbose -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=ON; + sccache --show-adv-stats; diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 47b94f9af9..5064f198e7 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -63,13 +63,6 @@ set +e rapids-logger "Testing libcuml linkage" python -m pytest --cache-clear python/libcuml/tests/test_libcuml_linkage.py -v -export PYTHONFAULTHANDLER=1 -rapids-logger "TEMP: repeat benchmark real-worker tests" -for i in $(seq 1 20); do - out=$(cd python/cuml/tests && python -m pytest test_benchmark.py -k 'test_cli_real_workers or test_real_backend_smoke' -q -p no:cacheprovider 2>&1) - if echo "${out}" | tail -1 | grep -q failed; then echo "iter ${i} FAILED"; echo "${out}" | tail -300; else echo "iter ${i}: $(echo "${out}" | tail -1)"; fi -done - rapids-logger "pytest cuml single GPU" timeout -v --signal=SIGINT --kill-after=60s 90m ./ci/run_cuml_singlegpu_pytests.sh \ --numprocesses=8 \