From 29595102b997aee96223afb258e5c3c2158e7cf1 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Wed, 12 Oct 2022 23:15:50 -0700 Subject: [PATCH] [CI] Set up test analytics for CPU Python tests (#8333) * [CI] Set up test analytics for CPU Python tests * Install test collector --- tests/buildkite/test-python-cpu.sh | 2 ++ tests/ci_build/Dockerfile.cpu | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/buildkite/test-python-cpu.sh b/tests/buildkite/test-python-cpu.sh index 5848c392a..938e1184e 100755 --- a/tests/buildkite/test-python-cpu.sh +++ b/tests/buildkite/test-python-cpu.sh @@ -11,4 +11,6 @@ buildkite-agent artifact download "python-package/dist/*.whl" . --step build-cud buildkite-agent artifact download "xgboost" . --step build-cpu chmod +x ./xgboost +export BUILDKITE_ANALYTICS_TOKEN=$(get_aws_secret buildkite/test_analytics/cpu) +set_buildkite_env_vars_in_container tests/ci_build/ci_build.sh cpu docker tests/ci_build/test_python.sh cpu diff --git a/tests/ci_build/Dockerfile.cpu b/tests/ci_build/Dockerfile.cpu index 5111f4d00..0101a2fa7 100644 --- a/tests/ci_build/Dockerfile.cpu +++ b/tests/ci_build/Dockerfile.cpu @@ -37,7 +37,9 @@ RUN git clone -b v1.49.1 https://github.com/grpc/grpc.git \ # Create new Conda environment COPY conda_env/cpu_test.yml /scripts/ -RUN mamba env create -n cpu_test --file=/scripts/cpu_test.yml +RUN mamba env create -n cpu_test --file=/scripts/cpu_test.yml && \ + mamba clean --all && \ + conda run --no-capture-output -n cpu_test pip install buildkite-test-collector # Install lightweight sudo (not bound to TTY) RUN set -ex; \