From 7593ea739efefbda4a286db52e0c13b299f5fe18 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Fri, 11 Oct 2024 14:59:43 -0500 Subject: [PATCH] make conda installs in CI stricter (#791) Contributes to https://github.com/rapidsai/build-planning/issues/106 Proposes specifying the RAPIDS version in `conda install` calls that install CI artifacts, to reduce the risk of CI jobs picking up artifacts from other releases. Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Mike Sarahan (https://github.com/msarahan) URL: https://github.com/rapidsai/cucim/pull/791 --- ci/build_docs.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ci/build_docs.sh b/ci/build_docs.sh index 4bc3e63f2..38936c08a 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -2,11 +2,11 @@ set -euo pipefail -export RAPIDS_VERSION_NUMBER="$(rapids-version-major-minor)" - rapids-logger "Create test conda environment" . /opt/conda/etc/profile.d/conda.sh +RAPIDS_VERSION="$(rapids-version)" + rapids-dependency-file-generator \ --output conda \ --file-key docs \ @@ -24,7 +24,8 @@ PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python) rapids-mamba-retry install \ --channel "${CPP_CHANNEL}" \ --channel "${PYTHON_CHANNEL}" \ - cucim libcucim + "cucim=${RAPIDS_VERSION}" \ + "libcucim=${RAPIDS_VERSION}" export RAPIDS_DOCS_DIR="$(mktemp -d)" @@ -35,4 +36,4 @@ mkdir -p "${RAPIDS_DOCS_DIR}/cucim/"html mv _html/* "${RAPIDS_DOCS_DIR}/cucim/html" popd -rapids-upload-docs +RAPIDS_VERSION_NUMBER="$(rapids-version-major-minor)" rapids-upload-docs