-
Type: Build Failure
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
Name of Failure:
test.test_command_logging.TestCommandLoggingCommand.test_A_failed_command
test.test_command_logging.TestCommandLoggingCommand.test_A_successful_command
... and several others in test_command_logging.
Link to task:
Context of when and why the failure occurred:
Command logging tests expect a certain message size, but when PyOpenSSL is installed the message is truncated.
Stack trace:
[2024/04/08 18:29:51.404] FAILURE: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) () [2024/04/08 18:29:51.404] self = <test.test_command_logging.TestCommandLoggingServiceId testMethod=test_command_log_messages_omit_serviceId_when_not_in_LB_mode> [2024/04/08 18:29:51.404] def test_case(self): [2024/04/08 18:29:51.404] > self.run_scenario(spec) [2024/04/08 18:29:51.404] test/unified_format.py:1914: [2024/04/08 18:29:51.404] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/04/08 18:29:51.404] test/unified_format.py:1861: in run_scenario [2024/04/08 18:29:51.404] self._run_scenario(spec, uri) [2024/04/08 18:29:51.404] test/unified_format.py:1888: in _run_scenario [2024/04/08 18:29:51.404] self.check_log_messages(spec["operations"], expect_log_messages) [2024/04/08 18:29:51.404] test/unified_format.py:1794: in check_log_messages [2024/04/08 18:29:51.404] formatted_logs = format_logs(cm.records) [2024/04/08 18:29:51.404] test/unified_format.py:1781: in format_logs [2024/04/08 18:29:51.404] data = json_util.loads(log.message) [2024/04/08 18:29:51.404] bson/json_util.py:507: in loads [2024/04/08 18:29:51.404] return json.loads(s, *args, **kwargs) [2024/04/08 18:29:51.404] /opt/python/3.10/lib/python3.10/json/__init__.py:359: in loads [2024/04/08 18:29:51.404] return cls(**kw).decode(s) [2024/04/08 18:29:51.404] /opt/python/3.10/lib/python3.10/json/decoder.py:337: in decode [2024/04/08 18:29:51.404] obj, end = self.raw_decode(s, idx=_w(s, 0).end()) [2024/04/08 18:29:51.404] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/04/08 18:29:51.404] self = <json.decoder.JSONDecoder object at 0x7f2c7d593b50> [2024/04/08 18:29:51.404] s = 'Peer did not staple an OCSP response', idx = 0 [2024/04/08 18:29:51.404] def raw_decode(self, s, idx=0): [2024/04/08 18:29:51.404] """Decode a JSON document from ``s`` (a ``str`` beginning with [2024/04/08 18:29:51.404] a JSON document) and return a 2-tuple of the Python [2024/04/08 18:29:51.404] representation and the index in ``s`` where the document ended. [2024/04/08 18:29:51.404] [2024/04/08 18:29:51.404] This can be used to decode a JSON document from a string that may [2024/04/08 18:29:51.404] have extraneous data at the end. [2024/04/08 18:29:51.404] [2024/04/08 18:29:51.404] """ [2024/04/08 18:29:51.404] try: [2024/04/08 18:29:51.404] obj, end = self.scan_once(s, idx) [2024/04/08 18:29:51.404] except StopIteration as err: [2024/04/08 18:29:51.404] > raise JSONDecodeError("Expecting value", s, err.value) from None [2024/04/08 18:29:51.404] E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [2024/04/08 18:29:51.404] /opt/python/3.10/lib/python3.10/json/decoder.py:355: JSONDecodeError
- is related to
-
PYTHON-3113 Easier debugging with standardized logging
- Development Complete
- related to
-
PYTHON-4355 [Build Failure] Green Framework Tests Failing Logging
- Closed