Skip to content

Commit 32f7bb5

Browse files
committed
PYTHON-5879 Only run sharded_cluster non-standard tasks on PRs
Previously all three topologies (standalone, replica_set, sharded_cluster) for version=latest were marked pr=True and activated in patch builds. Limiting to sharded_cluster cuts the patch build task count for non-standard variants from 3 topology tasks down to 1 (plus its non-coverage companion for macOS/Win64 encryption variants). Standalone and replica_set tasks for latest still exist for waterfall builds but no longer carry the pr tag.
1 parent 06af4e4 commit 32f7bb5

2 files changed

Lines changed: 4 additions & 56 deletions

File tree

.evergreen/generated_configs/tasks.yml

Lines changed: 2 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4802,32 +4802,6 @@ tasks:
48024802
- python-3.13
48034803
- standalone-noauth-nossl
48044804
- noauth
4805-
- name: test-non-standard-latest-python3.14t-noauth-ssl-replica-set-cov
4806-
commands:
4807-
- func: run server
4808-
vars:
4809-
AUTH: noauth
4810-
SSL: ssl
4811-
TOPOLOGY: replica_set
4812-
VERSION: latest
4813-
COVERAGE: "1"
4814-
- func: run tests
4815-
vars:
4816-
AUTH: noauth
4817-
SSL: ssl
4818-
TOPOLOGY: replica_set
4819-
VERSION: latest
4820-
COVERAGE: "1"
4821-
TOOLCHAIN_VERSION: 3.14t
4822-
tags:
4823-
- test-non-standard
4824-
- server-latest
4825-
- python-3.14t
4826-
- replica_set-noauth-ssl
4827-
- noauth
4828-
- free-threaded
4829-
- pr
4830-
- cov
48314805
- name: test-non-standard-latest-python3.14t-noauth-ssl-replica-set
48324806
commands:
48334807
- func: run server
@@ -4844,13 +4818,12 @@ tasks:
48444818
VERSION: latest
48454819
TOOLCHAIN_VERSION: 3.14t
48464820
tags:
4847-
- test-non-standard-no-cov
4821+
- test-non-standard
48484822
- server-latest
48494823
- python-3.14t
48504824
- replica_set-noauth-ssl
48514825
- noauth
48524826
- free-threaded
4853-
- pr
48544827
- name: test-non-standard-latest-pypy3.11-noauth-ssl-replica-set
48554828
commands:
48564829
- func: run server
@@ -4920,31 +4893,6 @@ tasks:
49204893
- sharded_cluster-auth-ssl
49214894
- auth
49224895
- pr
4923-
- name: test-non-standard-latest-python3.13-noauth-nossl-standalone-cov
4924-
commands:
4925-
- func: run server
4926-
vars:
4927-
AUTH: noauth
4928-
SSL: nossl
4929-
TOPOLOGY: standalone
4930-
VERSION: latest
4931-
COVERAGE: "1"
4932-
- func: run tests
4933-
vars:
4934-
AUTH: noauth
4935-
SSL: nossl
4936-
TOPOLOGY: standalone
4937-
VERSION: latest
4938-
COVERAGE: "1"
4939-
TOOLCHAIN_VERSION: "3.13"
4940-
tags:
4941-
- test-non-standard
4942-
- server-latest
4943-
- python-3.13
4944-
- standalone-noauth-nossl
4945-
- noauth
4946-
- pr
4947-
- cov
49484896
- name: test-non-standard-latest-python3.13-noauth-nossl-standalone
49494897
commands:
49504898
- func: run server
@@ -4961,12 +4909,11 @@ tasks:
49614909
VERSION: latest
49624910
TOOLCHAIN_VERSION: "3.13"
49634911
tags:
4964-
- test-non-standard-no-cov
4912+
- test-non-standard
49654913
- server-latest
49664914
- python-3.13
49674915
- standalone-noauth-nossl
49684916
- noauth
4969-
- pr
49704917
- name: test-non-standard-rapid-python3.11-noauth-ssl-replica-set
49714918
commands:
49724919
- func: run server

.evergreen/scripts/generate_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,9 @@ def create_test_non_standard_tasks():
648648
tasks = []
649649
task_combos = set()
650650
# For each version and topology, rotate through the CPythons.
651+
# Only the sharded_cluster topology runs on PRs to keep patch build size manageable.
651652
for (version, topology), python in zip_cycle(list(product(ALL_VERSIONS, TOPOLOGIES)), CPYTHONS):
652-
pr = version == "latest"
653+
pr = version == "latest" and topology == "sharded_cluster"
653654
task_combos.add((version, topology, python, pr))
654655
# For each PyPy and topology, rotate through the MongoDB versions.
655656
for (python, topology), version in zip_cycle(list(product(PYPYS, TOPOLOGIES)), ALL_VERSIONS):

0 commit comments

Comments
 (0)