Skip to content

Commit 6de109d

Browse files
committed
cleanup
1 parent 3e24168 commit 6de109d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ tasks:
101101
AWS_ROLE_SESSION_NAME: test
102102
PYTHON_VERSION: "3.9"
103103
tags: [auth-aws, auth-aws-web-identity]
104-
- name: test-auth-aws-latest-ecs-python3.10
104+
- name: test-auth-aws-latest-ecs
105105
commands:
106106
- func: run server
107107
vars:
@@ -112,20 +112,16 @@ tasks:
112112
vars:
113113
TEST_NAME: auth_aws
114114
SUB_TEST_NAME: ecs
115-
PYTHON_VERSION: "3.10"
115+
PYTHON_VERSION: null
116116
tags: [auth-aws, auth-aws-ecs]
117-
- name: test-auth-aws-4.4-eks-python3.11
117+
- name: test-auth-aws-4.4-eks
118118
commands:
119-
- func: run server
120-
vars:
121-
AUTH_AWS: "1"
122-
VERSION: "4.4"
123119
- func: assume ec2 role
124120
- func: run tests
125121
vars:
126122
TEST_NAME: auth_aws
127123
SUB_TEST_NAME: eks
128-
PYTHON_VERSION: "3.11"
124+
PYTHON_VERSION: null
129125
tags: [auth-aws, auth-aws-eks]
130126

131127
# Backport pr tests

.evergreen/scripts/generate_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,10 +753,14 @@ def create_aws_tasks():
753753
server_func = FunctionCall(func="run server", vars=server_vars)
754754
assume_func = FunctionCall(func="assume ec2 role")
755755
tags = [*base_tags, f"auth-aws-{test_type}"]
756+
if test_type in ["eks", "ecs"]:
757+
python = None # noqa:PLW2901
756758
name = get_task_name(f"{base_name}-{test_type}", python=python)
757759
test_vars = dict(TEST_NAME="auth_aws", SUB_TEST_NAME=test_type, PYTHON_VERSION=python)
758760
test_func = FunctionCall(func="run tests", vars=test_vars)
759761
funcs = [server_func, assume_func, test_func]
762+
if test_type == "eks":
763+
funcs = [assume_func, test_func]
760764
tasks.append(EvgTask(name=name, tags=tags, commands=funcs))
761765

762766
if test_type == "web-identity":

.evergreen/scripts/generate_config_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def get_common_name(base: str, sep: str, **kwargs) -> str:
197197
display_name = f"{display_name}{sep}{version}"
198198
for key, value in kwargs.items():
199199
name = value
200-
if key.lower() == "python":
200+
if key.lower() == "python" and value is not None:
201201
if not value.startswith("pypy"):
202202
name = f"Python{value}"
203203
else:

0 commit comments

Comments
 (0)