[CI] Set up test analytics for CPU Python tests (#8333)

* [CI] Set up test analytics for CPU Python tests

* Install test collector
This commit is contained in:
Philip Hyunsu Cho 2022-10-12 23:15:50 -07:00 committed by GitHub
parent 2faa744aba
commit 29595102b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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; \