Skip to content

Commit 2cf5fa7

Browse files
authored
Use strict priority in CI conda tests (#1583)
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: - https://github.com/jakirkham URL: #1583
1 parent 9b371e4 commit 2cf5fa7

19 files changed

+23
-17
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
@@ -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
- _go_select *=cgo

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
- _go_select *=cgo

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
- _go_select *=cgo

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
- _go_select *=cgo

conda/environments/bench_ann_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
- c-compiler

conda/environments/bench_ann_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
- c-compiler

conda/environments/bench_ann_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
- c-compiler

conda/environments/bench_ann_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
- c-compiler

0 commit comments

Comments
 (0)