gleb-sevruk / pycrunch-engine

NCrunch inspired tool for continuous testing Python
https://pycrunch.com
Other
57 stars 8 forks source link

Pycharm: Running a lot of tests results in `_pickle.UnpicklingError: pickle data was truncated` #93

Open antondeliverect opened 1 year ago

antondeliverect commented 1 year ago

When you try to run a lot(i.e. few thousands) of tests via Run button there's exception raised:

Fatal error: protocol.data_received() call failed.
protocol: <pycrunch.child_runtime.client_protocol.EchoClientProtocol object at 0x102232470>
transport: <_SelectorSocketTransport fd=6 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/Users/anton/.pyenv/versions/3.10.9/lib/python3.10/asyncio/selector_events.py", line 876, in _read_ready__data_received
    self._protocol.data_received(data)
  File "/Users/anton/..../venv/lib/python3.10/site-packages/pycrunch/child_runtime/client_protocol.py", line 43, in data_received
    msg = pickle.loads(data)
_pickle.UnpicklingError: pickle data was truncated

Splitting it in smaller batches helps to fix this, but it's quite annoying._. yet again, wanted to mention that it's a fantastic(and quite unique) plugin.