Skip to content

Commit

Permalink
make conda installs in CI stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Oct 10, 2024
1 parent 0d42882 commit c69ea8f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
10 changes: 5 additions & 5 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -euo pipefail
rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

export UCXX_VERSION="$(rapids-version)"
UCXX_VERSION_MAJOR_MINOR="$(rapids-version-major-minor)"

ENV_YAML_DIR="$(mktemp -d)"

rapids-dependency-file-generator \
Expand All @@ -23,11 +26,8 @@ CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)

rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
libucxx
"libucxx=${UCXX_VERSION}"

export UCXX_VERSION="$(sed -E -e 's/^([0-9]+)\.([0-9]+)\.([0-9]+).*$/\1.\2.\3/' VERSION)"
export UCXX_VERSION_MAJOR_MINOR="$(sed -E -e 's/^([0-9]+)\.([0-9]+)\.([0-9]+).*$/\1.\2/' VERSION)"
export RAPIDS_VERSION_NUMBER="$UCXX_VERSION_MAJOR_MINOR"
export RAPIDS_DOCS_DIR="$(mktemp -d)"

rapids-logger "Build CPP docs"
Expand All @@ -37,4 +37,4 @@ mkdir -p "${RAPIDS_DOCS_DIR}/libucxx/html"
mv html/* "${RAPIDS_DOCS_DIR}/libucxx/html"
popd

rapids-upload-docs
RAPIDS_VERSION_NUMBER="${UCXX_VERSION_MAJOR_MINOR}" rapids-upload-docs
6 changes: 5 additions & 1 deletion ci/test_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ source "$(dirname "$0")/test_common.sh"
rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

UCXX_VERSION="$(rapids-version)"

rapids-dependency-file-generator \
--output conda \
--file-key test_cpp \
Expand All @@ -29,7 +31,9 @@ CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)

rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
libucxx libucxx-examples libucxx-tests
"libucxx=${UCXX_VERSION}" \
"libucxx-examples=${UCXX_VERSION}" \
"libucxx-tests=${UCXX_VERSION}"

print_ucx_config

Expand Down
5 changes: 4 additions & 1 deletion ci/test_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ source "$(dirname "$0")/test_common.sh"
rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

UCXX_VERSION="$(rapids-version)"

rapids-dependency-file-generator \
--output conda \
--file-key test_python \
Expand All @@ -27,7 +29,8 @@ CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)

rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
libucxx ucxx
"libucxx=${UCXX_VERSION}" \
"ucxx=${UCXX_VERSION}"

print_ucx_config

Expand Down
6 changes: 5 additions & 1 deletion ci/test_python_distributed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ source "$(dirname "$0")/test_common.sh"
rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

UCXX_VERSION="$(rapids-version)"

rapids-dependency-file-generator \
--output conda \
--file-key test_python_distributed \
Expand All @@ -27,7 +29,9 @@ CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)

rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
libucxx ucxx distributed-ucxx
"libucxx=${UCXX_VERSION}" \
"ucxx=${UCXX_VERSION}" \
"distributed-ucxx=${UCXX_VERSION}"

print_ucx_config

Expand Down

0 comments on commit c69ea8f

Please sign in to comment.