Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2130

Stop testing $where with CodeWScope on MongoDB 4.4+

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11
    • Affects Version/s: None
    • Component/s: None
    • None

      This started failing on v4.3.3-387-g46ee960:

       [2020/02/18 12:55:21.742] 2020-02-18T20:55:21.742Z I  CONTROL  [main] db version v4.3.3-387-g46ee960
       [2020/02/18 12:55:21.742] 2020-02-18T20:55:21.742Z I  CONTROL  [main] git version: 46ee9603414d47d18c850e5eccd18834cd7f9669
       [2020/02/18 12:55:21.742] 2020-02-18T20:55:21.742Z I  CONTROL  [main] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
       [2020/02/18 12:55:21.742] 2020-02-18T20:55:21.742Z I  CONTROL  [main] allocator: tcmalloc
       [2020/02/18 12:55:21.742] 2020-02-18T20:55:21.742Z I  CONTROL  [main] modules: enterprise
       [2020/02/18 12:55:21.802] 2020-02-18T20:55:21.742Z I  CONTROL  [main] build environment:
       [2020/02/18 12:55:21.802] 2020-02-18T20:55:21.742Z I  CONTROL  [main]     distmod: rhel62
       [2020/02/18 12:55:21.802] 2020-02-18T20:55:21.742Z I  CONTROL  [main]     distarch: x86_64
       [2020/02/18 12:55:21.802] 2020-02-18T20:55:21.742Z I  CONTROL  [main]     target_arch: x86_64
       [2020/02/18 12:55:21.802] + ./mongodb/bin/mongod --version
      

      Test failure:

       [2020/02/18 13:04:07.420] ERROR [0.065s]: test_where (test_cursor.TestCursor)
       [2020/02/18 13:04:07.420] ----------------------------------------------------------------------
       [2020/02/18 13:04:07.420] Traceback (most recent call last):
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/test/utils.py", line 709, in wrapper
       [2020/02/18 13:04:07.420]     return wrapped(*args, **kwargs)
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/test/test_cursor.py", line 836, in test_where
       [2020/02/18 13:04:07.420]     {"i": 3})))))
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/pymongo/cursor.py", line 1156, in next
       [2020/02/18 13:04:07.420]     if len(self.__data) or self._refresh():
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/pymongo/cursor.py", line 1073, in _refresh
       [2020/02/18 13:04:07.420]     self.__send_message(q)
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/pymongo/cursor.py", line 955, in __send_message
       [2020/02/18 13:04:07.420]     address=self.__address)
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/pymongo/mongo_client.py", line 1346, in _run_operation_with_response
       [2020/02/18 13:04:07.420]     exhaust=exhaust)
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/pymongo/mongo_client.py", line 1464, in _retryable_read
       [2020/02/18 13:04:07.420]     return func(session, server, sock_info, slave_ok)
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/pymongo/mongo_client.py", line 1340, in _cmd
       [2020/02/18 13:04:07.420]     unpack_res)
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/pymongo/server.py", line 136, in run_operation_with_response
       [2020/02/18 13:04:07.420]     _check_command_response(first)
       [2020/02/18 13:04:07.420]   File "/data/mci/a9ce976169b1b17dbdbd76e71e079e24/src/pymongo/helpers.py", line 159, in _check_command_response
       [2020/02/18 13:04:07.420]     raise OperationFailure(msg % errmsg, code, response)
       [2020/02/18 13:04:07.420] OperationFailure: ReferenceError: i is not defined :
       [2020/02/18 13:04:07.420] @:1:15
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: