From 22fed4b2d3b39f00cca53fe91965e3dd1fd8354a Mon Sep 17 00:00:00 2001 From: "mongodb-drivers-pr-bot[bot]" <147046816+mongodb-drivers-pr-bot[bot]@users.noreply.github.com> Date: Wed, 30 Sep 2026 18:11:54 +0000 Subject: [PATCH 1/3] resyncing specs 09-30-2026 --- test/bson_corpus/dbref.json | 15 ++++ .../valid-pass/operator-gte.json | 88 +++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 test/unified-test-format/valid-pass/operator-gte.json diff --git a/test/bson_corpus/dbref.json b/test/bson_corpus/dbref.json index 41c0b09d0e..cf54ccf538 100644 --- a/test/bson_corpus/dbref.json +++ b/test/bson_corpus/dbref.json @@ -22,6 +22,21 @@ "canonical_bson": "4400000003646272656600380000000224726566000b000000636f6c6c656374696f6e00072469640058921b3e6e32ab156a22b59e02666f6f0004000000626172000000", "canonical_extjson": "{\"dbref\": {\"$ref\": \"collection\", \"$id\": {\"$oid\": \"58921b3e6e32ab156a22b59e\"}, \"foo\": \"bar\"}}" }, + { + "description": "DBRef with dotted collection name", + "canonical_bson": "3a000000036462726566002e0000000224726566000e00000064622e636f6c6c656374696f6e00072469640058921b3e6e32ab156a22b59e0000", + "canonical_extjson": "{\"dbref\": {\"$ref\": \"db.collection\", \"$id\": {\"$oid\": \"58921b3e6e32ab156a22b59e\"}}}" + }, + { + "description": "DBRef with dotted collection name and database", + "canonical_bson": "4b000000036462726566003f0000000224726566000e00000064622e636f6c6c656374696f6e00072469640058921b3e6e32ab156a22b59e0224646200080000006f746865726462000000", + "canonical_extjson": "{\"dbref\": {\"$ref\": \"db.collection\", \"$id\": {\"$oid\": \"58921b3e6e32ab156a22b59e\"}, \"$db\": \"otherdb\"}}" + }, + { + "description": "DBRef with multiple dots in collection name", + "canonical_bson": "32000000036462726566002600000002247265660006000000612e622e6300072469640058921b3e6e32ab156a22b59e0000", + "canonical_extjson": "{\"dbref\": {\"$ref\": \"a.b.c\", \"$id\": {\"$oid\": \"58921b3e6e32ab156a22b59e\"}}}" + }, { "description": "Document with key names similar to those of a DBRef", "canonical_bson": "3e0000000224726566000c0000006e6f742d612d646272656600072469640058921b3e6e32ab156a22b59e022462616e616e6100050000007065656c0000", diff --git a/test/unified-test-format/valid-pass/operator-gte.json b/test/unified-test-format/valid-pass/operator-gte.json new file mode 100644 index 0000000000..ae69da5c95 --- /dev/null +++ b/test/unified-test-format/valid-pass/operator-gte.json @@ -0,0 +1,88 @@ +{ + "description": "operator-gte", + "schemaVersion": "1.29", + "createEntities": [ + { + "client": { + "id": "client0", + "observeEvents": [ + "commandStartedEvent" + ] + } + }, + { + "database": { + "id": "database0", + "client": "client0", + "databaseName": "database0Name" + } + }, + { + "collection": { + "id": "collection0", + "database": "database0", + "collectionName": "coll0" + } + } + ], + "initialData": [ + { + "collectionName": "coll0", + "databaseName": "database0Name", + "documents": [] + } + ], + "tests": [ + { + "description": "special gte matching operator", + "operations": [ + { + "name": "insertOne", + "object": "collection0", + "arguments": { + "document": { + "_id": 1, + "x": 2, + "y": 3, + "z": 4 + } + } + } + ], + "expectEvents": [ + { + "client": "client0", + "events": [ + { + "commandStartedEvent": { + "command": { + "insert": "coll0", + "documents": [ + { + "_id": { + "$$gte": 1 + }, + "x": { + "$$gte": 1.9 + }, + "y": { + "$$gte": { + "$numberLong": "3" + } + }, + "z": { + "$$gte": 4 + } + } + ] + }, + "commandName": "insert", + "databaseName": "database0Name" + } + } + ] + } + ] + } + ] +} From c45734f00536df8959887dca8fefb595c6ced7db Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 30 Sep 2026 14:42:05 -0500 Subject: [PATCH 2/3] PYTHON-5993 Skip the operator-gte unified test for now --- .evergreen/spec-patch/PYTHON-5993.patch | 94 +++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 .evergreen/spec-patch/PYTHON-5993.patch diff --git a/.evergreen/spec-patch/PYTHON-5993.patch b/.evergreen/spec-patch/PYTHON-5993.patch new file mode 100644 index 0000000000..3880924e83 --- /dev/null +++ b/.evergreen/spec-patch/PYTHON-5993.patch @@ -0,0 +1,94 @@ +diff --git a/test/unified-test-format/valid-pass/operator-gte.json b/test/unified-test-format/valid-pass/operator-gte.json +new file mode 100644 +index 000000000..ae69da5c9 +--- /dev/null ++++ b/test/unified-test-format/valid-pass/operator-gte.json +@@ -0,0 +1,88 @@ ++{ ++ "description": "operator-gte", ++ "schemaVersion": "1.29", ++ "createEntities": [ ++ { ++ "client": { ++ "id": "client0", ++ "observeEvents": [ ++ "commandStartedEvent" ++ ] ++ } ++ }, ++ { ++ "database": { ++ "id": "database0", ++ "client": "client0", ++ "databaseName": "database0Name" ++ } ++ }, ++ { ++ "collection": { ++ "id": "collection0", ++ "database": "database0", ++ "collectionName": "coll0" ++ } ++ } ++ ], ++ "initialData": [ ++ { ++ "collectionName": "coll0", ++ "databaseName": "database0Name", ++ "documents": [] ++ } ++ ], ++ "tests": [ ++ { ++ "description": "special gte matching operator", ++ "operations": [ ++ { ++ "name": "insertOne", ++ "object": "collection0", ++ "arguments": { ++ "document": { ++ "_id": 1, ++ "x": 2, ++ "y": 3, ++ "z": 4 ++ } ++ } ++ } ++ ], ++ "expectEvents": [ ++ { ++ "client": "client0", ++ "events": [ ++ { ++ "commandStartedEvent": { ++ "command": { ++ "insert": "coll0", ++ "documents": [ ++ { ++ "_id": { ++ "$$gte": 1 ++ }, ++ "x": { ++ "$$gte": 1.9 ++ }, ++ "y": { ++ "$$gte": { ++ "$numberLong": "3" ++ } ++ }, ++ "z": { ++ "$$gte": 4 ++ } ++ } ++ ] ++ }, ++ "commandName": "insert", ++ "databaseName": "database0Name" ++ } ++ } ++ ] ++ } ++ ] ++ } ++ ] ++} From b0ef0fa839ca9ccfed1dc09c561e54c995754005 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 30 Sep 2026 14:44:09 -0500 Subject: [PATCH 3/3] PYTHON-5993 Remove the operator-gte unified test --- .../valid-pass/operator-gte.json | 88 ------------------- 1 file changed, 88 deletions(-) delete mode 100644 test/unified-test-format/valid-pass/operator-gte.json diff --git a/test/unified-test-format/valid-pass/operator-gte.json b/test/unified-test-format/valid-pass/operator-gte.json deleted file mode 100644 index ae69da5c95..0000000000 --- a/test/unified-test-format/valid-pass/operator-gte.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "description": "operator-gte", - "schemaVersion": "1.29", - "createEntities": [ - { - "client": { - "id": "client0", - "observeEvents": [ - "commandStartedEvent" - ] - } - }, - { - "database": { - "id": "database0", - "client": "client0", - "databaseName": "database0Name" - } - }, - { - "collection": { - "id": "collection0", - "database": "database0", - "collectionName": "coll0" - } - } - ], - "initialData": [ - { - "collectionName": "coll0", - "databaseName": "database0Name", - "documents": [] - } - ], - "tests": [ - { - "description": "special gte matching operator", - "operations": [ - { - "name": "insertOne", - "object": "collection0", - "arguments": { - "document": { - "_id": 1, - "x": 2, - "y": 3, - "z": 4 - } - } - } - ], - "expectEvents": [ - { - "client": "client0", - "events": [ - { - "commandStartedEvent": { - "command": { - "insert": "coll0", - "documents": [ - { - "_id": { - "$$gte": 1 - }, - "x": { - "$$gte": 1.9 - }, - "y": { - "$$gte": { - "$numberLong": "3" - } - }, - "z": { - "$$gte": 4 - } - } - ] - }, - "commandName": "insert", - "databaseName": "database0Name" - } - } - ] - } - ] - } - ] -}