Skip to content

PYTHON-5138 Convert setup_tests.py to a cli #2154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 44 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
58620ac
make setup test into a cli
blink1073 Feb 16, 2025
0e815b1
regen config
blink1073 Feb 16, 2025
62b1d77
regen config
blink1073 Feb 16, 2025
0de124d
cleanup
blink1073 Feb 16, 2025
d8b0cbf
more cleanup
blink1073 Feb 16, 2025
81b62fd
remove unused var
blink1073 Feb 16, 2025
e2588cc
cleanup
blink1073 Feb 16, 2025
614cb24
fix invocation
blink1073 Feb 16, 2025
49f3cde
fix default args
blink1073 Feb 16, 2025
f724021
fix args
blink1073 Feb 16, 2025
403669d
fix path handling
blink1073 Feb 17, 2025
b775f97
fix config handling
blink1073 Feb 17, 2025
73e7666
fix enterprise auth
blink1073 Feb 17, 2025
9003b25
fix enterprise auth
blink1073 Feb 17, 2025
013a6f7
debug
blink1073 Feb 17, 2025
4a630e0
fix auth handling
blink1073 Feb 17, 2025
4bd7635
fix enterprise auth
blink1073 Feb 17, 2025
286d684
remove debugs
blink1073 Feb 17, 2025
5882ff0
fix auth aws
blink1073 Feb 17, 2025
c6908c5
fix auth aws
blink1073 Feb 17, 2025
75f1eba
fix auth oidc
blink1073 Feb 17, 2025
f0dac99
fix auth oidc
blink1073 Feb 17, 2025
2b75430
fix auth oidc
blink1073 Feb 17, 2025
bc6af39
debug ecs
blink1073 Feb 17, 2025
7b7d10f
fix index management and aws auth
blink1073 Feb 17, 2025
901f888
test azure oidc fix
blink1073 Feb 17, 2025
2ea3ed4
Merge branch 'master' of github.com:mongodb/mongo-python-driver into …
blink1073 Feb 19, 2025
43b7c83
cleanup
blink1073 Feb 19, 2025
2f181d7
fix ocsp
blink1073 Feb 20, 2025
1a2c3d4
try again
blink1073 Feb 20, 2025
18ea70c
debug
blink1073 Feb 20, 2025
9bee023
debug
blink1073 Feb 20, 2025
f29854c
fix path handling
blink1073 Feb 20, 2025
18b5189
fix path handling
blink1073 Feb 20, 2025
dbe783d
fix path handling
blink1073 Feb 20, 2025
5c2a7a4
fix path handling
blink1073 Feb 20, 2025
e9988f7
debug
blink1073 Feb 20, 2025
5b35047
fix path handling
blink1073 Feb 20, 2025
980a6dc
fix ecs test
blink1073 Feb 20, 2025
e179831
lint
blink1073 Feb 20, 2025
6d3b537
address review
blink1073 Feb 21, 2025
d01091b
debug
blink1073 Feb 21, 2025
95b7810
Split NO_EXT tests into sync and async
blink1073 Feb 21, 2025
722db19
remove debug
blink1073 Feb 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 14 additions & 28 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ functions:
# Make an evergreen expansion file with dynamic values
- command: subprocess.exec
params:
include_expansions_in_env: ["is_patch", "project", "version_id", "AUTH", "SSL", "TEST_ENCRYPTION", "TEST_ENCRYPTION_PYOPENSSL", "TEST_CRYPT_SHARED", "TEST_PYOPENSSL", "SETDEFAULTENCODING", "TEST_LOADBALANCER", "TEST_SEVERLESS", "SKIP_CSOT_TESTS", "MONGODB_STARTED", "DISABLE_TEST_COMMANDS", "GREEN_FRAMEWORK", "NO_EXT", "COVERAGE", "COMPRESSORS", "MONGODB_API_VERSION", "skip_crypt_shared", "VERSION", "TOPOLOGY", "STORAGE_ENGINE", "ORCHESTRATION_FILE", "REQUIRE_API_VERSION", "LOAD_BALANCER", "skip_web_identity_auth_test", "skip_ECS_auth_test"]
include_expansions_in_env: ["is_patch", "project", "version_id", "skip_web_identity_auth_test", "skip_ECS_auth_test"]
binary: bash
working_dir: "src"
args:
Expand Down Expand Up @@ -205,18 +205,13 @@ functions:
- command: subprocess.exec
params:
binary: bash
include_expansions_in_env: ["VERSION", "TOPOLOGY", "AUTH", "SSL", "ORCHESTRATION_FILE", "LOAD_BALANCER"]
include_expansions_in_env: [VERSION, TOPOLOGY, AUTH, SSL, ORCHESTRATION_FILE, LOAD_BALANCER,
STORAGE_ENGINE, REQUIRE_API_VERSION, DRIVERS_TOOLS, TEST_CRYPT_SHARED]
args:
- src/.evergreen/scripts/run-with-env.sh
- src/.evergreen/scripts/bootstrap-mongo-orchestration.sh
- command: expansions.update
params:
file: mo-expansion.yml
- command: expansions.update
params:
updates:
- key: MONGODB_STARTED
value: "1"

"bootstrap data lake":
- command: subprocess.exec
Expand Down Expand Up @@ -250,17 +245,6 @@ functions:
- .evergreen/scripts/run-with-env.sh
- .evergreen/scripts/run-mod-wsgi-tests.sh

"run mockupdb tests":
- command: subprocess.exec
type: test
params:
include_expansions_in_env: ["PYTHON_BINARY"]
working_dir: "src"
binary: bash
args:
- .evergreen/scripts/run-with-env.sh
- .evergreen/scripts/run-mockupdb-tests.sh

"run doctests":
- command: subprocess.exec
type: test
Expand All @@ -276,14 +260,12 @@ functions:
- command: subprocess.exec
type: test
params:
include_expansions_in_env: ["TEST_DATA_LAKE", "PYTHON_BINARY", "AUTH", "SSL",
"AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "TEST_SUITES",
"TEST_INDEX_MANAGEMENT", "CRYPT_SHARED_LIB_PATH", "TEST_ENCRYPTION", "TEST_ENCRYPTION_PYOPENSSL",
"TEST_CRYPT_SHARED", "TEST_PYOPENSSL", "TEST_LOADBALANCER", "TEST_SEVERLESS", "MONGODB_URI"]
include_expansions_in_env: [AUTH, SSL, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY,
AWS_SESSION_TOKEN, COVERAGE, PYTHON_BINARY, LIBMONGOCRYPT_URL, MONGODB_URI,
DISABLE_TEST_COMMANDS, GREEN_FRAMEWORK, NO_EXT, COMPRESSORS]
binary: bash
working_dir: "src"
args:
- .evergreen/scripts/setup-tests.sh
args: [.evergreen/just.sh, setup-test, "${TEST_NAME}", "${SUB_TEST_NAME}"]
- command: subprocess.exec
type: test
params:
Expand Down Expand Up @@ -755,7 +737,9 @@ tasks:
- name: "mockupdb"
tags: ["mockupdb"]
commands:
- func: "run mockupdb tests"
- func: "run tests"
vars:
TEST_NAME: mockupdb

- name: "doctests"
tags: ["doctests"]
Expand All @@ -770,6 +754,8 @@ tasks:
tags: ["serverless"]
commands:
- func: "run tests"
vars:
TEST_NAME: serverless

- name: "test-enterprise-auth"
tags: ["enterprise-auth"]
Expand All @@ -789,7 +775,7 @@ tasks:
TOPOLOGY: "replica_set"
- func: "run tests"
vars:
TEST_INDEX_MANAGEMENT: "1"
TEST_NAME: index_management
AUTH: "auth"

- name: "mod-wsgi-standalone"
Expand Down Expand Up @@ -857,7 +843,7 @@ tasks:
- func: "bootstrap data lake"
- func: "run tests"
vars:
TEST_DATA_LAKE: "true"
TEST_NAME: "data_lake"

- name: "test-aws-lambda-deployed"
commands:
Expand Down
Loading
Loading