Skip to content

Commit 55fca1e

Browse files
authored
Use strict priority in CI conda tests (rapidsai#1606)
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: - James Lamb (https://github.com/jameslamb) URL: rapidsai#1606
1 parent 1af437e commit 55fca1e

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

ci/build_docs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ PYTHON_CHANNEL=$(rapids-download-conda-from-github python)
1111
rapids-logger "Create test conda environment"
1212
. /opt/conda/etc/profile.d/conda.sh
1313

14+
rapids-logger "Configuring conda strict channel priority"
15+
conda config --set channel_priority strict
16+
1417
RAPIDS_VERSION_MAJOR_MINOR="$(rapids-version-major-minor)"
1518
export RAPIDS_VERSION_MAJOR_MINOR
1619

ci/build_go.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) 2024, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -10,6 +10,9 @@ CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
1010
rapids-logger "Create test conda environment"
1111
. /opt/conda/etc/profile.d/conda.sh
1212

13+
rapids-logger "Configuring conda strict channel priority"
14+
conda config --set channel_priority strict
15+
1316
rapids-dependency-file-generator \
1417
--output conda \
1518
--file-key go \

ci/build_java.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ if [ -e "/opt/conda/etc/profile.d/conda.sh" ]; then
1616
. /opt/conda/etc/profile.d/conda.sh
1717
fi
1818

19+
rapids-logger "Configuring conda strict channel priority"
20+
conda config --set channel_priority strict
21+
1922
rapids-logger "Downloading artifacts from previous jobs"
2023
CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
2124

ci/build_rust.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) 2024, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -10,6 +10,9 @@ CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
1010
rapids-logger "Create test conda environment"
1111
. /opt/conda/etc/profile.d/conda.sh
1212

13+
rapids-logger "Configuring conda strict channel priority"
14+
conda config --set channel_priority strict
15+
1316
rapids-dependency-file-generator \
1417
--output conda \
1518
--file-key rust \

ci/check_style.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ set -euo pipefail
77
rapids-logger "Create checks conda environment"
88
. /opt/conda/etc/profile.d/conda.sh
99

10+
rapids-logger "Configuring conda strict channel priority"
11+
conda config --set channel_priority strict
12+
1013
rapids-dependency-file-generator \
1114
--output conda \
1215
--file-key checks \

0 commit comments

Comments
 (0)