mongodb / specifications

Specifications related to MongoDB
http://specifications.readthedocs.io/en/latest
Other
389 stars 242 forks source link

DRIVERS-716 skip `bulkWrite` tests on Atlas Serverless #1636

Closed kevinAlbs closed 1 month ago

kevinAlbs commented 2 months ago

Summary

Follow-up to https://github.com/mongodb/specifications/pull/1534. Skip tests running bulkWrite on Atlas Serverless.

Background & Motivation

CLOUDP-256344 blocks bulkWrite in Atlas Serverless. This can be seen with mongosh:

Atlas test> db.version()
8.0.0-rc17
Atlas test> db.adminCommand({bulkWrite: 1, ops: [{insert: 0, document: {foo: "bar"}}], nsInfo: [{ns: "db.coll"}]})
MongoServerError[AtlasError]: (Unauthorized) not authorized on admin to execute command { bulkWrite: 1, ops: [[{insert 0} {document [{foo bar}]}]], nsInfo: [[{ns db.coll}]], lsid: { id: {4 [149 137 108 46 117 126 74 218 185 29 250 199 40 40 23 131]} }, $clusterTime: { clusterTime: {1724242370 2}, signature: { hash: {0 [31 9 179 21 13 4 43 10 142 148 251 52 224 5 220 242 224 236 216 151]}, keyId: 7364078628537106432.000000 } }, $db: "admin" }

Some unified tests required increasing schemaVersion to 1.4 to include support specifying serverless as a runOnRequirement.


Please complete the following before merging:

kevinAlbs commented 2 months ago

@shruti-sridhar may I request trying these test files with the Python implementation? C does not currently test serverless in Evergreen, and Rust has an open ticket to investigate serverless test failures.