Skip to content

Commit 0163372

Browse files
authored
Use strict priority in CI conda tests (#20772)
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: #20772
1 parent ce70316 commit 0163372

File tree

8 files changed

+24
-1
lines changed

8 files changed

+24
-1
lines changed

ci/build_docs.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,22 @@ export RAPIDS_VERSION_MAJOR_MINOR
1212
rapids-logger "Create test conda environment"
1313
. /opt/conda/etc/profile.d/conda.sh
1414

15+
rapids-logger "Configuring conda strict channel priority"
16+
conda config --set channel_priority strict
17+
1518
ENV_YAML_DIR="$(mktemp -d)"
1619

1720
rapids-logger "Downloading artifacts from previous jobs"
1821
CPP_CHANNEL=$(rapids-download-conda-from-github cpp)
19-
PYTHON_CHANNEL=$(rapids-download-conda-from-github python)
22+
PYTHON_CHANNEL=$(rapids-download-from-github "$(rapids-package-name conda_python cudf)")
23+
PYTHON_NOARCH_CHANNEL=$(rapids-download-from-github "$(rapids-package-name conda_python cudf-noarch --pure --cuda "${RAPIDS_CUDA_VERSION}")")
2024

2125
rapids-dependency-file-generator \
2226
--output conda \
2327
--file-key docs \
2428
--prepend-channel "${CPP_CHANNEL}" \
2529
--prepend-channel "${PYTHON_CHANNEL}" \
30+
--prepend-channel "${PYTHON_NOARCH_CHANNEL}" \
2631
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee "${ENV_YAML_DIR}/env.yaml"
2732

2833
rapids-mamba-retry env create --yes -f "${ENV_YAML_DIR}/env.yaml" -n docs

ci/build_python_noarch.sh

100644100755
File mode changed.

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
ENV_YAML_DIR="$(mktemp -d)"
1114

1215
rapids-dependency-file-generator \

ci/cpp_linters.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
ENV_YAML_DIR="$(mktemp -d)"
1114

1215
rapids-dependency-file-generator \

ci/discover_libcudf_tests.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 "Generate C++ testing dependencies"
1013

1114
ENV_YAML_DIR="$(mktemp -d)"

ci/run_compute_sanitizer_test.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
# This script runs compute-sanitizer on a single libcudf test executable
1013
# Usage: ./run_compute_sanitizer_test.sh TOOL_NAME TEST_NAME [additional gtest args...]
1114
# Example: ./run_compute_sanitizer_test.sh memcheck AST_TEST

ci/test_java.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

ci/test_notebooks.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-from-github "$(rapids-package-name conda_python cudf)")

0 commit comments

Comments
 (0)