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
TEMP: minimize CI to WSL wheel tests and repeat benchmark real-worker…
… tests with faulthandler
  • Loading branch information
bdice committed Nov 5, 2026
commit b580fc77e971d39a624f14f3963ebbd90a5bf42c
333 changes: 4 additions & 329 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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;
7 changes: 7 additions & 0 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
Loading