Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "TEMP: minimize CI to WSL wheel tests with GPU memory and NCCL…
… diagnostics"

This reverts commit 9c7ac9e.
  • Loading branch information
bdice committed Nov 5, 2026
commit d4b5911bd34177932401d191d050b8417cb80db3
333 changes: 329 additions & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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;
7 changes: 0 additions & 7 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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' \
Expand Down
2 changes: 0 additions & 2 deletions ci/test_wheel_dask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading