Skip to content

Commit 9d0d0d7

Browse files
committed
Revert "clean up aws tasks"
This reverts commit 3ce2dad.
1 parent 3df4ce0 commit 9d0d0d7

File tree

3 files changed

+34
-22
lines changed

3 files changed

+34
-22
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,33 @@ tasks:
8787
SUB_TEST_NAME: web-identity
8888
PYTHON_VERSION: "3.9"
8989
tags: [auth-aws, auth-aws-web-identity]
90-
- name: test-auth-aws-latest-web-identity-session-name-python3.10
90+
- name: test-auth-aws-rapid-web-identity-session-name-python3.9
9191
commands:
9292
- func: run server
9393
vars:
9494
AUTH_AWS: "1"
95-
VERSION: latest
95+
VERSION: rapid
9696
- func: assume ec2 role
9797
- func: run tests
9898
vars:
9999
TEST_NAME: auth_aws
100100
SUB_TEST_NAME: web-identity
101-
PYTHON_VERSION: "3.10"
102101
AWS_ROLE_SESSION_NAME: test
102+
PYTHON_VERSION: "3.9"
103103
tags: [auth-aws, auth-aws-web-identity]
104+
- name: test-auth-aws-latest-regular-python3.10
105+
commands:
106+
- func: run server
107+
vars:
108+
AUTH_AWS: "1"
109+
VERSION: latest
110+
- func: assume ec2 role
111+
- func: run tests
112+
vars:
113+
TEST_NAME: auth_aws
114+
SUB_TEST_NAME: regular
115+
PYTHON_VERSION: "3.10"
116+
tags: [auth-aws, auth-aws-regular]
104117
- name: test-auth-aws-eks
105118
commands:
106119
- func: assume ec2 role

.evergreen/generated_configs/variants.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,9 @@ buildvariants:
8989
tags: [pr]
9090

9191
# Aws auth tests
92-
- name: auth-aws-ubuntu-20
93-
tasks:
94-
- name: .auth-aws !.auth-aws-ecs !.auth-aws-eks
95-
display_name: Auth AWS Ubuntu-20
96-
run_on:
97-
- ubuntu2004-small
98-
tags: []
9992
- name: auth-aws-ubuntu-22
10093
tasks:
101-
- name: .auth-aws !.server-4.4 !.server-5.0
94+
- name: .auth-aws
10295
display_name: Auth AWS Ubuntu-22
10396
run_on:
10497
- ubuntu2204-small

.evergreen/scripts/generate_config.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -483,18 +483,17 @@ def create_perf_variants():
483483
def create_aws_auth_variants():
484484
variants = []
485485

486-
for host_name in ["ubuntu20", "ubuntu22", "win64", "macos"]:
486+
for host_name in ["ubuntu22", "win64", "macos"]:
487487
expansions = dict()
488+
tasks = [".auth-aws"]
488489
tags = []
489490
if host_name == "macos":
490491
tasks = [
491492
".auth-aws !.auth-aws-web-identity !.auth-aws-ecs !.auth-aws-ec2 !.auth-aws-eks"
492493
]
493494
tags = ["pr"]
494-
elif host_name in ["win64", "ubuntu20"]:
495+
elif host_name == "win64":
495496
tasks = [".auth-aws !.auth-aws-ecs !.auth-aws-eks"]
496-
elif host_name == "ubuntu22":
497-
tasks = [".auth-aws !.server-4.4 !.server-5.0"]
498497
host = HOSTS[host_name]
499498
variant = create_variant(
500499
tasks,
@@ -744,27 +743,34 @@ def create_aws_tasks():
744743
"env-creds",
745744
"session-creds",
746745
"web-identity",
747-
"web-identity-session-name",
748746
]
749747
base_tags = ["auth-aws"]
750748
assume_func = FunctionCall(func="assume ec2 role")
751749

752750
for version, test_type, python in zip_cycle(get_versions_from("4.4"), aws_test_types, CPYTHONS):
753751
base_name = f"test-auth-aws-{version}"
754-
name = get_task_name(f"{base_name}-{test_type}", python=python)
755-
orig_test_type = test_type
756-
if test_type == "web-identity-session-name":
757-
test_type = "web-identity" # noqa:PLW2901
758752
tags = [*base_tags, f"auth-aws-{test_type}"]
753+
name = get_task_name(f"{base_name}-{test_type}", python=python)
759754
test_vars = dict(TEST_NAME="auth_aws", SUB_TEST_NAME=test_type, PYTHON_VERSION=python)
760-
if orig_test_type == "web-identity-session-name":
761-
test_vars["AWS_ROLE_SESSION_NAME"] = "test"
762755
test_func = FunctionCall(func="run tests", vars=test_vars)
763756
server_vars = dict(AUTH_AWS="1", VERSION=version)
764757
server_func = FunctionCall(func="run server", vars=server_vars)
765758
funcs = [server_func, assume_func, test_func]
766759
tasks.append(EvgTask(name=name, tags=tags, commands=funcs))
767760

761+
if test_type == "web-identity":
762+
tags = [*base_tags, "auth-aws-web-identity"]
763+
name = get_task_name(f"{base_name}-web-identity-session-name", python=python)
764+
test_vars = dict(
765+
TEST_NAME="auth_aws",
766+
SUB_TEST_NAME="web-identity",
767+
AWS_ROLE_SESSION_NAME="test",
768+
PYTHON_VERSION=python,
769+
)
770+
test_func = FunctionCall(func="run tests", vars=test_vars)
771+
funcs = [server_func, assume_func, test_func]
772+
tasks.append(EvgTask(name=name, tags=tags, commands=funcs))
773+
768774
for test_type in ["eks", "ecs"]:
769775
name = get_task_name(f"test-auth-aws-{test_type}")
770776
tags = [*base_tags, f"auth-aws-{test_type}"]

0 commit comments

Comments
 (0)