Skip to content

DRIVERS-3115: Remove serverless testing requirements #1807

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 1 commit into from
Jun 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Please complete the following before merging:

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

<!-- See also: https://wiki.corp.mongodb.com/pages/viewpage.action?pageId=80806719 -->
7 changes: 6 additions & 1 deletion source/serverless-testing/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Atlas Serverless Tests

- Status: Accepted
- Status: Obsolete
- Minimum Server Version: N/A

______________________________________________________________________

## Obsolescence Notice

This document is obsolete and there is no longer a requirement for drivers to test against Atlas Serverless. The
specification is preserved for historical purposes only.

## Introduction

This file describes a subset of existing tests that drivers MUST use to assert compatibility with Atlas Serverless.
Expand Down
12 changes: 9 additions & 3 deletions source/unified-test-format/unified-test-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,10 @@ The structure of this object is as follows:
Note: load balancers were introduced in MongoDB 5.0. Therefore, any sharded cluster behind a load balancer implicitly
uses replica sets for its shards.

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

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

Note: serverless testing is no longer required, and drivers that no longer support serverless testing MAY omit
implementation of this requirement and instantly skip all tests that use `serverless: require`.

- `serverParameters`: Optional object of server parameters to check against. To check server parameters, drivers send a
`{ getParameter: 1, <parameter>: 1 }` command to the server using an internal MongoClient. Drivers MAY also choose
to send a `{ getParameter: '*' }` command and fetch all parameters at once. The result SHOULD be cached to avoid
Expand Down Expand Up @@ -3579,6 +3583,8 @@ other specs *and* collating spec changes developed in parallel or during the sam

## Changelog

- 2025-06-04: Deprecate the `serverless` runOnRequirement

- 2025-04-25: Drop `_enxcol` collections.

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