Skip to content

Commit

Permalink
use gha-tools rapids-telemetry-setup for mkdir -p (#1839)
Browse files Browse the repository at this point in the history
Please refer to rapidsai/gha-tools#148 for explanation here.

Authors:
  - Mike Sarahan (https://github.com/msarahan)

Approvers:
  - James Lamb (https://github.com/jameslamb)

URL: #1839
  • Loading branch information
msarahan authored Feb 26, 2025
1 parent a757740 commit f26cc7e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
7 changes: 5 additions & 2 deletions ci/build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export RAPIDS_PACKAGE_VERSION
# Creates and exports $RATTLER_CHANNELS
source rapids-rattler-channel-string

# Creates artifacts directory for telemetry
source rapids-telemetry-setup

# --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
Expand All @@ -30,9 +33,9 @@ rattler-build build --recipe conda/recipes/librmm \
--no-build-id \
--channel-priority disabled \
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
"${RATTLER_CHANNELS[@]}" 2>&1 | tee telemetry-artifacts/build.log
"${RATTLER_CHANNELS[@]}" 2>&1 | tee ${GITHUB_WORKSPACE}/telemetry-artifacts/build.log

sccache --show-adv-stats | tee telemetry-artifacts/sccache-stats.txt
sccache --show-adv-stats | tee ${GITHUB_WORKSPACE}/telemetry-artifacts/sccache-stats.txt

# remove build_cache directory
rm -rf "$RAPIDS_CONDA_BLD_OUTPUT_DIR"/build_cache
Expand Down
7 changes: 5 additions & 2 deletions ci/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export RAPIDS_PACKAGE_VERSION
# Creates and exports $RATTLER_CHANNELS
source rapids-rattler-channel-string

# Creates artifacts directory for telemetry
source rapids-telemetry-setup

# --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
Expand All @@ -35,9 +38,9 @@ rattler-build build --recipe conda/recipes/rmm \
--channel-priority disabled \
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
-c "${CPP_CHANNEL}" \
"${RATTLER_CHANNELS[@]}" 2>&1 | tee telemetry-artifacts/build.log
"${RATTLER_CHANNELS[@]}" 2>&1 | tee ${GITHUB_WORKSPACE}/telemetry-artifacts/build.log

sccache --show-adv-stats | tee telemetry-artifacts/sccache-stats.txt
sccache --show-adv-stats | tee ${GITHUB_WORKSPACE}/telemetry-artifacts/sccache-stats.txt

# See https://github.com/prefix-dev/rattler-build/issues/1424
rm -rf "$RAPIDS_CONDA_BLD_OUTPUT_DIR"/build_cache
Expand Down
7 changes: 5 additions & 2 deletions ci/build_wheel_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ cd "${package_dir}"

sccache --zero-stats

rapids-pip-retry wheel . -w dist -v --no-deps --disable-pip-version-check 2>&1 | tee ../../telemetry-artifacts/build.log
# Creates artifacts directory for telemetry
source rapids-telemetry-setup

sccache --show-adv-stats | tee ../../telemetry-artifacts/sccache-stats.txt
rapids-pip-retry wheel . -w dist -v --no-deps --disable-pip-version-check 2>&1 | tee ${GITHUB_WORKSPACE}/telemetry-artifacts/build.log

sccache --show-adv-stats | tee ${GITHUB_WORKSPACE}/telemetry-artifacts/sccache-stats.txt

python -m wheel tags --platform any dist/* --remove

Expand Down
7 changes: 5 additions & 2 deletions ci/build_wheel_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ echo "librmm-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo "${CPP_WHEELHOUSE}"/librmm

sccache --zero-stats

# Creates artifacts directory for telemetry
source rapids-telemetry-setup

PIP_CONSTRAINT="${PWD}/build-constraints.txt" \
rapids-pip-retry wheel . -w dist -v --no-deps --disable-pip-version-check 2>&1 | tee ../../telemetry-artifacts/build.log
rapids-pip-retry wheel . -w dist -v --no-deps --disable-pip-version-check 2>&1 | tee ${GITHUB_WORKSPACE}/telemetry-artifacts/build.log

sccache --show-adv-stats | tee ../../telemetry-artifacts/sccache-stats.txt
sccache --show-adv-stats | tee ${GITHUB_WORKSPACE}/telemetry-artifacts/sccache-stats.txt

mkdir -p final_dist
EXCLUDE_ARGS=(
Expand Down

0 comments on commit f26cc7e

Please sign in to comment.