Skip to content

Commit

Permalink
Upload logs in run_serverless.sh, too
Browse files Browse the repository at this point in the history
  • Loading branch information
favilo committed Mar 21, 2024
1 parent 8d649fe commit 1e52941
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .buildkite/it/run_serverless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -eo pipefail

source .buildkite/retry.sh

function upload_logs {
echo "--- Upload artifacts"
buildkite-agent artifact upload "${RALLY_HOME}/.rally/logs/*.log"
}

export TERM=dumb
export LC_ALL=en_US.UTF-8
export TZ=Etc/UTC
Expand Down Expand Up @@ -38,6 +43,8 @@ export THESPLOG_FILE_MAXSIZE=${THESPLOG_FILE_MAXSIZE:-204800}
# adjust the default log level from WARNING
export THESPLOG_THRESHOLD="INFO"

trap upload_logs ERR

case $TEST_NAME in
"user")
nox -s it_serverless
Expand All @@ -50,3 +57,5 @@ case $TEST_NAME in
exit 1
;;
esac

upload_logs

0 comments on commit 1e52941

Please sign in to comment.