Skip to content

Commit 4e5d624

Browse files
authored
DRIVERS-3115: Remove serverless testing requirements (#1807)
1 parent af4b582 commit 4e5d624

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
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/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/unified-test-format/unified-test-format.md

Lines changed: 9 additions & 3 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
@@ -3579,6 +3583,8 @@ other specs *and* collating spec changes developed in parallel or during the sam
35793583

35803584
## Changelog
35813585

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

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

0 commit comments

Comments
 (0)