Various CI savings (#8291)
This commit is contained in:
committed by
GitHub
parent
299e5000a4
commit
9af99760d4
15
tests/buildkite/enforce_daily_budget.sh
Executable file
15
tests/buildkite/enforce_daily_budget.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo "--- Enforce daily budget"
|
||||
|
||||
source tests/buildkite/conftest.sh
|
||||
|
||||
if [[ $is_release_branch == 1 ]]
|
||||
then
|
||||
echo "Automatically approving all test jobs for release branches"
|
||||
else
|
||||
aws lambda invoke --function-name XGBoostCICostWatcher --invocation-type RequestResponse --region us-west-2 response.json
|
||||
python3 tests/buildkite/enforce_daily_budget.py --response response.json
|
||||
fi
|
||||
Reference in New Issue
Block a user