-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Tests
-
None
test_mypy is failing on macos + auth after the changes in PYTHON-3073: https://evergreen.mongodb.com/task/mongo_python_driver_test_macos__platform~macos_1014_auth~auth_ssl~nossl_test_3.6_replica_set_cbc7cc33e54756fa797ea94883815c10ae788002_22_02_11_00_54_46
[2022/02/11 01:16:28.187] ERROR: test_aggregate_pipeline (test_mypy.TestPymongo) [2022/02/11 01:16:28.187] ---------------------------------------------------------------------- [2022/02/11 01:16:28.187] Traceback (most recent call last): [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/test/test_mypy.py", line 102, in test_aggregate_pipeline [2022/02/11 01:16:28.187] coll3.insert_many( [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 685, in insert_many [2022/02/11 01:16:28.187] blk.execute(write_concern, session=session) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/bulk.py", line 506, in execute [2022/02/11 01:16:28.187] return self.execute_command(generator, write_concern, session) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/bulk.py", line 384, in execute_command [2022/02/11 01:16:28.187] client._retry_with_session(self.is_retryable, retryable_bulk, s, self) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1284, in _retry_with_session [2022/02/11 01:16:28.187] return self._retry_internal(retryable, func, session, bulk) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1318, in _retry_internal [2022/02/11 01:16:28.187] return func(session, sock_info, retryable) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/bulk.py", line 378, in retryable_bulk [2022/02/11 01:16:28.187] self._execute_command( [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/bulk.py", line 331, in _execute_command [2022/02/11 01:16:28.187] result, to_send = bwc.execute(cmd, ops, client) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/message.py", line 812, in execute [2022/02/11 01:16:28.187] result = self.write_command(cmd, request_id, msg, to_send) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/message.py", line 890, in write_command [2022/02/11 01:16:28.187] reply = self.sock_info.write_command(request_id, msg, self.codec) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/pool.py", line 842, in write_command [2022/02/11 01:16:28.187] helpers._check_command_response(result, self.max_wire_version) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/helpers.py", line 182, in _check_command_response [2022/02/11 01:16:28.187] raise OperationFailure(errmsg, code, response, max_wire_version) [2022/02/11 01:16:28.187] pymongo.errors.OperationFailure: there are no users authenticated, full error: {'operationTime': Timestamp(1644541926, 10), 'ok': 0.0, 'errmsg': 'there are no users authenticated', 'code': 13, 'codeName': 'Unauthorized', '$clusterTime': {'clusterTime': Timestamp(1644541926, 10), 'signature': {'hash': b'[\\0H\xc2\x14m\xe9\x91{\\\x1ca2S!\x9d_\xe5,', 'keyId': 7063250048154337281}}} [2022/02/11 01:16:28.187] ====================================================================== [2022/02/11 01:16:28.187] ERROR: test_bulk_write (test_mypy.TestPymongo) [2022/02/11 01:16:28.187] ---------------------------------------------------------------------- [2022/02/11 01:16:28.187] Traceback (most recent call last): [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/test/test_mypy.py", line 95, in test_bulk_write [2022/02/11 01:16:28.187] self.coll.insert_one({}) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 600, in insert_one [2022/02/11 01:16:28.187] self._insert_one( [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 541, in _insert_one [2022/02/11 01:16:28.187] self.__database.client._retryable_write(acknowledged, _insert_command, session) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1397, in _retryable_write [2022/02/11 01:16:28.187] return self._retry_with_session(retryable, func, s, None) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1284, in _retry_with_session [2022/02/11 01:16:28.187] return self._retry_internal(retryable, func, session, bulk) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1318, in _retry_internal [2022/02/11 01:16:28.187] return func(session, sock_info, retryable) [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 529, in _insert_command [2022/02/11 01:16:28.187] result = sock_info.command( [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/pool.py", line 753, in command [2022/02/11 01:16:28.187] return command( [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/network.py", line 160, in command [2022/02/11 01:16:28.187] helpers._check_command_response( [2022/02/11 01:16:28.187] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/helpers.py", line 182, in _check_command_response [2022/02/11 01:16:28.187] raise OperationFailure(errmsg, code, response, max_wire_version) [2022/02/11 01:16:28.187] pymongo.errors.OperationFailure: there are no users authenticated, full error: {'operationTime': Timestamp(1644541926, 10), 'ok': 0.0, 'errmsg': 'there are no users authenticated', 'code': 13, 'codeName': 'Unauthorized', '$clusterTime': {'clusterTime': Timestamp(1644541926, 10), 'signature': {'hash': b'[\\0H\xc2\x14m\xe9\x91{\\\x1ca2S!\x9d_\xe5,', 'keyId': 7063250048154337281}}} [2022/02/11 01:16:28.188] ====================================================================== [2022/02/11 01:16:28.188] ERROR: test_cursor_iterable (test_mypy.TestPymongo) [2022/02/11 01:16:28.188] ---------------------------------------------------------------------- [2022/02/11 01:16:28.188] Traceback (most recent call last): [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/test/test_mypy.py", line 89, in test_cursor_iterable [2022/02/11 01:16:28.188] self.coll.insert_one({}) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 600, in insert_one [2022/02/11 01:16:28.188] self._insert_one( [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 541, in _insert_one [2022/02/11 01:16:28.188] self.__database.client._retryable_write(acknowledged, _insert_command, session) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1397, in _retryable_write [2022/02/11 01:16:28.188] return self._retry_with_session(retryable, func, s, None) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1284, in _retry_with_session [2022/02/11 01:16:28.188] return self._retry_internal(retryable, func, session, bulk) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1318, in _retry_internal [2022/02/11 01:16:28.188] return func(session, sock_info, retryable) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 529, in _insert_command [2022/02/11 01:16:28.188] result = sock_info.command( [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/pool.py", line 753, in command [2022/02/11 01:16:28.188] return command( [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/network.py", line 160, in command [2022/02/11 01:16:28.188] helpers._check_command_response( [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/helpers.py", line 182, in _check_command_response [2022/02/11 01:16:28.188] raise OperationFailure(errmsg, code, response, max_wire_version) [2022/02/11 01:16:28.188] pymongo.errors.OperationFailure: there are no users authenticated, full error: {'operationTime': Timestamp(1644541926, 10), 'ok': 0.0, 'errmsg': 'there are no users authenticated', 'code': 13, 'codeName': 'Unauthorized', '$clusterTime': {'clusterTime': Timestamp(1644541926, 10), 'signature': {'hash': b'[\\0H\xc2\x14m\xe9\x91{\\\x1ca2S!\x9d_\xe5,', 'keyId': 7063250048154337281}}} [2022/02/11 01:16:28.188] ====================================================================== [2022/02/11 01:16:28.188] ERROR: test_insert_find (test_mypy.TestPymongo) [2022/02/11 01:16:28.188] ---------------------------------------------------------------------- [2022/02/11 01:16:28.188] Traceback (most recent call last): [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/test/test_mypy.py", line 76, in test_insert_find [2022/02/11 01:16:28.188] result = self.coll.insert_one(doc) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 600, in insert_one [2022/02/11 01:16:28.188] self._insert_one( [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 541, in _insert_one [2022/02/11 01:16:28.188] self.__database.client._retryable_write(acknowledged, _insert_command, session) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1397, in _retryable_write [2022/02/11 01:16:28.188] return self._retry_with_session(retryable, func, s, None) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1284, in _retry_with_session [2022/02/11 01:16:28.188] return self._retry_internal(retryable, func, session, bulk) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/mongo_client.py", line 1318, in _retry_internal [2022/02/11 01:16:28.188] return func(session, sock_info, retryable) [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/collection.py", line 529, in _insert_command [2022/02/11 01:16:28.188] result = sock_info.command( [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/pool.py", line 753, in command [2022/02/11 01:16:28.188] return command( [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/network.py", line 160, in command [2022/02/11 01:16:28.188] helpers._check_command_response( [2022/02/11 01:16:28.188] File "/data/mci/ac6ca3788a055ddcaf062696673944bf/src/pymongo/helpers.py", line 182, in _check_command_response [2022/02/11 01:16:28.188] raise OperationFailure(errmsg, code, response, max_wire_version) [2022/02/11 01:16:28.188] pymongo.errors.OperationFailure: there are no users authenticated, full error: {'operationTime': Timestamp(1644541926, 10), 'ok': 0.0, 'errmsg': 'there are no users authenticated', 'code': 13, 'codeName': 'Unauthorized', '$clusterTime': {'clusterTime': Timestamp(1644541926, 10), 'signature': {'hash': b'[\\0H\xc2\x14m\xe9\x91{\\\x1ca2S!\x9d_\xe5,', 'keyId': 7063250048154337281}}}
- is caused by
-
PYTHON-3073 Copy the unit tests from pymongo-stubs into pymongo
- Closed