File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ tasks:
108
108
vars :
109
109
TEST_NAME : auth_aws
110
110
SUB_TEST_NAME : eks
111
+ PYTHON_VERSION : " 3.11"
111
112
tags : [auth-aws, auth-aws-eks]
112
113
- name : test-auth-aws-latest-ecs-python3.11
113
114
commands :
@@ -119,6 +120,7 @@ tasks:
119
120
vars :
120
121
TEST_NAME : auth_aws
121
122
SUB_TEST_NAME : ecs
123
+ PYTHON_VERSION : " 3.11"
122
124
tags : [auth-aws, auth-aws-ecs]
123
125
124
126
# Backport pr tests
Original file line number Diff line number Diff line change @@ -765,9 +765,9 @@ def create_aws_tasks():
765
765
for test_type in ["eks" , "ecs" ]:
766
766
tags = ["auth-aws" , f"auth-aws-{ test_type } " ]
767
767
base_name = f"test-auth-aws-latest-{ test_type } "
768
- # Keep this version in sync with the one in "run-aws-container-test.sh".
769
- name = get_task_name (base_name , python = "3.11" )
770
- test_vars = dict (TEST_NAME = "auth_aws" , SUB_TEST_NAME = test_type )
768
+ python = "3.11"
769
+ name = get_task_name (base_name , python = python )
770
+ test_vars = dict (TEST_NAME = "auth_aws" , SUB_TEST_NAME = test_type , PYTHON_VERSION = python )
771
771
test_func = FunctionCall (func = "run tests" , vars = test_vars )
772
772
funcs = [assume_func , test_func ]
773
773
if test_type == "ecs" :
Original file line number Diff line number Diff line change 20
20
set -o xtrace
21
21
22
22
# Install python with pip.
23
- # Keep this version in sync with the one in "generate_config.py".
24
- PYTHON_VER=" python3.11"
23
+ PYTHON_VER=" python3.xx"
25
24
apt-get -qq update < /dev/null > /dev/null
26
25
apt-get -qq install software-properties-common -y < /dev/null > /dev/null # needed for apt-add-repository
27
26
add-apt-repository ppa:deadsnakes/ppa -y || true # this will fail on debian
Original file line number Diff line number Diff line change @@ -163,8 +163,9 @@ def run() -> None:
163
163
if TEST_NAME == "auth_aws" and SUB_TEST_NAME in ["ecs" , "eks" ]:
164
164
target = f"run-mongodb-aws-{ SUB_TEST_NAME } -test.sh"
165
165
text = (HERE / "run-aws-container-test.sh" ).read_text ()
166
+ text = text .replace ("python3.xx" , os .environ ["PYTHON_VERSION" ])
166
167
if SUB_TEST_NAME == "eks" :
167
- text = text .replace ("python3.9" , "python3.11" ). replace ( " ecs" , "eks" )
168
+ text = text .replace ("ecs" , "eks" )
168
169
(HERE .parent / target ).write_text (text )
169
170
run_command (f"{ DRIVERS_TOOLS } /.evergreen/auth_aws/aws_setup.sh { SUB_TEST_NAME } " )
170
171
return
You can’t perform that action at this time.
0 commit comments