Skip to content

Commit 2959510

Browse files
authored
[CI] Set up test analytics for CPU Python tests (dmlc#8333)
* [CI] Set up test analytics for CPU Python tests * Install test collector
1 parent 2faa744 commit 2959510

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/buildkite/test-python-cpu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ buildkite-agent artifact download "python-package/dist/*.whl" . --step build-cud
1111
buildkite-agent artifact download "xgboost" . --step build-cpu
1212
chmod +x ./xgboost
1313

14+
export BUILDKITE_ANALYTICS_TOKEN=$(get_aws_secret buildkite/test_analytics/cpu)
15+
set_buildkite_env_vars_in_container
1416
tests/ci_build/ci_build.sh cpu docker tests/ci_build/test_python.sh cpu

tests/ci_build/Dockerfile.cpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ RUN git clone -b v1.49.1 https://github.com/grpc/grpc.git \
3737

3838
# Create new Conda environment
3939
COPY conda_env/cpu_test.yml /scripts/
40-
RUN mamba env create -n cpu_test --file=/scripts/cpu_test.yml
40+
RUN mamba env create -n cpu_test --file=/scripts/cpu_test.yml && \
41+
mamba clean --all && \
42+
conda run --no-capture-output -n cpu_test pip install buildkite-test-collector
4143

4244
# Install lightweight sudo (not bound to TTY)
4345
RUN set -ex; \

0 commit comments

Comments
 (0)