summaryrefslogtreecommitdiff
path: root/evergreen
diff options
context:
space:
mode:
authorDavid Bradford <david.bradford@mongodb.com>2022-03-21 16:41:16 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-21 17:12:38 +0000
commit8b556c8ac51c29b612f8f167f84ed3898ce0e80b (patch)
treeccd3c1da9c74a9ccfdb1ef63bd73a39c2b488126 /evergreen
parent3bdf25eb7321aac652127c6021dd8a3178d71d38 (diff)
downloadmongo-8b556c8ac51c29b612f8f167f84ed3898ce0e80b.tar.gz
SERVER-64436 Use burn_in_tags variant for timeouts on burn_in_tags generated tasks
Diffstat (limited to 'evergreen')
-rw-r--r--evergreen/functions/task_timeout_determine.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/evergreen/functions/task_timeout_determine.sh b/evergreen/functions/task_timeout_determine.sh
index f63416b2374..853b2ff49d9 100644
--- a/evergreen/functions/task_timeout_determine.sh
+++ b/evergreen/functions/task_timeout_determine.sh
@@ -17,11 +17,19 @@ if [[ -n "${exec_timeout_factor}" ]]; then
timeout_factor="--exec-timeout-factor ${exec_timeout_factor}"
fi
+build_variant_for_timeout=${build_variant}
+if [[ -n "${burn_in_bypass}" ]]; then
+ # burn_in_tags may generate new build variants, if we are running on one of those build variants
+ # we should use the build variant it is based on for determining the timeout. This is stored in
+ # the `burn_in_bypass` expansion.
+ build_variant_for_timeout=${burn_in_bypass}
+fi
+
activate_venv
PATH=$PATH:$HOME:/ $python buildscripts/evergreen_task_timeout.py $timeout_factor \
--task-name ${task_name} \
--suite-name ${suite_name} \
- --build-variant ${build_variant} \
+ --build-variant $build_variant_for_timeout \
--evg-alias '${alias}' \
--timeout ${timeout_secs} \
--exec-timeout ${exec_timeout_secs} \