Skip to content

Commit 4fb0224

Browse files
authored
Use strict priority in CI conda tests (#684)
This PR sets conda to use `strict` priority in CI tests. Mixing channel priority is frequently a cause of unexpected errors. Our CI jobs should always use strict priority in order to enforce that conda packages come from local channels with the artifacts built in CI, not mixing with older nightly artifacts from the `rapidsai-nightly` channel or other sources. xref: rapidsai/build-planning#14 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Gil Forsyth (https://github.com/gforsyth) URL: #684
1 parent 979a7b1 commit 4fb0224

File tree

8 files changed

+14
-5
lines changed

8 files changed

+14
-5
lines changed

ci/test_cpp.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set -euo pipefail
66

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

9+
rapids-logger "Configuring conda strict channel priority"
10+
conda config --set channel_priority strict
11+
912
CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
1013

1114
rapids-logger "Generate C++ testing dependencies"

ci/test_cpp_memcheck.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set -xeuo pipefail
66

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

9+
rapids-logger "Configuring conda strict channel priority"
10+
conda config --set channel_priority strict
11+
912
CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
1013

1114
rapids-logger "Generate C++ testing dependencies"

ci/test_python.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set -euo pipefail
66

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

9+
rapids-logger "Configuring conda strict channel priority"
10+
conda config --set channel_priority strict
11+
912
rapids-logger "Downloading artifacts from previous jobs"
1013
CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
1114
PYTHON_CHANNEL=$(rapids-download-conda-from-github python)

conda/environments/all_cuda-129_arch-aarch64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is generated by `rapids-dependency-file-generator`.
22
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
33
channels:
4-
- rapidsai
54
- rapidsai-nightly
5+
- rapidsai
66
- conda-forge
77
dependencies:
88
- breathe>=4.35.0

conda/environments/all_cuda-129_arch-x86_64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is generated by `rapids-dependency-file-generator`.
22
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
33
channels:
4-
- rapidsai
54
- rapidsai-nightly
5+
- rapidsai
66
- conda-forge
77
dependencies:
88
- breathe>=4.35.0

conda/environments/all_cuda-130_arch-aarch64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is generated by `rapids-dependency-file-generator`.
22
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
33
channels:
4-
- rapidsai
54
- rapidsai-nightly
5+
- rapidsai
66
- conda-forge
77
dependencies:
88
- breathe>=4.35.0

conda/environments/all_cuda-130_arch-x86_64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is generated by `rapids-dependency-file-generator`.
22
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
33
channels:
4-
- rapidsai
54
- rapidsai-nightly
5+
- rapidsai
66
- conda-forge
77
dependencies:
88
- breathe>=4.35.0

dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ files:
155155
- depends_on_ucxx
156156
- test_python
157157
channels:
158-
- rapidsai
159158
- rapidsai-nightly
159+
- rapidsai
160160
- conda-forge
161161
dependencies:
162162
build-universal:

0 commit comments

Comments
 (0)