Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize CI System and Reduce Redundancy #85

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

isVoid
Copy link
Collaborator

@isVoid isVoid commented Jan 23, 2025

This PR aims to completely separate conda building and package testing into two github job. As building only requires CPU node and testing requires GPU node, this reduces GPU usage in CI.

Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update to CUDA 12.8.0 in CI.

- { CUDA_VER: '11.4.3', ARCH: 'amd64', PY_VER: '3.9', LINUX_VER: 'ubuntu20.04', gpu: 'v100', driver: 'latest' }
- { CUDA_VER: '11.8.0', ARCH: 'amd64', PY_VER: '3.10', LINUX_VER: 'ubuntu20.04', gpu: 'v100', driver: 'latest' }
- { CUDA_VER: '12.0.1', ARCH: 'amd64', PY_VER: '3.11', LINUX_VER: 'ubuntu20.04', gpu: 'v100', driver: 'latest' }
- { CUDA_VER: '12.5.1', ARCH: 'amd64', PY_VER: '3.12', LINUX_VER: 'ubuntu20.04', gpu: 'v100', driver: 'latest' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- { CUDA_VER: '12.5.1', ARCH: 'amd64', PY_VER: '3.12', LINUX_VER: 'ubuntu20.04', gpu: 'v100', driver: 'latest' }
- { CUDA_VER: '12.8.0', ARCH: 'amd64', PY_VER: '3.12', LINUX_VER: 'ubuntu20.04', gpu: 'v100', driver: 'latest' }

- { CUDA_VER: '11.4.3', ARCH: 'arm64', PY_VER: '3.9', LINUX_VER: 'ubuntu20.04', gpu: 'a100', driver: 'latest' }
- { CUDA_VER: '11.8.0', ARCH: 'arm64', PY_VER: '3.10', LINUX_VER: 'ubuntu20.04', gpu: 'a100', driver: 'latest' }
- { CUDA_VER: '12.0.1', ARCH: 'arm64', PY_VER: '3.11', LINUX_VER: 'ubuntu20.04', gpu: 'a100', driver: 'latest' }
- { CUDA_VER: '12.5.1', ARCH: 'arm64', PY_VER: '3.12', LINUX_VER: 'ubuntu20.04', gpu: 'a100', driver: 'latest' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- { CUDA_VER: '12.5.1', ARCH: 'arm64', PY_VER: '3.12', LINUX_VER: 'ubuntu20.04', gpu: 'a100', driver: 'latest' }
- { CUDA_VER: '12.8.0', ARCH: 'arm64', PY_VER: '3.12', LINUX_VER: 'ubuntu20.04', gpu: 'a100', driver: 'latest' }

- { CUDA_VER: '12.0.1', ARCH: 'amd64', PY_VER: '3.12', LINUX_VER: 'rockylinux8' }
"

export TEST_MATRIX="
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need 8 jobs? Can we do a reduced matrix here of 3 jobs, and then do the rest with a separate set of nightly jobs?

Copy link
Collaborator Author

@isVoid isVoid Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need 8 jobs?

No, if you look at the pr.yaml, there's a matrix filter that only issue 2 jobs for each of the tests. One for amd64, and the other for arm64.

ci/test_conda.sh Outdated
pytest \
clangdev >=18 \
cuda-nvcc >=12.5 \
cuda-version >=12.5 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want something like this:

Suggested change
cuda-version >=12.5 \
cuda-version =${RAPIDS_CUDA_VERSION%.*} \

Compare to https://github.com/rapidsai/cudf/blob/03742acc9ae72a4e5a582fb3f136c9116862f062/ci/test_cpp_common.sh#L17

ci/test_conda.sh Outdated

conda index $RAPIDS_CONDA_BLD_OUTPUT_DIR/
conda config --add channels $RAPIDS_CONDA_BLD_OUTPUT_DIR

rapids-print-env

rapids-mamba-retry install \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to fuse this into the rapids-mamba-retry create -n test command. If you can do a single conda solve, your CI will be faster and more correct.

rapidsai/build-planning#22

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had thought that when we installed all dependencies for the libs first, then force installing from pwd/conda-repo channel, it should've installed from the local channel. Apparently that's not the case.

@isVoid
Copy link
Collaborator Author

isVoid commented Feb 1, 2025

Still seeing that conda is pulling from the wrong package channel:

numbast                   0.2             py311h637cf00_0    nvidia
numbast-extensions        0.2             py311h637cf00_0    nvidia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants