Skip to content

Commit 2ffe160

Browse files
committed
Reapply "Create Conda CI test env in one step (#684)"
This reverts commit c28e95f.
1 parent c28e95f commit 2ffe160

File tree

4 files changed

+33
-21
lines changed

4 files changed

+33
-21
lines changed

ci/release/update-version.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ echo "${NEXT_FULL_TAG}" > VERSION
4444
DEPENDENCIES=(
4545
dask-cuda
4646
cuvs
47+
cuvs-bench
4748
libcuvs
49+
libcuvs-tests
4850
libraft
4951
librmm
5052
pylibraft

ci/test_cpp.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ set -euo pipefail
55

66
. /opt/conda/etc/profile.d/conda.sh
77

8-
RAPIDS_VERSION="$(rapids-version)"
8+
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
99

1010
rapids-logger "Generate C++ testing dependencies"
1111
rapids-dependency-file-generator \
1212
--output conda \
1313
--file-key test_cpp \
14-
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee env.yaml
14+
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" \
15+
--prepend-channel "${CPP_CHANNEL}" \
16+
| tee env.yaml
1517

1618
rapids-mamba-retry env create --yes -f env.yaml -n test
1719

@@ -20,17 +22,11 @@ set +u
2022
conda activate test
2123
set -u
2224

23-
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
2425
RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}/
2526
mkdir -p "${RAPIDS_TESTS_DIR}"
2627

2728
rapids-print-env
2829

29-
rapids-mamba-retry install \
30-
--channel "${CPP_CHANNEL}" \
31-
"libcuvs=${RAPIDS_VERSION}" \
32-
"libcuvs-tests=${RAPIDS_VERSION}"
33-
3430
rapids-logger "Check GPU usage"
3531
nvidia-smi
3632

ci/test_python.sh

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ set -euo pipefail
55

66
. /opt/conda/etc/profile.d/conda.sh
77

8-
RAPIDS_VERSION="$(rapids-version)"
8+
rapids-logger "Downloading artifacts from previous jobs"
9+
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
10+
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)
911

1012
rapids-logger "Generate Python testing dependencies"
1113
rapids-dependency-file-generator \
1214
--output conda \
1315
--file-key test_python \
14-
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml
16+
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" \
17+
--prepend-channel "${CPP_CHANNEL}" \
18+
--prepend-channel "${PYTHON_CHANNEL}" \
19+
| tee env.yaml
1520

1621
rapids-mamba-retry env create --yes -f env.yaml -n test
1722

@@ -20,23 +25,12 @@ set +u
2025
conda activate test
2126
set -u
2227

23-
rapids-logger "Downloading artifacts from previous jobs"
24-
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
25-
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)
26-
2728
RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}
2829
RAPIDS_COVERAGE_DIR=${RAPIDS_COVERAGE_DIR:-"${PWD}/coverage-results"}
2930
mkdir -p "${RAPIDS_TESTS_DIR}" "${RAPIDS_COVERAGE_DIR}"
3031

3132
rapids-print-env
3233

33-
rapids-mamba-retry install \
34-
--channel "${CPP_CHANNEL}" \
35-
--channel "${PYTHON_CHANNEL}" \
36-
"libcuvs=${RAPIDS_VERSION}" \
37-
"cuvs=${RAPIDS_VERSION}" \
38-
"cuvs-bench=${RAPIDS_VERSION}"
39-
4034
rapids-logger "Check GPU usage"
4135
nvidia-smi
4236

dependencies.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ files:
4949
includes:
5050
- cuda_version
5151
- test_libcuvs
52+
- depends_on_libcuvs
53+
- depends_on_libcuvs_tests
5254
test_python:
5355
output: none
5456
includes:
@@ -57,6 +59,9 @@ files:
5759
- py_version
5860
- test_python_common
5961
- test_py_cuvs
62+
- depends_on_libcuvs
63+
- depends_on_cuvs
64+
- depends_on_cuvs_bench
6065
checks:
6166
output: none
6267
includes:
@@ -582,6 +587,16 @@ dependencies:
582587
- output_types: [requirements, pyproject]
583588
packages:
584589
- matplotlib
590+
depends_on_cuvs:
591+
common:
592+
- output_types: conda
593+
packages:
594+
- cuvs==25.4.*,>=0.0.0a0
595+
depends_on_cuvs_bench:
596+
common:
597+
- output_types: conda
598+
packages:
599+
- cuvs-bench==25.4.*,>=0.0.0a0
585600
depends_on_libcuvs:
586601
common:
587602
- output_types: conda
@@ -606,6 +621,11 @@ dependencies:
606621
packages:
607622
- libcuvs-cu11==25.4.*,>=0.0.0a0
608623
- {matrix: null, packages: [*libcuvs_unsuffixed]}
624+
depends_on_libcuvs_tests:
625+
common:
626+
- output_types: conda
627+
packages:
628+
- libcuvs-tests==25.4.*,>=0.0.0a0
609629
depends_on_libraft:
610630
common:
611631
- output_types: conda

0 commit comments

Comments
 (0)