2021-06-25 01:45:51 +02:00
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
2021-04-28 19:12:09 +02:00
|
|
|
. "$DIR/../prelude.sh"
|
|
|
|
|
|
|
|
cd src
|
|
|
|
|
|
|
|
set -o verbose
|
|
|
|
set -o errexit
|
2022-03-02 21:37:40 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2022-03-21 17:41:16 +01:00
|
|
|
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
|
|
|
|
|
2023-02-20 11:06:36 +01:00
|
|
|
if [[ -n "${alias}" ]]; then
|
|
|
|
evg_alias=${alias}
|
|
|
|
else
|
|
|
|
evg_alias="evg-alias-absent"
|
|
|
|
fi
|
|
|
|
|
2021-04-28 19:12:09 +02:00
|
|
|
activate_venv
|
2022-03-02 21:37:40 +01:00
|
|
|
PATH=$PATH:$HOME:/ $python buildscripts/evergreen_task_timeout.py $timeout_factor \
|
2022-04-08 15:50:25 +02:00
|
|
|
--install-dir "${install_dir}" \
|
2021-04-28 19:12:09 +02:00
|
|
|
--task-name ${task_name} \
|
2022-03-02 21:37:40 +01:00
|
|
|
--suite-name ${suite_name} \
|
2023-01-19 17:21:56 +01:00
|
|
|
--project ${project} \
|
2022-03-21 17:41:16 +01:00
|
|
|
--build-variant $build_variant_for_timeout \
|
2023-02-20 11:06:36 +01:00
|
|
|
--evg-alias $evg_alias \
|
2021-04-28 19:12:09 +02:00
|
|
|
--timeout ${timeout_secs} \
|
|
|
|
--exec-timeout ${exec_timeout_secs} \
|
2022-03-02 21:37:40 +01:00
|
|
|
--evg-api-config ./.evergreen.yml \
|
2022-03-28 06:27:48 +02:00
|
|
|
--evg-project-config ${evergreen_config_file_path} \
|
2021-04-28 19:12:09 +02:00
|
|
|
--out-file task_timeout_expansions.yml
|