You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2025/10/14 20:31:16 UTC

(couchdb) branch make-test-more-deterministic created (now 323b591d0)

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a change to branch make-test-more-deterministic
in repository https://gitbox.apache.org/repos/asf/couchdb.git


      at 323b591d0 Use determistic doc IDs in Mango key test

This branch includes the following new commits:

     new 323b591d0 Use determistic doc IDs in Mango key test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(couchdb) 01/01: Use determistic doc IDs in Mango key test

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch make-test-more-deterministic
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 323b591d016e9a68b8ef32b04271967511d79aa9
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Tue Oct 14 16:02:52 2025 -0400

    Use determistic doc IDs in Mango key test
    
    Noticed in https://github.com/apache/couchdb/pull/5699 when changing the new
    uuids scheme it affected the results, so make the IDs deterministic so test
    results don't depend on uuid type.
---
 src/mango/test/04-key-tests.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/mango/test/04-key-tests.py b/src/mango/test/04-key-tests.py
index 998f17ee5..1934d4266 100644
--- a/src/mango/test/04-key-tests.py
+++ b/src/mango/test/04-key-tests.py
@@ -15,8 +15,9 @@ import mango
 import unittest
 
 TEST_DOCS = [
-    {"type": "complex_key", "title": "normal key"},
+    {"_id": "100", "type": "complex_key", "title": "normal key"},
     {
+        "_id": "200",
         "type": "complex_key",
         "title": "key with dot",
         "dot.key": "dot's value",
@@ -24,14 +25,16 @@ TEST_DOCS = [
         "name.first": "Kvothe",
     },
     {
+        "_id": "300",
         "type": "complex_key",
         "title": "key with peso",
         "$key": "peso",
         "deep": {"$key": "deep peso"},
         "name": {"first": "Master Elodin"},
     },
-    {"type": "complex_key", "title": "unicode key", "": "apple"},
+    {"_id": "400", "type": "complex_key", "title": "unicode key", "": "apple"},
     {
+        "_id": "500",
         "title": "internal_fields_format",
         "utf8-1[]:string": "string",
         "utf8-2[]:boolean[]": True,