Skip to content

Commit 1d74cfc

Browse files
committed
PYTHON-5311 Convert stable api and storage tests to new task pattern
1 parent 448c8e8 commit 1d74cfc

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

.evergreen/generated_configs/variants.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -886,12 +886,12 @@ buildvariants:
886886
# Stable api tests
887887
- name: stable-api-require-v1-rhel8-python3.9-auth
888888
tasks:
889-
- name: "!.replica_set .5.0 .noauth .nossl .sync_async"
890-
- name: "!.replica_set .6.0 .noauth .nossl .sync_async"
891-
- name: "!.replica_set .7.0 .noauth .nossl .sync_async"
892-
- name: "!.replica_set .8.0 .noauth .nossl .sync_async"
893-
- name: "!.replica_set .rapid .noauth .nossl .sync_async"
894-
- name: "!.replica_set .latest .noauth .nossl .sync_async"
889+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
890+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
891+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
892+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
893+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
894+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
895895
display_name: Stable API require v1 RHEL8 Python3.9 Auth
896896
run_on:
897897
- rhel87-small
@@ -903,12 +903,12 @@ buildvariants:
903903
tags: [versionedApi_tag]
904904
- name: stable-api-accept-v2-rhel8-python3.9-auth
905905
tasks:
906-
- name: .standalone .5.0 .noauth .nossl .sync_async
907-
- name: .standalone .6.0 .noauth .nossl .sync_async
908-
- name: .standalone .7.0 .noauth .nossl .sync_async
909-
- name: .standalone .8.0 .noauth .nossl .sync_async
910-
- name: .standalone .rapid .noauth .nossl .sync_async
911-
- name: .standalone .latest .noauth .nossl .sync_async
906+
- name: .standard-linux .server-5.0
907+
- name: .standard-linux .server-6.0
908+
- name: .standard-linux .server-7.0
909+
- name: .standard-linux .server-8.0
910+
- name: .standard-linux .server-rapid
911+
- name: .standard-linux .server-latest
912912
display_name: Stable API accept v2 RHEL8 Python3.9 Auth
913913
run_on:
914914
- rhel87-small
@@ -919,12 +919,12 @@ buildvariants:
919919
tags: [versionedApi_tag]
920920
- name: stable-api-require-v1-rhel8-python3.13-auth
921921
tasks:
922-
- name: "!.replica_set .5.0 .noauth .nossl .sync_async"
923-
- name: "!.replica_set .6.0 .noauth .nossl .sync_async"
924-
- name: "!.replica_set .7.0 .noauth .nossl .sync_async"
925-
- name: "!.replica_set .8.0 .noauth .nossl .sync_async"
926-
- name: "!.replica_set .rapid .noauth .nossl .sync_async"
927-
- name: "!.replica_set .latest .noauth .nossl .sync_async"
922+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
923+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
924+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
925+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
926+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
927+
- name: .standard-linux !.replica_set-noauth-ssl .server-{v}
928928
display_name: Stable API require v1 RHEL8 Python3.13 Auth
929929
run_on:
930930
- rhel87-small
@@ -936,12 +936,12 @@ buildvariants:
936936
tags: [versionedApi_tag]
937937
- name: stable-api-accept-v2-rhel8-python3.13-auth
938938
tasks:
939-
- name: .standalone .5.0 .noauth .nossl .sync_async
940-
- name: .standalone .6.0 .noauth .nossl .sync_async
941-
- name: .standalone .7.0 .noauth .nossl .sync_async
942-
- name: .standalone .8.0 .noauth .nossl .sync_async
943-
- name: .standalone .rapid .noauth .nossl .sync_async
944-
- name: .standalone .latest .noauth .nossl .sync_async
939+
- name: .standard-linux .server-5.0
940+
- name: .standard-linux .server-6.0
941+
- name: .standard-linux .server-7.0
942+
- name: .standard-linux .server-8.0
943+
- name: .standard-linux .server-rapid
944+
- name: .standard-linux .server-latest
945945
display_name: Stable API accept v2 RHEL8 Python3.13 Auth
946946
run_on:
947947
- rhel87-small

.evergreen/scripts/generate_config.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,15 @@ def create_stable_api_variants():
318318
# MONGODB_API_VERSION is the apiVersion to use in the test suite.
319319
expansions["MONGODB_API_VERSION"] = "1"
320320
tasks = [
321-
f"!.replica_set .{v} .noauth .nossl .sync_async" for v in get_versions_from("5.0")
321+
".standard-linux !.replica_set-noauth-ssl .server-{v}"
322+
for v in get_versions_from("5.0")
322323
]
323324
else:
324325
# Test against a cluster with acceptApiVersion2 but without
325326
# requireApiVersion, and don't automatically add apiVersion to
326327
# clients created in the test suite.
327328
expansions["ORCHESTRATION_FILE"] = "versioned-api-testing.json"
328-
tasks = [
329-
f".standalone .{v} .noauth .nossl .sync_async" for v in get_versions_from("5.0")
330-
]
329+
tasks = [f".standard-linux .server-{v}" for v in get_versions_from("5.0")]
331330
base_display_name = f"Stable API {test_type}"
332331
display_name = get_variant_name(base_display_name, host, python=python, **expansions)
333332
variant = create_variant(

0 commit comments

Comments
 (0)