Skip to content

Commit b4a4b0e

Browse files
committed
Merge branch 'master' into DRIVERS-2985
2 parents 9f58bfb + 4e5d624 commit b4a4b0e

File tree

10 files changed

+17
-19
lines changed

10 files changed

+17
-19
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Please complete the following before merging:
44

55
- [ ] Update changelog.
66
- [ ] Test changes in at least one language driver.
7-
- [ ] Test these changes against all server versions and topologies (including standalone, replica set, sharded
8-
clusters, and serverless).
7+
- [ ] Test these changes against all server versions and topologies (including standalone, replica set, and sharded
8+
clusters).
99

1010
<!-- See also: https://wiki.corp.mongodb.com/pages/viewpage.action?pageId=80806719 -->

source/client-side-encryption/tests/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ Then for each element in `tests`:
251251
This MAY be configured system-wide.
252252
- `tlsCertificateKeyFile` (or equivalent) set to
253253
[drivers-evergreen-tools/.evergreen/x509gen/client.pem](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/x509gen/client.pem).
254-
255254

256255
The method of passing TLS options for KMIP TLS connections is driver dependent.
257256
2. If `autoEncryptOpts` does not include `keyVaultNamespace`, default it to `keyvault.datakeys`.
@@ -427,7 +426,6 @@ First, perform the setup.
427426
This MAY be configured system-wide.
428427
- `tlsCertificateKeyFile` (or equivalent) set to
429428
[drivers-evergreen-tools/.evergreen/x509gen/client.pem](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/x509gen/client.pem).
430-
431429

432430
The method of passing TLS options for KMIP TLS connections is driver dependent.
433431

@@ -684,7 +682,6 @@ binary subtype 4 (or standard UUID), which MUST be decoded and encoded as subtyp
684682
This MAY be configured system-wide.
685683
- `tlsCertificateKeyFile` (or equivalent) set to
686684
[drivers-evergreen-tools/.evergreen/x509gen/client.pem](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/x509gen/client.pem).
687-
688685

689686
The method of passing TLS options for KMIP TLS connections is driver dependent.
690687

@@ -1447,7 +1444,6 @@ Four mock KMS server processes must be running:
14471444

14481445
1. The mock
14491446
[KMS HTTP server](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/csfle/kms_http_server.py).
1450-
14511447

14521448
Run on port 9000 with
14531449
[ca.pem](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/x509gen/ca.pem) as a CA
@@ -1463,7 +1459,6 @@ Four mock KMS server processes must be running:
14631459

14641460
2. The mock
14651461
[KMS HTTP server](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/csfle/kms_http_server.py).
1466-
14671462

14681463
Run on port 9001 with
14691464
[ca.pem](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/x509gen/ca.pem) as a CA
@@ -1479,7 +1474,6 @@ Four mock KMS server processes must be running:
14791474

14801475
3. The mock
14811476
[KMS HTTP server](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/csfle/kms_http_server.py).
1482-
14831477

14841478
Run on port 9002 with
14851479
[ca.pem](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/x509gen/ca.pem) as a CA

source/extended-json/extended-json.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,6 @@ parsed as a normal document and not reported as an error.
722722

723723
- Changed BSON binary type wrapper to
724724
`{"$binary": {"base64": <base64-encoded payload as a *string*>, "subType": <BSON binary type as a one- or two-character *hex string*>}}`
725-
726725

727726
- Added "Restrictions and limitations" section.
728727

source/retryable-writes/retryable-writes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ Drivers MUST then retry the operation as many times as necessary until any one o
314314

315315
- CSOT is enabled and the operation times out per
316316
[Client Side Operations Timeout: Retryability](../client-side-operations-timeout/client-side-operations-timeout.md#retryability).
317-
318317

319318
- CSOT is not enabled and one retry was attempted.
320319

source/server-discovery-and-monitoring/server-discovery-and-monitoring.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ Fields:
240240
Default null. (Only mongos and shard servers record this field when monitoring config servers as replica sets, at
241241
least until
242242
[drivers allow applications to use readConcern "afterOptime".](../max-staleness/max-staleness.md#future-feature-to-support-readconcern-afteroptime))
243-
244243

245244
- (=) `type`: a [ServerType](#servertype) enum value. Default Unknown.
246245

source/server-discovery-and-monitoring/server-monitoring.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ the client MUST follow these steps:
501501
[Why synchronize clearing a server's pool with updating the topology?](server-discovery-and-monitoring.md#why-synchronize-clearing-a-servers-pool-with-updating-the-topology)).
502502
If this was a network timeout error, then the pool MUST be cleared with interruptInUseConnections = true (see
503503
[Why does the pool need to support closing in use connections as part of its clear logic?](../connection-monitoring-and-pooling/connection-monitoring-and-pooling.md#why-does-the-pool-need-to-support-interrupting-in-use-connections-as-part-of-its-clear-logic))
504-
505504

506505
4. If this was a network error and the server was in a known state before the error, the client MUST NOT sleep and MUST
507506
begin the next check immediately. (See

source/serverless-testing/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Atlas Serverless Tests
22

3-
- Status: Accepted
3+
- Status: Obsolete
44
- Minimum Server Version: N/A
55

66
______________________________________________________________________
77

8+
## Obsolescence Notice
9+
10+
This document is obsolete and there is no longer a requirement for drivers to test against Atlas Serverless. The
11+
specification is preserved for historical purposes only.
12+
813
## Introduction
914

1015
This file describes a subset of existing tests that drivers MUST use to assert compatibility with Atlas Serverless.

source/transactions-convenient-api/transactions-convenient-api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ This method should perform the following sequence of actions:
142142
MaxTimeMSExpired and the elapsed time of `withTransaction` is less than 120 seconds, jump back to step eight.
143143
We will trust `commitTransaction` to apply a majority write concern on retry attempts (see:
144144
[Majority write concern is used when retrying commitTransaction](#majority-write-concern-is-used-when-retrying-committransaction)).
145-
146145

147146
2. If the `commitTransaction` error includes a "TransientTransactionError" label and the elapsed time of
148147
`withTransaction` is less than 120 seconds, jump back to step two.

source/transactions/tests/legacy-test-format.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ Then for each element in `tests`:
182182
7. When testing against a sharded cluster run a `distinct` command on the newly created collection on all mongoses. For
183183
an explanation see,
184184
[Why do tests that run distinct sometimes fail with StaleDbVersion?](#why-do-tests-that-run-distinct-sometimes-fail-with-staledbversion)
185-
186185

187186
8. If `failPoint` is specified, its value is a configureFailPoint command. Run the command on the admin database to
188187
enable the fail point.

source/unified-test-format/unified-test-format.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,10 @@ The structure of this object is as follows:
337337
Note: load balancers were introduced in MongoDB 5.0. Therefore, any sharded cluster behind a load balancer implicitly
338338
uses replica sets for its shards.
339339

340-
- `serverless`: Optional string. Whether or not the test should be run on Atlas Serverless instances. Valid values are
341-
"require", "forbid", and "allow". If "require", the test MUST only be run on Atlas Serverless instances. If
342-
"forbid", the test MUST NOT be run on Atlas Serverless instances. If omitted or "allow", this option has no effect.
340+
- `serverless` (deprecated): Optional string. Whether or not the test should be run on Atlas Serverless instances. Valid
341+
values are "require", "forbid", and "allow". If "require", the test MUST only be run on Atlas Serverless instances.
342+
If "forbid", the test MUST NOT be run on Atlas Serverless instances. If omitted or "allow", this option has no
343+
effect.
343344

344345
The test runner MUST be informed whether or not Atlas Serverless is being used in order to determine if this
345346
requirement is met (e.g. through an environment variable or configuration option).
@@ -348,6 +349,9 @@ The structure of this object is as follows:
348349
is in use by issuing commands such as `buildInfo` or `hello`. Furthermore, connections to Atlas Serverless use a
349350
load balancer, so the topology will appear as "load-balanced".
350351

352+
Note: serverless testing is no longer required, and drivers that no longer support serverless testing MAY omit
353+
implementation of this requirement and instantly skip all tests that use `serverless: require`.
354+
351355
- `serverParameters`: Optional object of server parameters to check against. To check server parameters, drivers send a
352356
`{ getParameter: 1, <parameter>: 1 }` command to the server using an internal MongoClient. Drivers MAY also choose
353357
to send a `{ getParameter: '*' }` command and fetch all parameters at once. The result SHOULD be cached to avoid
@@ -1307,7 +1311,6 @@ The structure of each object is as follows:
13071311
When `failureIsRedacted` is present and its value is `true`, the test runner MUST assert that a failure is present and
13081312
that the failure has been redacted according to the rules defined for error redaction in the
13091313
[command logging and monitoring specification](../command-logging-and-monitoring/command-logging-and-monitoring.md#security).
1310-
13111314

13121315
When `false`, the test runner MUST assert that a failure is present and that the failure has NOT been redacted.
13131316

@@ -3580,6 +3583,8 @@ other specs *and* collating spec changes developed in parallel or during the sam
35803583

35813584
## Changelog
35823585

3586+
- 2025-06-04: Deprecate the `serverless` runOnRequirement
3587+
35833588
- 2025-04-25: Drop `_enxcol` collections.
35843589

35853590
- 2025-04-07: Add `topologyOpeningEvent` and `topologyClosedEvent` to the unified test format and schema 1.20+ as they

0 commit comments

Comments
 (0)