diff options
author | David Bradford <david.bradford@mongodb.com> | 2022-03-02 15:37:40 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-04 15:20:51 +0000 |
commit | 0a079df588d9d9ecdfd6898a74b65526bcb339a6 (patch) | |
tree | 95f30c9f25c529bb2be90b900d67796e72f6db32 /evergreen/functions | |
parent | 1e72f6d25e104142707169aef1fe71ac6ef0ab3c (diff) | |
download | mongo-0a079df588d9d9ecdfd6898a74b65526bcb339a6.tar.gz |
SERVER-63827: Determine task timeout at the start of task execution
Diffstat (limited to 'evergreen/functions')
-rw-r--r-- | evergreen/functions/task_timeout_determine.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/evergreen/functions/task_timeout_determine.sh b/evergreen/functions/task_timeout_determine.sh index 645aedbc302..f63416b2374 100644 --- a/evergreen/functions/task_timeout_determine.sh +++ b/evergreen/functions/task_timeout_determine.sh @@ -5,11 +5,25 @@ cd src set -o verbose set -o errexit + +# Set the suite name to be the task name by default; unless overridden with the `suite` expansion. +suite_name=${task_name} +if [[ -n ${suite} ]]; then + suite_name=${suite} +fi + +timeout_factor="" +if [[ -n "${exec_timeout_factor}" ]]; then + timeout_factor="--exec-timeout-factor ${exec_timeout_factor}" +fi + activate_venv -$python buildscripts/evergreen_task_timeout.py \ +PATH=$PATH:$HOME:/ $python buildscripts/evergreen_task_timeout.py $timeout_factor \ --task-name ${task_name} \ + --suite-name ${suite_name} \ --build-variant ${build_variant} \ --evg-alias '${alias}' \ --timeout ${timeout_secs} \ --exec-timeout ${exec_timeout_secs} \ + --evg-api-config ./.evergreen.yml \ --out-file task_timeout_expansions.yml |