Skip to content

Commit f33d091

Browse files
committed
Merge branch 'main' into PYTHON-3636
2 parents cd9bd92 + 1145c9d commit f33d091

31 files changed

Lines changed: 1080 additions & 290 deletions

.evergreen/config.yml

Lines changed: 8 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ functions:
4242
# Make an evergreen expansion file with dynamic values
4343
- command: subprocess.exec
4444
params:
45-
include_expansions_in_env: ["is_patch", "project", "version_id", "skip_web_identity_auth_test", "skip_ECS_auth_test"]
45+
include_expansions_in_env: ["is_patch", "project", "version_id"]
4646
binary: bash
4747
working_dir: "src"
4848
args:
@@ -213,30 +213,14 @@ functions:
213213
params:
214214
file: ${DRIVERS_TOOLS}/mo-expansion.yml
215215

216-
"bootstrap data lake":
216+
"run just script":
217217
- command: subprocess.exec
218-
type: setup
219-
params:
220-
binary: bash
221-
args:
222-
- ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/pull-mongohouse-image.sh
223-
- command: subprocess.exec
224-
type: setup
218+
type: test
225219
params:
226-
binary: bash
227-
args:
228-
- ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-image.sh
229-
230-
"run doctests":
231-
- command: subprocess.exec
232-
type: test
233-
params:
234-
include_expansions_in_env: [ "PYTHON_BINARY" ]
235-
working_dir: "src"
236-
binary: bash
237-
args:
238-
- .evergreen/scripts/run-with-env.sh
239-
- .evergreen/scripts/run-doctests.sh
220+
include_expansions_in_env: [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
221+
binary: bash
222+
working_dir: "src"
223+
args: [.evergreen/just.sh, "${JUSTFILE_TARGET}"]
240224

241225
"run tests":
242226
- command: subprocess.exec
@@ -262,7 +246,6 @@ functions:
262246
binary: bash
263247
working_dir: "src"
264248
args:
265-
- .evergreen/scripts/run-with-env.sh
266249
- .evergreen/scripts/cleanup.sh
267250

268251
"teardown system":
@@ -282,27 +265,7 @@ functions:
282265
- command: ec2.assume_role
283266
params:
284267
role_arn: ${aws_test_secrets_role}
285-
286-
"setup atlas":
287-
- command: subprocess.exec
288-
params:
289-
binary: bash
290-
include_expansions_in_env: ["task_id", "execution"]
291-
env:
292-
MONGODB_VERSION: "7.0"
293-
LAMBDA_STACK_NAME: dbx-python-lambda
294-
args:
295-
- ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh
296-
- command: expansions.update
297-
params:
298-
file: atlas-expansion.yml
299-
300-
"teardown atlas":
301-
- command: subprocess.exec
302-
params:
303-
binary: bash
304-
args:
305-
- ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
268+
duration_seconds: 3600
306269

307270
"attach benchmark test results":
308271
- command: attach.results
@@ -328,31 +291,6 @@ post:
328291
- func: "upload test results"
329292
- func: "cleanup"
330293

331-
task_groups:
332-
- name: test_aws_lambda_task_group
333-
setup_group:
334-
- func: fetch source
335-
- func: setup system
336-
- func: setup atlas
337-
teardown_task:
338-
- func: teardown atlas
339-
setup_group_can_fail_task: true
340-
setup_group_timeout_secs: 1800
341-
tasks:
342-
- test-aws-lambda-deployed
343-
344-
- name: test_atlas_task_group_search_indexes
345-
setup_group:
346-
- func: fetch source
347-
- func: setup system
348-
- func: setup atlas
349-
teardown_task:
350-
- func: teardown atlas
351-
setup_group_can_fail_task: true
352-
setup_group_timeout_secs: 1800
353-
tasks:
354-
- test-search-index-helpers
355-
356294
tasks:
357295
# Wildcard task. Do you need to find out what tools are available and where?
358296
# Throw it here, and execute this task on all buildvariants
@@ -364,70 +302,7 @@ tasks:
364302
params:
365303
args:
366304
- src/.evergreen/scripts/run-getdata.sh
367-
# Standard test tasks {{{
368-
369-
- name: "mockupdb"
370-
tags: ["mockupdb"]
371-
commands:
372-
- func: "run tests"
373-
vars:
374-
TEST_NAME: mockupdb
375305

376-
- name: "doctests"
377-
tags: ["doctests"]
378-
commands:
379-
- func: "run server"
380-
- func: "run doctests"
381-
382-
- name: "test-search-index-helpers"
383-
commands:
384-
- func: "run server"
385-
vars:
386-
VERSION: "6.0"
387-
TOPOLOGY: "replica_set"
388-
- func: "run tests"
389-
vars:
390-
TEST_NAME: index_management
391-
AUTH: "auth"
392-
393-
- name: "no-server"
394-
tags: ["no-server"]
395-
commands:
396-
- func: "run tests"
397-
398-
- name: "free-threading"
399-
tags: ["free-threading"]
400-
commands:
401-
- func: "run server"
402-
vars:
403-
VERSION: "8.0"
404-
TOPOLOGY: "replica_set"
405-
- func: "run tests"
406-
407-
- name: atlas-data-lake-tests
408-
commands:
409-
- func: "bootstrap data lake"
410-
- func: "run tests"
411-
vars:
412-
TEST_NAME: "data_lake"
413-
414-
- name: "test-aws-lambda-deployed"
415-
commands:
416-
- command: ec2.assume_role
417-
params:
418-
role_arn: ${LAMBDA_AWS_ROLE_ARN}
419-
duration_seconds: 3600
420-
- command: subprocess.exec
421-
params:
422-
working_dir: src
423-
binary: bash
424-
add_expansions_to_env: true
425-
args:
426-
- .evergreen/run-deployed-lambda-aws-tests.sh
427-
env:
428-
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/test/lambda
429-
430-
# }}}
431306
- name: "coverage-report"
432307
tags: ["coverage"]
433308
depends_on:
@@ -477,12 +352,6 @@ tasks:
477352
- ${github_commit}
478353

479354
buildvariants:
480-
- name: "no-server"
481-
display_name: "No server"
482-
run_on:
483-
- rhel84-small
484-
tasks:
485-
- name: "no-server"
486355

487356
- name: "Coverage Report"
488357
display_name: "Coverage Report"
@@ -503,12 +372,6 @@ buildvariants:
503372
batchtime: 10080 # 7 days
504373
- name: test-azurekms-fail
505374

506-
- name: rhel8-test-lambda
507-
display_name: FaaS Lambda
508-
run_on: rhel87-small
509-
tasks:
510-
- name: test_aws_lambda_task_group
511-
512375
- name: rhel8-import-time
513376
display_name: Import Time
514377
run_on: rhel87-small

.evergreen/generated_configs/tasks.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@ tasks:
88
TEST_NAME: atlas_connect
99
tags: [atlas_connect]
1010

11+
# Atlas data lake tests
12+
- name: test-atlas-data-lake-with_ext
13+
commands:
14+
- func: run tests
15+
vars:
16+
TEST_NAME: data_lake
17+
NO_EXT: "1"
18+
tags: [atlas_data_lake]
19+
- name: test-atlas-data-lake-without_ext
20+
commands:
21+
- func: run tests
22+
vars:
23+
TEST_NAME: data_lake
24+
tags: [atlas_data_lake]
25+
26+
# Aws lambda tests
27+
- name: test-aws-lambda-deployed
28+
commands:
29+
- func: assume ec2 role
30+
- func: run tests
31+
vars:
32+
TEST_NAME: aws_lambda
33+
tags: [aws_lambda]
34+
1135
# Aws tests
1236
- name: test-auth-aws-4.4-regular
1337
commands:
@@ -689,6 +713,15 @@ tasks:
689713
AWS_ROLE_SESSION_NAME: test
690714
tags: [auth-aws, auth-aws-web-identity]
691715

716+
# Doctest tests
717+
- name: test-doctests
718+
commands:
719+
- func: run server
720+
- func: run just script
721+
vars:
722+
JUSTFILE_TARGET: docs-test
723+
tags: [doctests]
724+
692725
# Enterprise auth tests
693726
- name: test-enterprise-auth
694727
commands:
@@ -703,6 +736,16 @@ tasks:
703736
AUTH: auth
704737
tags: [enterprise_auth]
705738

739+
# Free threading tests
740+
- name: test-free-threading
741+
commands:
742+
- func: run server
743+
vars:
744+
VERSION: "8.0"
745+
TOPOLOGY: replica_set
746+
- func: run tests
747+
tags: [free-threading]
748+
706749
# Kms tests
707750
- name: test-gcpkms
708751
commands:
@@ -775,6 +818,14 @@ tasks:
775818
TEST_NAME: load_balancer
776819
tags: [load-balancer, noauth, nossl]
777820

821+
# Mockupdb tests
822+
- name: test-mockupdb
823+
commands:
824+
- func: run tests
825+
vars:
826+
TEST_NAME: mockupdb
827+
tags: [mockupdb]
828+
778829
# Mod wsgi tests
779830
- name: mod-wsgi-standalone
780831
commands:
@@ -817,6 +868,12 @@ tasks:
817868
SUB_TEST_NAME: embedded
818869
tags: [mod_wsgi]
819870

871+
# No server tests
872+
- name: test-no-server
873+
commands:
874+
- func: run tests
875+
tags: [no-server]
876+
820877
# Ocsp tests
821878
- name: test-ocsp-ecdsa-valid-cert-server-does-not-staple
822879
commands:
@@ -1205,6 +1262,18 @@ tasks:
12051262
- func: send dashboard data
12061263
tags: [perf]
12071264

1265+
# Search index tests
1266+
- name: test-search-index-helpers
1267+
commands:
1268+
- func: assume ec2 role
1269+
- func: run server
1270+
vars:
1271+
TEST_NAME: search_index
1272+
- func: run tests
1273+
vars:
1274+
TEST_NAME: search_index
1275+
tags: [search_index]
1276+
12081277
# Server tests
12091278
- name: test-4.0-standalone-auth-ssl-sync
12101279
commands:

0 commit comments

Comments
 (0)