More CI improvements (#8313)

* Reduce clutter in log of Python test

* Set up BuildKite test analytics

* Add separate step for building containers

* Enable incremental update of CI stack; custom agent IAM policy
This commit is contained in:
Philip Hyunsu Cho
2022-10-06 06:33:46 -08:00
committed by GitHub
parent bc7a6ec603
commit 50ff8a2623
11 changed files with 230 additions and 32 deletions

View File

@@ -1,6 +1,25 @@
#!/bin/bash
set -euo pipefail
function get_aws_secret {
if [[ $# -ne 1 ]]
then
echo "Usage: get_aws_secret [Name of secret]"
return 1
fi
aws secretsmanager get-secret-value --secret-id $1 --output text --region us-west-2 --query SecretString
}
function set_buildkite_env_vars_in_container {
# Pass all Buildkite-specific env vars to Docker containers.
# This is to be used with tests/ci_build/ci_build.sh
export CI_DOCKER_EXTRA_PARAMS_INIT="${CI_DOCKER_EXTRA_PARAMS_INIT:-} "`
`"--env BUILDKITE_ANALYTICS_TOKEN --env BUILDKITE_BUILD_ID --env BUILDKITE_BUILD_NUMBER "`
`"--env BUILDKITE_JOB_ID --env BUILDKITE_BRANCH --env BUILDKITE_COMMIT "`
`"--env BUILDKITE_MESSAGE --env BUILDKITE_BUILD_URL"
}
set -x
CUDA_VERSION=11.0.3