-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'branch-23.02' into make-proxy-tests-async
- Loading branch information
Showing
25 changed files
with
844 additions
and
167 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- "branch-*" | ||
tags: | ||
- v[0-9][0-9].[0-9][0-9].[0-9][0-9] | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
required: true | ||
type: string | ||
date: | ||
required: true | ||
type: string | ||
sha: | ||
required: true | ||
type: string | ||
build_type: | ||
type: string | ||
default: nightly | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
conda-python-build: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@cuda-118 | ||
with: | ||
build_type: ${{ inputs.build_type || 'branch' }} | ||
branch: ${{ inputs.branch }} | ||
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
upload-conda: | ||
needs: [conda-python-build] | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/conda-upload-packages.yaml@cuda-118 | ||
with: | ||
build_type: ${{ inputs.build_type || 'branch' }} | ||
branch: ${{ inputs.branch }} | ||
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
wheel-build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rapidsai/ci:latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build wheel | ||
run: ci/build_python_pypi.sh | ||
- name: Publish distribution 📦 to PyPI | ||
if: inputs.build_type == 'nightly' | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.RAPIDSAI_PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: pr | ||
|
||
on: | ||
push: | ||
branches: | ||
- "pull-request/[0-9]+" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pr-builder: | ||
needs: | ||
- checks | ||
- conda-python-build | ||
- conda-python-tests | ||
- wheel-build | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/pr-builder.yaml@cuda-118 | ||
checks: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/checks.yaml@cuda-118 | ||
conda-python-build: | ||
needs: checks | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@cuda-118 | ||
with: | ||
build_type: pull-request | ||
conda-python-tests: | ||
needs: conda-python-build | ||
secrets: inherit | ||
# TODO: Switch this testing branch to "cuda-118" after `cudf` `3.10` builds are out. | ||
# There is a circular testing dependency between `dask-cuda` and `cudf` right now, which | ||
# prevents us from running `3.10` tests for `dask-cuda` until `3.10` `cudf` packages are published. | ||
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@main | ||
with: | ||
build_type: pull-request | ||
wheel-build: | ||
needs: checks | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rapidsai/ci:latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build wheel | ||
run: ci/build_python_pypi.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: test | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
required: true | ||
type: string | ||
date: | ||
required: true | ||
type: string | ||
sha: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
conda-python-tests: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@cuda-118 | ||
with: | ||
build_type: nightly | ||
branch: ${{ inputs.branch }} | ||
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
source rapids-env-update | ||
|
||
export CMAKE_GENERATOR=Ninja | ||
|
||
rapids-print-env | ||
|
||
rapids-logger "Begin py build" | ||
|
||
rapids-mamba-retry mambabuild \ | ||
conda/recipes/dask-cuda | ||
|
||
rapids-upload-conda-to-s3 python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
|
||
python -m pip install build --user | ||
|
||
# While conda provides these during conda-build, they are also necessary during | ||
# the setup.py build for PyPI | ||
export GIT_DESCRIBE_TAG=$(git describe --abbrev=0 --tags) | ||
export GIT_DESCRIBE_NUMBER=$(git rev-list ${GIT_DESCRIBE_TAG}..HEAD --count) | ||
|
||
# Compute/export VERSION_SUFFIX | ||
source rapids-env-update | ||
|
||
python -m build \ | ||
--sdist \ | ||
--wheel \ | ||
--outdir dist/ \ | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2020-2022, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
rapids-logger "Create checks conda environment" | ||
. /opt/conda/etc/profile.d/conda.sh | ||
|
||
rapids-dependency-file-generator \ | ||
--output conda \ | ||
--file_key checks \ | ||
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml | ||
|
||
rapids-mamba-retry env create --force -f env.yaml -n checks | ||
conda activate checks | ||
|
||
# Run pre-commit checks | ||
pre-commit run --hook-stage manual --all-files --show-diff-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
. /opt/conda/etc/profile.d/conda.sh | ||
|
||
rapids-logger "Generate Python testing dependencies" | ||
rapids-dependency-file-generator \ | ||
--output conda \ | ||
--file_key test_python \ | ||
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml | ||
|
||
rapids-mamba-retry env create --force -f env.yaml -n test | ||
|
||
# Temporarily allow unbound variables for conda activation. | ||
set +u | ||
conda activate test | ||
set -u | ||
|
||
rapids-logger "Downloading artifacts from previous jobs" | ||
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python) | ||
|
||
RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"} | ||
RAPIDS_COVERAGE_DIR=${RAPIDS_COVERAGE_DIR:-"${PWD}/coverage-results"} | ||
mkdir -p "${RAPIDS_TESTS_DIR}" "${RAPIDS_COVERAGE_DIR}" | ||
SUITEERROR=0 | ||
|
||
rapids-print-env | ||
|
||
rapids-mamba-retry install \ | ||
-c "${PYTHON_CHANNEL}" \ | ||
dask-cuda | ||
|
||
rapids-logger "Check GPU usage" | ||
nvidia-smi | ||
|
||
set +e | ||
|
||
rapids-logger "pytest dask-cuda" | ||
pushd dask_cuda | ||
DASK_CUDA_TEST_SINGLE_GPU=1 \ | ||
UCXPY_IFNAME=eth0 \ | ||
UCX_WARN_UNUSED_ENV_VARS=n \ | ||
UCX_MEMTYPE_CACHE=n \ | ||
timeout 30m pytest \ | ||
-vv \ | ||
--capture=no \ | ||
--cache-clear \ | ||
--junitxml="${RAPIDS_TESTS_DIR}/junit-dask-cuda.xml" \ | ||
--cov-config=../pyproject.toml \ | ||
--cov=dask_cuda \ | ||
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/dask-cuda-coverage.xml" \ | ||
--cov-report=term \ | ||
tests | ||
exitcode=$? | ||
|
||
if (( ${exitcode} != 0 )); then | ||
SUITEERROR=${exitcode} | ||
echo "FAILED: 1 or more tests in dask-cuda" | ||
fi | ||
popd | ||
|
||
rapids-logger "Run local benchmark" | ||
python dask_cuda/benchmarks/local_cudf_shuffle.py \ | ||
--partition-size="1 KiB" \ | ||
-d 0 \ | ||
--runs 1 \ | ||
--backend dask | ||
exitcode=$? | ||
|
||
if (( ${exitcode} != 0 )); then | ||
SUITEERROR=${exitcode} | ||
echo "FAILED: Local benchmark with dask comms" | ||
fi | ||
|
||
python dask_cuda/benchmarks/local_cudf_shuffle.py \ | ||
--partition-size="1 KiB" \ | ||
-d 0 \ | ||
--runs 1 \ | ||
--backend explicit-comms | ||
exitcode=$? | ||
|
||
if (( ${exitcode} != 0 )); then | ||
SUITEERROR=${exitcode} | ||
echo "FAILED: Local benchmark with explicit comms" | ||
fi | ||
|
||
exit ${SUITEERROR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.