Skip to content

Commit 0490a5c

Browse files
bdicegforsyth
andauthored
Use strict priority in CI conda tests (#819)
## Description 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 --------- Co-authored-by: Gil Forsyth <[email protected]>
1 parent c53d593 commit 0490a5c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ci/check_conda_nightly_env.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import sys
55
from datetime import datetime, timedelta
66

7-
87
OLD_PACKAGE_THRESHOLD_DAYS = 3
98

109
EXCLUDED_PACKAGES = {

ci/test_conda_nightly_env.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ CUDA_VERSION=${RAPIDS_CUDA_VERSION%.*}
88

99
JSON_FILENAME="rapids_cuda${CUDA_VERSION}_py${RAPIDS_PY_VERSION}.json"
1010

11+
rapids-logger "Configuring conda strict channel priority"
12+
conda config --set channel_priority strict
13+
1114
rapids-logger "Creating conda environment with rapids=${RAPIDS_VERSION}, python=${RAPIDS_PY_VERSION}, cuda-version=${CUDA_VERSION}"
1215

1316
rapids-conda-retry \

0 commit comments

Comments
 (0)