Skip to content

Commit 18c3bc8

Browse files
committed
Merge branch 'main' into RUST-1529-no-ff
2 parents b6e1d9a + 2a0d65a commit 18c3bc8

File tree

355 files changed

+6948
-3049
lines changed

Some content is hidden

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

355 files changed

+6948
-3049
lines changed

.evergreen/aws-lambda-test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To deploy the application, you need the folllowing tools:
3333

3434
* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
3535
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
36-
* [Rust](https://www.rust-lang.org/) version 1.81.0 or newer
36+
* [Rust](https://www.rust-lang.org/) version 1.82.0 or newer
3737
* [cargo-lambda](https://github.com/cargo-lambda/cargo-lambda) for cross-compilation
3838

3939
To build and deploy your application for the first time, run the following in your shell:

.evergreen/compile-only.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cargo $TOOLCHAIN build
1717

1818
# Test with all features.
1919
if [ "$RUST_VERSION" != "" ]; then
20-
cargo $TOOLCHAIN build --features openssl-tls,sync,aws-auth,zlib-compression,zstd-compression,snappy-compression,in-use-encryption,tracing-unstable
20+
cargo $TOOLCHAIN build --features openssl-tls,sync,aws-auth,gssapi-auth,zlib-compression,zstd-compression,snappy-compression,in-use-encryption,tracing-unstable
2121
else
2222
cargo $TOOLCHAIN build --all-features
2323
fi

.evergreen/config.yml

Lines changed: 26 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ buildvariants:
199199
# Configuring SSL: ssl causes errors in bootstrap mongo-orchestration.
200200
tasks:
201201
# The Stable API was introduced in MongoDB version 5.0. Drivers Evergreen Tools only supports
202-
# setting REQUIRE_API_VERSION on standalones.
202+
# setting REQUIRE_API_VERSION on standalones and sharded clusters.
203203
- .standalone !.4.0 !.4.2 !.4.4
204+
- .sharded !.4.0 !.4.2 !.4.4
204205

205206
- name: sync-api
206207
display_name: "Sync API"
@@ -256,6 +257,14 @@ buildvariants:
256257
# Limit the test to only schedule every 14 days to reduce external resource usage.
257258
batchtime: 20160
258259

260+
- name: gssapi-auth
261+
display_name: "GSSAPI Authentication"
262+
patchable: true
263+
run_on:
264+
- ubuntu2004-small
265+
tasks:
266+
- test-gssapi-auth
267+
259268
- name: x509-auth
260269
display_name: "x509 Authentication"
261270
patchable: false
@@ -267,17 +276,6 @@ buildvariants:
267276
tasks:
268277
- name: test-x509-auth
269278

270-
# - name: serverless
271-
# display_name: "Serverless"
272-
# run_on:
273-
# - rhel80-small
274-
# expansions:
275-
# LIBMONGOCRYPT_OS: rhel-80-64-bit
276-
# AUTH: auth
277-
# SSL: ssl
278-
# tasks:
279-
# - serverless-task-group
280-
281279
- name: oidc-linux
282280
display_name: "OIDC Linux"
283281
patchable: true
@@ -407,43 +405,6 @@ buildvariants:
407405
# Task Groups #
408406
###############
409407
task_groups:
410-
- name: serverless-task-group
411-
setup_group_can_fail_task: true
412-
setup_group_timeout_secs: 1800 # 30 minutes
413-
setup_group:
414-
- func: "fetch source"
415-
- func: "create expansions"
416-
- func: "prepare resources"
417-
- func: "windows fix"
418-
- func: "fix absolute paths"
419-
- func: "init test-results"
420-
- func: "make files executable"
421-
- func: "install rust"
422-
- func: "install junit dependencies"
423-
- command: shell.exec
424-
params:
425-
shell: "bash"
426-
script: |
427-
${PREPARE_SHELL}
428-
bash ${DRIVERS_TOOLS}/.evergreen/serverless/setup-secrets.sh
429-
bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
430-
- command: expansions.update
431-
params:
432-
file: serverless-expansion.yml
433-
teardown_group:
434-
- command: shell.exec
435-
params:
436-
script: |
437-
${PREPARE_SHELL}
438-
bash ${DRIVERS_TOOLS}/.evergreen/serverless/delete-instance.sh
439-
- func: "upload test results"
440-
- func: "upload-mo-artifacts"
441-
- func: "cleanup"
442-
443-
tasks:
444-
- "test-serverless"
445-
- "test-in-use-encryption-serverless"
446-
447408
- name: azure-kms-task-group
448409
setup_group_can_fail_task: true
449410
setup_group_timeout_secs: 1800 # 30 minutes
@@ -819,7 +780,7 @@ tasks:
819780
- func: "compile only"
820781
vars:
821782
# Our minimum supported Rust version. This should be updated whenever the MSRV is bumped.
822-
RUST_VERSION: 1.81.0
783+
RUST_VERSION: 1.82.0
823784

824785
- name: check-cargo-deny
825786
commands:
@@ -971,6 +932,10 @@ tasks:
971932
# vars:
972933
# AWS_ROLE_SESSION_NAME: test
973934

935+
- name: test-gssapi-auth
936+
commands:
937+
- func: "run gssapi auth test"
938+
974939
- name: test-atlas-connectivity
975940
commands:
976941
- func: "run atlas tests"
@@ -1012,10 +977,6 @@ tasks:
1012977
TOPOLOGY: server
1013978
- func: "run x509 tests"
1014979

1015-
- name: test-serverless
1016-
commands:
1017-
- func: "run serverless tests"
1018-
1019980
- name: test-tokio-sync
1020981
tags: [sync]
1021982
commands:
@@ -1112,18 +1073,6 @@ tasks:
11121073
- func: "start csfle servers"
11131074
- func: "run csfle tests"
11141075

1115-
- name: test-in-use-encryption-serverless
1116-
commands:
1117-
- command: expansions.update
1118-
params:
1119-
file: src/expansion.yml
1120-
- command: expansions.update
1121-
params:
1122-
file: serverless-expansion.yml
1123-
- func: "install libmongocrypt"
1124-
- func: "start csfle servers"
1125-
- func: "run csfle serverless tests"
1126-
11271076
- name: test-load-balancer-5.0
11281077
tags: [load-balancer]
11291078
commands:
@@ -1439,6 +1388,17 @@ functions:
14391388
env:
14401389
AWS_AUTH_TYPE: web-identity
14411390

1391+
"run gssapi auth test":
1392+
- command: subprocess.exec
1393+
type: test
1394+
params:
1395+
binary: bash
1396+
working_dir: ${PROJECT_DIRECTORY}
1397+
args:
1398+
- .evergreen/run-gssapi-tests.sh
1399+
include_expansions_in_env:
1400+
- PROJECT_DIRECTORY
1401+
14421402
"run x509 tests":
14431403
- command: shell.exec
14441404
type: test
@@ -1578,23 +1538,6 @@ functions:
15781538
- PROJECT_DIRECTORY
15791539
- MONGODB_URI
15801540

1581-
"run serverless tests":
1582-
- command: shell.exec
1583-
type: test
1584-
params:
1585-
working_dir: src
1586-
shell: bash
1587-
include_expansions_in_env:
1588-
- SERVERLESS_ATLAS_USER
1589-
- SERVERLESS_ATLAS_PASSWORD
1590-
script: |
1591-
${PREPARE_SHELL}
1592-
1593-
export SINGLE_MONGOS_LB_URI=${SERVERLESS_URI}
1594-
. .evergreen/generate-uri.sh
1595-
1596-
.evergreen/run-serverless-tests.sh
1597-
15981541
"run atlas tests":
15991542
- command: ec2.assume_role
16001543
params:
@@ -1670,35 +1613,6 @@ functions:
16701613
- DISABLE_CRYPT_SHARED
16711614
- AZURE_IMDS_MOCK_PORT
16721615

1673-
"run csfle serverless tests":
1674-
- command: shell.exec
1675-
type: test
1676-
params:
1677-
working_dir: src
1678-
shell: bash
1679-
include_expansions_in_env:
1680-
- DRIVERS_TOOLS
1681-
- PROJECT_DIRECTORY
1682-
- MONGODB_URI
1683-
- MONGOCRYPT_LIB_DIR
1684-
- OPENSSL
1685-
- OS
1686-
- LD_LIBRARY_PATH
1687-
- AWS_ACCESS_KEY_ID
1688-
- AWS_SECRET_ACCESS_KEY
1689-
- CSFLE_LOCAL_KEY
1690-
- CRYPT_SHARED_LIB_PATH
1691-
- DISABLE_CRYPT_SHARED
1692-
- AZURE_IMDS_MOCK_PORT
1693-
- SERVERLESS_ATLAS_USER
1694-
- SERVERLESS_ATLAS_PASSWORD
1695-
script: |
1696-
export SINGLE_MONGOS_LB_URI=${SERVERLESS_URI}
1697-
. .evergreen/generate-uri.sh
1698-
export SERVERLESS=serverless
1699-
1700-
.evergreen/run-csfle-tests.sh
1701-
17021616
"build and upload gcp kms test":
17031617
- command: shell.exec
17041618
params:

.evergreen/run-gssapi-tests.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
set -o xtrace
4+
set -o errexit # Exit the script with error if any of the commands fail
5+
6+
echo "Running MONGODB-GSSAPI authentication tests"
7+
8+
cd ${PROJECT_DIRECTORY}
9+
source .evergreen/env.sh
10+
source .evergreen/cargo-test.sh
11+
12+
FEATURE_FLAGS+=("gssapi-auth")
13+
14+
set +o errexit
15+
16+
cargo_test spec::auth
17+
cargo_test uri_options
18+
cargo_test connection_string
19+
20+
exit $CARGO_RESULT

.evergreen/run-serverless-tests.sh

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

0 commit comments

Comments
 (0)