Skip to content

Commit 9bd25fb

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver
2 parents dbf2bda + e6e8650 commit 9bd25fb

15 files changed

+614
-114
lines changed

.evergreen/config.yml

Lines changed: 51 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -267,28 +267,6 @@ functions:
267267
binary: bash
268268
args: [.evergreen/just.sh, run-tests]
269269

270-
"run enterprise auth tests":
271-
- command: subprocess.exec
272-
type: test
273-
params:
274-
binary: bash
275-
working_dir: "src"
276-
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "PYTHON_BINARY"]
277-
args:
278-
- .evergreen/scripts/run-with-env.sh
279-
- .evergreen/scripts/run-enterprise-auth-tests.sh
280-
281-
"run atlas tests":
282-
- command: subprocess.exec
283-
type: test
284-
params:
285-
binary: bash
286-
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "PYTHON_BINARY"]
287-
working_dir: "src"
288-
args:
289-
- .evergreen/scripts/run-with-env.sh
290-
- .evergreen/scripts/run-atlas-tests.sh
291-
292270
"cleanup":
293271
- command: subprocess.exec
294272
params:
@@ -343,6 +321,7 @@ functions:
343321
params:
344322
working_dir: "src"
345323
binary: bash
324+
include_expansions_in_env: [SUB_TEST_NAME]
346325
args:
347326
- .evergreen/scripts/run-with-env.sh
348327
- .evergreen/scripts/run-perf-tests.sh
@@ -422,13 +401,6 @@ tasks:
422401
- func: "run server"
423402
- func: "run doctests"
424403

425-
- name: "test-enterprise-auth"
426-
tags: ["enterprise-auth"]
427-
commands:
428-
- func: "run server"
429-
- func: "assume ec2 role"
430-
- func: "run enterprise auth tests"
431-
432404
- name: "test-search-index-helpers"
433405
commands:
434406
- func: "run server"
@@ -488,12 +460,6 @@ tasks:
488460
TOPOLOGY: "replica_set"
489461
- func: "run tests"
490462

491-
- name: "atlas-connect"
492-
tags: ["atlas-connect"]
493-
commands:
494-
- func: "assume ec2 role"
495-
- func: "run atlas tests"
496-
497463
- name: atlas-data-lake-tests
498464
commands:
499465
- func: "bootstrap data lake"
@@ -547,6 +513,8 @@ tasks:
547513
vars:
548514
VERSION: "v6.0-perf"
549515
- func: "run perf tests"
516+
vars:
517+
SUB_TEST_NAME: "sync"
550518
- func: "attach benchmark test results"
551519
- func: "send dashboard data"
552520

@@ -558,6 +526,8 @@ tasks:
558526
VERSION: "v6.0-perf"
559527
SSL: "ssl"
560528
- func: "run perf tests"
529+
vars:
530+
SUB_TEST_NAME: "sync"
561531
- func: "attach benchmark test results"
562532
- func: "send dashboard data"
563533

@@ -568,9 +538,52 @@ tasks:
568538
vars:
569539
VERSION: "8.0"
570540
- func: "run perf tests"
541+
vars:
542+
SUB_TEST_NAME: "sync"
571543
- func: "attach benchmark test results"
572544
- func: "send dashboard data"
573545

546+
- name: "perf-6.0-standalone-async"
547+
tags: [ "perf" ]
548+
commands:
549+
- func: "run server"
550+
vars:
551+
VERSION: "v6.0-perf"
552+
TOPOLOGY: "server"
553+
- func: "run perf tests"
554+
vars:
555+
SUB_TEST_NAME: "async"
556+
- func: "attach benchmark test results"
557+
- func: "send dashboard data"
558+
559+
- name: "perf-6.0-standalone-ssl-async"
560+
tags: [ "perf" ]
561+
commands:
562+
- func: "run server"
563+
vars:
564+
VERSION: "v6.0-perf"
565+
TOPOLOGY: "server"
566+
SSL: "ssl"
567+
- func: "run perf tests"
568+
vars:
569+
SUB_TEST_NAME: "async"
570+
- func: "attach benchmark test results"
571+
- func: "send dashboard data"
572+
573+
- name: "perf-8.0-standalone-async"
574+
tags: [ "perf" ]
575+
commands:
576+
- func: "run server"
577+
vars:
578+
VERSION: "8.0"
579+
TOPOLOGY: "server"
580+
- func: "run perf tests"
581+
vars:
582+
SUB_TEST_NAME: "async"
583+
- func: "attach benchmark test results"
584+
- func: "send dashboard data"
585+
586+
574587
- name: "check-import-time"
575588
tags: ["pr"]
576589
commands:
@@ -651,17 +664,6 @@ buildvariants:
651664
- name: "perf-6.0-standalone"
652665
- name: "perf-6.0-standalone-ssl"
653666
- name: "perf-8.0-standalone"
654-
655-
# Platform notes
656-
# i386 builds of OpenSSL or Cyrus SASL are not available
657-
# Debian 8.1 only supports MongoDB 3.4+
658-
# SUSE12 s390x is only supported by MongoDB 3.4+
659-
# No enterprise build for Archlinux, SSL not available
660-
# RHEL 7.6 and RHEL 8.4 only supports 3.6+.
661-
# RHEL 7 only supports 2.6+
662-
# RHEL 7.1 ppc64le is only supported by MongoDB 3.2+
663-
# RHEL 7.2 s390x is only supported by MongoDB 3.4+
664-
# Solaris MongoDB SSL builds are not available
665-
# Darwin MongoDB SSL builds are not available for 2.6
666-
# SUSE12 x86_64 is only supported by MongoDB 3.2+
667-
# vim: set et sw=2 ts=2 :
667+
- name: "perf-6.0-standalone-async"
668+
- name: "perf-6.0-standalone-ssl-async"
669+
- name: "perf-8.0-standalone-async"

.evergreen/generated_configs/tasks.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
tasks:
2+
# Atlas connect tests
3+
- name: test-atlas-connect
4+
commands:
5+
- func: assume ec2 role
6+
- func: run tests
7+
vars:
8+
TEST_NAME: atlas_connect
9+
tags: [atlas_connect]
10+
211
# Aws tests
312
- name: test-auth-aws-4.4-regular
413
commands:
@@ -680,6 +689,20 @@ tasks:
680689
AWS_ROLE_SESSION_NAME: test
681690
tags: [auth-aws, auth-aws-web-identity]
682691

692+
# Enterprise auth tests
693+
- name: test-enterprise-auth
694+
commands:
695+
- func: run server
696+
vars:
697+
TEST_NAME: enterprise_auth
698+
AUTH: auth
699+
- func: assume ec2 role
700+
- func: run tests
701+
vars:
702+
TEST_NAME: enterprise_auth
703+
AUTH: auth
704+
tags: [enterprise_auth]
705+
683706
# Kms tests
684707
- name: test-gcpkms
685708
commands:

.evergreen/generated_configs/variants.yml

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ buildvariants:
4949
# Atlas connect tests
5050
- name: atlas-connect-rhel8-python3.9
5151
tasks:
52-
- name: atlas-connect
52+
- name: .atlas_connect
5353
display_name: Atlas connect RHEL8 Python3.9
5454
run_on:
5555
- rhel87-small
5656
expansions:
5757
PYTHON_BINARY: /opt/python/3.9/bin/python3
5858
- name: atlas-connect-rhel8-python3.13
5959
tasks:
60-
- name: atlas-connect
60+
- name: .atlas_connect
6161
display_name: Atlas connect RHEL8 Python3.13
6262
run_on:
6363
- rhel87-small
@@ -510,59 +510,53 @@ buildvariants:
510510
tags: [encryption_tag]
511511

512512
# Enterprise auth tests
513-
- name: auth-enterprise-macos-python3.9-auth
513+
- name: auth-enterprise-macos-python3.9
514514
tasks:
515-
- name: test-enterprise-auth
516-
display_name: Auth Enterprise macOS Python3.9 Auth
515+
- name: .enterprise_auth
516+
display_name: Auth Enterprise macOS Python3.9
517517
run_on:
518518
- macos-14
519519
expansions:
520-
AUTH: auth
521520
PYTHON_BINARY: /Library/Frameworks/Python.Framework/Versions/3.9/bin/python3
522-
- name: auth-enterprise-rhel8-python3.10-auth
521+
- name: auth-enterprise-rhel8-python3.10
523522
tasks:
524-
- name: test-enterprise-auth
525-
display_name: Auth Enterprise RHEL8 Python3.10 Auth
523+
- name: .enterprise_auth
524+
display_name: Auth Enterprise RHEL8 Python3.10
526525
run_on:
527526
- rhel87-small
528527
expansions:
529-
AUTH: auth
530528
PYTHON_BINARY: /opt/python/3.10/bin/python3
531-
- name: auth-enterprise-rhel8-python3.11-auth
529+
- name: auth-enterprise-rhel8-python3.11
532530
tasks:
533-
- name: test-enterprise-auth
534-
display_name: Auth Enterprise RHEL8 Python3.11 Auth
531+
- name: .enterprise_auth
532+
display_name: Auth Enterprise RHEL8 Python3.11
535533
run_on:
536534
- rhel87-small
537535
expansions:
538-
AUTH: auth
539536
PYTHON_BINARY: /opt/python/3.11/bin/python3
540-
- name: auth-enterprise-rhel8-python3.12-auth
537+
- name: auth-enterprise-rhel8-python3.12
541538
tasks:
542-
- name: test-enterprise-auth
543-
display_name: Auth Enterprise RHEL8 Python3.12 Auth
539+
- name: .enterprise_auth
540+
display_name: Auth Enterprise RHEL8 Python3.12
544541
run_on:
545542
- rhel87-small
546543
expansions:
547-
AUTH: auth
548544
PYTHON_BINARY: /opt/python/3.12/bin/python3
549-
- name: auth-enterprise-win64-python3.13-auth
545+
- name: auth-enterprise-win64-python3.13
550546
tasks:
551-
- name: test-enterprise-auth
552-
display_name: Auth Enterprise Win64 Python3.13 Auth
547+
- name: .enterprise_auth
548+
display_name: Auth Enterprise Win64 Python3.13
553549
run_on:
554550
- windows-64-vsMulti-small
555551
expansions:
556-
AUTH: auth
557552
PYTHON_BINARY: C:/python/Python313/python.exe
558-
- name: auth-enterprise-rhel8-pypy3.10-auth
553+
- name: auth-enterprise-rhel8-pypy3.10
559554
tasks:
560-
- name: test-enterprise-auth
561-
display_name: Auth Enterprise RHEL8 PyPy3.10 Auth
555+
- name: .enterprise_auth
556+
display_name: Auth Enterprise RHEL8 PyPy3.10
562557
run_on:
563558
- rhel87-small
564559
expansions:
565-
AUTH: auth
566560
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
567561

568562
# Free threaded tests

.evergreen/run-perf-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ export OUTPUT_FILE="${PROJECT_DIRECTORY}/results.json"
1515

1616
export PYTHON_BINARY=/opt/mongodbtoolchain/v4/bin/python3
1717

18-
bash ./.evergreen/just.sh setup-tests perf
18+
bash ./.evergreen/just.sh setup-tests perf "${SUB_TEST_NAME}"
1919
bash ./.evergreen/just.sh run-tests

.evergreen/scripts/generate_config.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ def create_compression_variants():
464464

465465

466466
def create_enterprise_auth_variants():
467-
expansions = dict(AUTH="auth")
468467
variants = []
469468

470469
# All python versions across platforms.
@@ -475,10 +474,8 @@ def create_enterprise_auth_variants():
475474
host = HOSTS["win64"]
476475
else:
477476
host = DEFAULT_HOST
478-
display_name = get_display_name("Auth Enterprise", host, python=python, **expansions)
479-
variant = create_variant(
480-
["test-enterprise-auth"], display_name, host=host, python=python, expansions=expansions
481-
)
477+
display_name = get_display_name("Auth Enterprise", host, python=python)
478+
variant = create_variant([".enterprise_auth"], display_name, host=host, python=python)
482479
variants.append(variant)
483480

484481
return variants
@@ -721,7 +718,7 @@ def create_atlas_connect_variants():
721718
host = DEFAULT_HOST
722719
return [
723720
create_variant(
724-
["atlas-connect"],
721+
[".atlas_connect"],
725722
get_display_name("Atlas connect", host, python=python),
726723
python=python,
727724
host=host,
@@ -913,6 +910,25 @@ def _create_ocsp_task(algo, variant, server_type, base_task_name):
913910
return EvgTask(name=task_name, tags=tags, commands=commands)
914911

915912

913+
def create_atlas_connect_tasks():
914+
vars = dict(TEST_NAME="atlas_connect")
915+
assume_func = FunctionCall(func="assume ec2 role")
916+
test_func = FunctionCall(func="run tests", vars=vars)
917+
task_name = "test-atlas-connect"
918+
tags = ["atlas_connect"]
919+
return [EvgTask(name=task_name, tags=tags, commands=[assume_func, test_func])]
920+
921+
922+
def create_enterprise_auth_tasks():
923+
vars = dict(TEST_NAME="enterprise_auth", AUTH="auth")
924+
server_func = FunctionCall(func="run server", vars=vars)
925+
assume_func = FunctionCall(func="assume ec2 role")
926+
test_func = FunctionCall(func="run tests", vars=vars)
927+
task_name = "test-enterprise-auth"
928+
tags = ["enterprise_auth"]
929+
return [EvgTask(name=task_name, tags=tags, commands=[server_func, assume_func, test_func])]
930+
931+
916932
def create_ocsp_tasks():
917933
tasks = []
918934
tests = [

.evergreen/scripts/run-atlas-tests.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

.evergreen/scripts/run-direct-tests.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

.evergreen/scripts/run-enterprise-auth-tests.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.evergreen/scripts/run-perf-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
PROJECT_DIRECTORY=${PROJECT_DIRECTORY}
4-
bash "${PROJECT_DIRECTORY}"/.evergreen/run-perf-tests.sh
4+
SUB_TEST_NAME=${SUB_TEST_NAME} bash "${PROJECT_DIRECTORY}"/.evergreen/run-perf-tests.sh

0 commit comments

Comments
 (0)