Skip to content

Commit 718d9df

Browse files
committed
create tasks
1 parent 0dadf4e commit 718d9df

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.evergreen/scripts/generate_config.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
create_variant,
2323
get_assume_role,
2424
get_s3_put,
25+
get_standard_auth_ssl,
2526
get_subprocess_exec,
2627
get_task_name,
2728
get_variant_name,
@@ -617,8 +618,7 @@ def create_other_hosts_tasks():
617618
tasks = []
618619

619620
for topology in TOPOLOGIES:
620-
auth = "auth" if topology == "sharded_cluster" else "noauth"
621-
ssl = "nossl" if topology == "standalone" else "ssl"
621+
auth, ssl = get_standard_auth_ssl(topology)
622622
tags = [
623623
"other-hosts",
624624
f"{topology}-{auth}-{ssl}",
@@ -638,8 +638,7 @@ def create_standard_linux_tasks():
638638
for (version, topology), python in zip_cycle(
639639
list(product(ALL_VERSIONS, TOPOLOGIES)), ALL_PYTHONS
640640
):
641-
auth = "auth" if topology == "sharded_cluster" else "noauth"
642-
ssl = "nossl" if topology == "standalone" else "ssl"
641+
auth, ssl = get_standard_auth_ssl(topology)
643642
tags = [
644643
"standard-linux",
645644
f"server-{version}",
@@ -662,8 +661,7 @@ def create_standard_non_linux_tasks():
662661
for (version, topology), python, sync in zip_cycle(
663662
list(product(ALL_VERSIONS, TOPOLOGIES)), CPYTHONS, SYNCS
664663
):
665-
auth = "auth" if topology == "sharded_cluster" else "noauth"
666-
ssl = "nossl" if topology == "standalone" else "ssl"
664+
auth, ssl = get_standard_auth_ssl(topology)
667665
tags = [
668666
"standard-non-linux",
669667
f"server-{version}",

.evergreen/scripts/generate_config_utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ def handle_c_ext(c_ext, expansions) -> None:
239239
expansions["NO_EXT"] = "1"
240240

241241

242+
def get_standard_auth_ssl(topology):
243+
auth = "auth" if topology == "sharded_cluster" else "noauth"
244+
ssl = "nossl" if topology == "standalone" else "ssl"
245+
return auth, ssl
246+
247+
242248
def get_assume_role(**kwargs):
243249
kwargs.setdefault("command_type", EvgCommandType.SETUP)
244250
kwargs.setdefault("role_arn", "${assume_role_arn}")

0 commit comments

Comments
 (0)