Skip to content

Commit 9e3e22f

Browse files
authored
Use strict priority in CI conda tests (#877)
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: #877
1 parent 135ad88 commit 9e3e22f

File tree

7 files changed

+11
-5
lines changed

7 files changed

+11
-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_python.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../
99

1010
. /opt/conda/etc/profile.d/conda.sh
1111

12+
rapids-logger "Configuring conda strict channel priority"
13+
conda config --set channel_priority strict
14+
1215
rapids-logger "Downloading artifacts from previous jobs"
1316
CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
1417
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
- boto3>=1.21.21

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
- boto3>=1.21.21

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
- boto3>=1.21.21

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
- boto3>=1.21.21

dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ files:
116116
- test_java
117117
- depends_on_libkvikio
118118
channels:
119-
- rapidsai
120119
- rapidsai-nightly
120+
- rapidsai
121121
- conda-forge
122122
dependencies:
123123
build-universal:

0 commit comments

Comments
 (0)