Skip to content

refactor(rattler): enable strict channel priority for builds #5035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions ci/build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ sccache --zero-stats
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version)
export RAPIDS_PACKAGE_VERSION

# populates `RATTLER_CHANNELS` array and `RATTLER_ARGS` array
source rapids-rattler-channel-string

# --no-build-id allows for caching with `sccache`
# more info is available at
# https://rattler.build/latest/tips_and_tricks/#using-sccache-or-ccache-with-rattler-build
rattler-build build --recipe conda/recipes/libcugraph \
--experimental \
--no-build-id \
--channel-priority disabled \
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
"${RATTLER_ARGS[@]}" \
"${RATTLER_CHANNELS[@]}"

sccache --show-adv-stats
Expand Down
17 changes: 4 additions & 13 deletions ci/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rapids-generate-version > ./VERSION
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION)
export RAPIDS_PACKAGE_VERSION

# populates `RATTLER_CHANNELS` array
# populates `RATTLER_CHANNELS` array and `RATTLER_ARGS` array
source rapids-rattler-channel-string

rapids-logger "Prepending channel ${CPP_CHANNEL} to RATTLER_CHANNELS"
Expand All @@ -33,10 +33,7 @@ rapids-logger "Building pylibcugraph"
# more info is available at
# https://rattler.build/latest/tips_and_tricks/#using-sccache-or-ccache-with-rattler-build
rattler-build build --recipe conda/recipes/pylibcugraph \
--experimental \
--no-build-id \
--channel-priority disabled \
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
"${RATTLER_ARGS[@]}" \
"${RATTLER_CHANNELS[@]}"

sccache --show-adv-stats
Expand All @@ -45,10 +42,7 @@ sccache --zero-stats
rapids-logger "Building cugraph"

rattler-build build --recipe conda/recipes/cugraph \
--experimental \
--no-build-id \
--channel-priority disabled \
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
"${RATTLER_ARGS[@]}" \
"${RATTLER_CHANNELS[@]}"

sccache --show-adv-stats
Expand All @@ -61,10 +55,7 @@ sccache --show-adv-stats
rapids-logger "Building cugraph-service"

rattler-build build --recipe conda/recipes/cugraph-service \
--experimental \
--no-build-id \
--channel-priority disabled \
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
"${RATTLER_ARGS[@]}" \
"${RATTLER_CHANNELS[@]}"

# remove build_cache directory to avoid uploading the entire source tree
Expand Down