From 8d8b6eeed9c32c29f267f7887219daa12f16df34 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 17 Oct 2024 09:17:02 -0500 Subject: [PATCH] Address warnings in evergreen config (#526) --- .evergreen/config.yml | 18 +++++++++--------- .evergreen/download-mongodb.sh | 3 +-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index c0a0bf8c..2c3beb17 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -992,7 +992,7 @@ task_groups: setup_group_can_fail_task: true setup_group_timeout_secs: 1800 # 30 minutes teardown_task_can_fail_task: true - teardown_group_timeout_secs: 1800 # 30 minutes + teardown_group_timeout_secs: 180 # 3 minutes (maximum allowed) setup_group: - func: "fetch and prepare resources" - command: subprocess.exec @@ -1018,7 +1018,7 @@ task_groups: setup_group_can_fail_task: true setup_group_timeout_secs: 1800 # 30 minutes teardown_task_can_fail_task: true - teardown_group_timeout_secs: 1800 # 30 minutes + teardown_group_timeout_secs: 180 # 3 minutes (maximum allowed) setup_group: - func: "fetch and prepare resources" - command: subprocess.exec @@ -1050,7 +1050,7 @@ task_groups: setup_group_can_fail_task: true setup_group_timeout_secs: 1800 teardown_task_can_fail_task: true - teardown_group_timeout_secs: 1800 # 30 minutes + teardown_group_timeout_secs: 180 # 3 minutes (maximum allowed) setup_group: - func: "fetch and prepare resources" - command: shell.exec @@ -1079,9 +1079,9 @@ task_groups: - name: testgcpoidc_task_group setup_group_can_fail_task: true - setup_group_timeout_secs: 1800 + setup_group_timeout_secs: 1800 # 30 minutes teardown_task_can_fail_task: true - teardown_group_timeout_secs: 1800 # 30 minutes + teardown_group_timeout_secs: 180 # 3 minutes (maximum allowed) setup_group: - func: "fetch and prepare resources" - command: shell.exec @@ -1111,8 +1111,8 @@ task_groups: - name: test_oidc_azure_func_task_group setup_group_can_fail_task: true setup_group_timeout_secs: 1800 - teardown_group_can_fail_task: true - teardown_group_timeout_secs: 1800 + teardown_task_can_fail_task: true + teardown_group_timeout_secs: 180 # 3 minutes (maximum allowed) setup_group: - func: "fetch and prepare resources" - command: subprocess.exec @@ -1137,7 +1137,7 @@ task_groups: setup_group_can_fail_task: true setup_group_timeout_secs: 1800 teardown_task_can_fail_task: true - teardown_group_timeout_secs: 1800 # 30 minutes + teardown_group_timeout_secs: 180 # 3 minutes (maximum allowed) setup_group: - func: "fetch and prepare resources" - command: subprocess.exec @@ -1162,7 +1162,7 @@ task_groups: setup_group_can_fail_task: true setup_group_timeout_secs: 1800 teardown_task_can_fail_task: true - teardown_group_timeout_secs: 1800 # 30 minutes + teardown_group_timeout_secs: 180 # 3 minutes (maximum allowed) setup_group: - func: "fetch and prepare resources" - command: subprocess.exec diff --git a/.evergreen/download-mongodb.sh b/.evergreen/download-mongodb.sh index 9f247813..f7abce55 100755 --- a/.evergreen/download-mongodb.sh +++ b/.evergreen/download-mongodb.sh @@ -579,8 +579,7 @@ get_mongodb_download_url_for () # Get the download url for the latest MongoSH. # shellcheck disable=SC3028 _script_dir="$(dirname ${BASH_SOURCE:-$0})" - . ${_script_dir}/find-python3.sh - _python3=$(ensure_python3 2>/dev/null) + _python3=$(bash -c ". $_script_dir/find-python3.sh && ensure_python3 2>/dev/null") MONGOSH_DOWNLOAD_URL=$($_python3 "${_script_dir}/mongosh-dl.py" --no-download | tr -d '\r') case "$_VERSION" in