Skip to content

Commit 7cd0d18

Browse files
authored
Merge branch 'master' into better-comparison-assertions
2 parents ac4b003 + 0cb4b2f commit 7cd0d18

File tree

112 files changed

+2545
-1952
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+2545
-1952
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 235 additions & 418 deletions
Large diffs are not rendered by default.

.evergreen/generated_configs/variants.yml

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ buildvariants:
146146
COMPRESSOR: zlib
147147
- name: compression-zstd-rhel8
148148
tasks:
149-
- name: .test-standard !.server-4.0
149+
- name: .test-standard !.server-4.2
150150
display_name: Compression zstd RHEL8
151151
run_on:
152152
- rhel87-small
@@ -522,13 +522,6 @@ buildvariants:
522522
PYTHON_BINARY: /opt/python/3.9/bin/python3
523523

524524
# Server version tests
525-
- name: mongodb-v4.0
526-
tasks:
527-
- name: .server-version
528-
display_name: "* MongoDB v4.0"
529-
run_on:
530-
- rhel87-small
531-
tags: [coverage_tag]
532525
- name: mongodb-v4.2
533526
tasks:
534527
- name: .server-version
@@ -586,26 +579,6 @@ buildvariants:
586579
- rhel87-small
587580
tags: [coverage_tag]
588581

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-
609582
# Stable api tests
610583
- name: stable-api-require-v1-rhel8-auth
611584
tasks:
@@ -684,11 +657,3 @@ buildvariants:
684657
- rhel87-small
685658
expansions:
686659
STORAGE_ENGINE: inmemory
687-
- name: storage-mmapv1-rhel8
688-
tasks:
689-
- name: .test-standard !.sharded_cluster-auth-ssl .server-4.0
690-
display_name: Storage MMAPv1 RHEL8
691-
run_on:
692-
- rhel87-small
693-
expansions:
694-
STORAGE_ENGINE: mmapv1

.evergreen/resync-specs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ do
131131
gridfs)
132132
cpjson gridfs/tests gridfs
133133
;;
134+
handshake)
135+
cpjson mongodb-handshake/tests handshake
136+
;;
134137
index|index-management)
135138
cpjson index-management/tests index_management
136139
;;

.evergreen/scripts/generate_config.py

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
get_task_name,
2626
get_variant_name,
2727
get_versions_from,
28-
get_versions_until,
2928
handle_c_ext,
3029
write_functions_to_file,
3130
write_tasks_to_file,
@@ -196,7 +195,7 @@ def create_compression_variants():
196195
for compressor in "snappy", "zlib", "zstd":
197196
expansions = dict(COMPRESSOR=compressor)
198197
if compressor == "zstd":
199-
tasks = [".test-standard !.server-4.0"]
198+
tasks = [".test-standard !.server-4.2"]
200199
else:
201200
tasks = [".test-standard"]
202201
display_name = get_variant_name(f"Compression {compressor}", host)
@@ -249,16 +248,11 @@ def create_pyopenssl_variants():
249248

250249
def create_storage_engine_variants():
251250
host = DEFAULT_HOST
252-
engines = ["InMemory", "MMAPv1"]
251+
engines = ["InMemory"]
253252
variants = []
254253
for engine in engines:
255254
expansions = dict(STORAGE_ENGINE=engine.lower())
256-
if engine == engines[0]:
257-
tasks = [".test-standard .standalone-noauth-nossl"]
258-
else:
259-
# MongoDB 4.2 drops support for MMAPv1
260-
versions = get_versions_until("4.0")
261-
tasks = [f".test-standard !.sharded_cluster-auth-ssl .server-{v}" for v in versions]
255+
tasks = [".test-standard .standalone-noauth-nossl"]
262256
display_name = get_variant_name(f"Storage {engine}", host)
263257
variant = create_variant(tasks, display_name, host=host, expansions=expansions)
264258
variants.append(variant)
@@ -352,23 +346,6 @@ def create_disable_test_commands_variants():
352346
return [create_variant(tasks, display_name, host=host, python=python, expansions=expansions)]
353347

354348

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-
372349
def create_oidc_auth_variants():
373350
variants = []
374351
for host_name in ["ubuntu22", "macos", "win64"]:
@@ -920,7 +897,8 @@ def create_backport_pr_tasks():
920897
"${github_commit}",
921898
]
922899
cmd = get_subprocess_exec(args=args)
923-
return [EvgTask(name=name, commands=[cmd], allowed_requesters=["commit"])]
900+
assume_func = FunctionCall(func="assume ec2 role")
901+
return [EvgTask(name=name, commands=[assume_func, cmd], allowed_requesters=["commit"])]
924902

925903

926904
def create_ocsp_tasks():
@@ -968,14 +946,6 @@ def create_free_threading_tasks():
968946
return [EvgTask(name=task_name, tags=tags, commands=[server_func, test_func])]
969947

970948

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-
979949
##############
980950
# Functions
981951
##############

.evergreen/scripts/generate_config_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Globals
2222
##############
2323

24-
ALL_VERSIONS = ["4.0", "4.2", "4.4", "5.0", "6.0", "7.0", "8.0", "rapid", "latest"]
24+
ALL_VERSIONS = ["4.2", "4.4", "5.0", "6.0", "7.0", "8.0", "rapid", "latest"]
2525
CPYTHONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
2626
PYPYS = ["pypy3.10"]
2727
ALL_PYTHONS = CPYTHONS + PYPYS

.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"]

.evergreen/scripts/teardown_tests.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
elif TEST_NAME == "ocsp":
3737
run_command(f"bash {DRIVERS_TOOLS}/.evergreen/ocsp/teardown.sh")
3838

39-
# Tear down serverless if applicable.
40-
elif TEST_NAME == "serverless":
41-
run_command(f"bash {DRIVERS_TOOLS}/.evergreen/serverless/teardown.sh")
42-
4339
# Tear down atlas cluster if applicable.
4440
if TEST_NAME in ["aws_lambda", "search_index"]:
4541
run_command(f"bash {DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh")

.evergreen/scripts/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class Distro:
4545
"mockupdb": "mockupdb",
4646
"ocsp": "ocsp",
4747
"perf": "perf",
48-
"serverless": "",
4948
}
5049

5150
# Tests that require a sub test suite.
@@ -60,7 +59,6 @@ class Distro:
6059
"aws_lambda",
6160
"data_lake",
6261
"mockupdb",
63-
"serverless",
6462
"ocsp",
6563
]
6664

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @mongodb/dbx-python

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3
49+
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
5050
with:
5151
languages: ${{ matrix.language }}
5252
build-mode: ${{ matrix.build-mode }}
@@ -63,6 +63,6 @@ jobs:
6363
pip install -e .
6464
6565
- name: Perform CodeQL Analysis
66-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3
66+
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
6767
with:
6868
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)