Skip to content

Commit 630efd7

Browse files
authored
Use strict priority in CI conda tests (rapidsai#2879)
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: rapidsai#2879
1 parent 778b8b4 commit 630efd7

7 files changed

Lines changed: 13 additions & 7 deletions

ci/test_cpp.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025, NVIDIA CORPORATION.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -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
CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
1316
RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}/
1417
mkdir -p "${RAPIDS_TESTS_DIR}"

ci/test_python.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025, NVIDIA CORPORATION.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -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
- breathe

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

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

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

dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ files:
172172
includes:
173173
- test_python_common
174174
channels:
175-
- rapidsai
176175
- rapidsai-nightly
176+
- rapidsai
177177
- conda-forge
178178
dependencies:
179179
rapids_build_skbuild:

0 commit comments

Comments
 (0)