Skip to content

Commit 5659c68

Browse files
committed
PYTHON-5321 Remove Serverless testing
1 parent 454c163 commit 5659c68

File tree

4 files changed

+0
-63
lines changed

4 files changed

+0
-63
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,16 +3060,6 @@ tasks:
30603060
- sharded_cluster-auth-ssl
30613061
- sync
30623062

3063-
# Serverless tests
3064-
- name: test-serverless
3065-
commands:
3066-
- func: run tests
3067-
vars:
3068-
TEST_NAME: serverless
3069-
AUTH: auth
3070-
SSL: ssl
3071-
tags: [serverless]
3072-
30733063
# Standard tests
30743064
- name: test-standard-v4.0-python3.9-sync-noauth-nossl-standalone
30753065
commands:

.evergreen/generated_configs/variants.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -586,26 +586,6 @@ buildvariants:
586586
- rhel87-small
587587
tags: [coverage_tag]
588588

589-
# Serverless tests
590-
- name: serverless-rhel8-python3.9
591-
tasks:
592-
- name: .serverless
593-
display_name: Serverless RHEL8 Python3.9
594-
run_on:
595-
- rhel87-small
596-
batchtime: 10080
597-
expansions:
598-
PYTHON_BINARY: /opt/python/3.9/bin/python3
599-
- name: serverless-rhel8-python3.13
600-
tasks:
601-
- name: .serverless
602-
display_name: Serverless RHEL8 Python3.13
603-
run_on:
604-
- rhel87-small
605-
batchtime: 10080
606-
expansions:
607-
PYTHON_BINARY: /opt/python/3.13/bin/python3
608-
609589
# Stable api tests
610590
- name: stable-api-require-v1-rhel8-auth
611591
tasks:

.evergreen/scripts/generate_config.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -352,23 +352,6 @@ def create_disable_test_commands_variants():
352352
return [create_variant(tasks, display_name, host=host, python=python, expansions=expansions)]
353353

354354

355-
def create_serverless_variants():
356-
host = DEFAULT_HOST
357-
batchtime = BATCHTIME_WEEK
358-
tasks = [".serverless"]
359-
base_name = "Serverless"
360-
return [
361-
create_variant(
362-
tasks,
363-
get_variant_name(base_name, host, python=python),
364-
host=host,
365-
python=python,
366-
batchtime=batchtime,
367-
)
368-
for python in MIN_MAX_PYTHON
369-
]
370-
371-
372355
def create_oidc_auth_variants():
373356
variants = []
374357
for host_name in ["ubuntu22", "macos", "win64"]:
@@ -968,14 +951,6 @@ def create_free_threading_tasks():
968951
return [EvgTask(name=task_name, tags=tags, commands=[server_func, test_func])]
969952

970953

971-
def create_serverless_tasks():
972-
vars = dict(TEST_NAME="serverless", AUTH="auth", SSL="ssl")
973-
test_func = FunctionCall(func="run tests", vars=vars)
974-
tags = ["serverless"]
975-
task_name = "test-serverless"
976-
return [EvgTask(name=task_name, tags=tags, commands=[test_func])]
977-
978-
979954
##############
980955
# Functions
981956
##############

.evergreen/scripts/setup_tests.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,6 @@ def handle_test_env() -> None:
229229
config = read_env(f"{DRIVERS_TOOLS}/.evergreen/atlas_data_lake/secrets-export.sh")
230230
DB_USER = config["ADL_USERNAME"]
231231
DB_PASSWORD = config["ADL_PASSWORD"]
232-
elif test_name == "serverless":
233-
run_command(f"bash {DRIVERS_TOOLS}/.evergreen/serverless/setup.sh")
234-
config = read_env(f"{DRIVERS_TOOLS}/.evergreen/serverless/secrets-export.sh")
235-
DB_USER = config["SERVERLESS_ATLAS_USER"]
236-
DB_PASSWORD = config["SERVERLESS_ATLAS_PASSWORD"]
237-
write_env("MONGODB_URI", config["SERVERLESS_URI"])
238-
write_env("SINGLE_MONGOS_LB_URI", config["SERVERLESS_URI"])
239-
write_env("MULTI_MONGOS_LB_URI", config["SERVERLESS_URI"])
240232
elif test_name == "auth_oidc":
241233
DB_USER = config["OIDC_ADMIN_USER"]
242234
DB_PASSWORD = config["OIDC_ADMIN_PWD"]

0 commit comments

Comments
 (0)