Skip to content

Commit 99ba2cf

Browse files
committed
capture sccache stats and build logs for telemetry
1 parent 92cf2e0 commit 99ba2cf

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

ci/build_cpp.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ source rapids-configure-sccache
99

1010
source rapids-date-string
1111

12+
source rapids-telemetry-setup
13+
1214
export CMAKE_GENERATOR=Ninja
1315

1416
rapids-print-env
@@ -17,9 +19,9 @@ rapids-logger "Begin cpp build"
1719

1820
sccache --zero-stats
1921

20-
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version) rapids-conda-retry build \
22+
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version) rapids-telemetry-record build.log rapids-conda-retry build \
2123
conda/recipes/libcuml
2224

23-
sccache --show-adv-stats
25+
rapids-telemetry-record sccache-stats.txt sccache --show-adv-stats
2426

2527
rapids-upload-conda-to-s3 cpp

ci/build_python.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ source rapids-configure-sccache
99

1010
source rapids-date-string
1111

12+
source rapids-telemetry-setup
13+
1214
export CMAKE_GENERATOR=Ninja
1315

1416
rapids-print-env
@@ -23,12 +25,12 @@ sccache --zero-stats
2325

2426
# TODO: Remove `--no-test` flag once importing on a CPU
2527
# node works correctly
26-
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION) rapids-conda-retry build \
28+
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION) rapids-telemetry-record build.log rapids-conda-retry build \
2729
--no-test \
2830
--channel "${CPP_CHANNEL}" \
2931
conda/recipes/cuml
3032

31-
sccache --show-adv-stats
33+
rapids-telemetry-record sccache-stats.txt sccache --show-adv-stats
3234

3335
# Build cuml-cpu only in CUDA 12 jobs since it only depends on python
3436
# version

ci/build_wheel.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package_dir=$2
88

99
source rapids-configure-sccache
1010
source rapids-date-string
11+
source rapids-telemetry-setup
1112

1213
rapids-generate-version > ./VERSION
1314

@@ -16,11 +17,11 @@ cd "${package_dir}"
1617
sccache --zero-stats
1718

1819
rapids-logger "Building '${package_name}' wheel"
19-
rapids-pip-retry wheel \
20+
rapids-telemetry-record build.log rapids-pip-retry wheel \
2021
-w dist \
2122
-v \
2223
--no-deps \
2324
--disable-pip-version-check \
2425
.
2526

26-
sccache --show-adv-stats
27+
rapids-telemetry-record sccache-stats.txt sccache --show-adv-stats

ci/build_wheel_cuml.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ EXCLUDE_ARGS=(
2929
--exclude "librapids_logger.so"
3030
)
3131

32+
source rapids-telemetry-setup
33+
34+
sccache --zero-stats
35+
3236
export SKBUILD_CMAKE_ARGS="-DDISABLE_DEPRECATION_WARNINGS=ON;-DSINGLEGPU=OFF;-DUSE_LIBCUML_WHEEL=ON"
33-
./ci/build_wheel.sh "${package_name}" "${package_dir}"
37+
rapids-telemetry-record build.log ./ci/build_wheel.sh "${package_name}" "${package_dir}"
38+
39+
rapids-telemetry-record sccache-stats.txt sccache --show-adv-stats
3440

3541
mkdir -p ${package_dir}/final_dist
3642
python -m auditwheel repair \

ci/build_wheel_libcuml.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,15 @@ EXCLUDE_ARGS=(
4343
--exclude "librapids_logger.so"
4444
)
4545

46+
source rapids-telemetry-setup
47+
48+
sccache --zero-stats
49+
4650
export SKBUILD_CMAKE_ARGS="-DDISABLE_DEPRECATION_WARNINGS=ON;-DCPM_cumlprims_mg_SOURCE=${GITHUB_WORKSPACE}/cumlprims_mg/"
47-
./ci/build_wheel.sh "${package_name}" "${package_dir}"
51+
52+
rapids-telemetry-record build.log ./ci/build_wheel.sh "${package_name}" "${package_dir}"
53+
54+
rapids-telemetry-record sccache-stats.txt sccache --show-adv-stats
4855

4956
mkdir -p ${package_dir}/final_dist
5057
python -m auditwheel repair \

0 commit comments

Comments
 (0)