lemon24 / reader

A Python feed reader library.
https://reader.readthedocs.io
BSD 3-Clause "New" or "Revised" License
455 stars 38 forks source link

CI hangs on PyPy #293

Closed lemon24 closed 2 years ago

lemon24 commented 2 years ago

CI hangs (or takes very long – even hours) on PyPy.

Examples: one, two.

The cause may be test_update_hook_unexpected_exception, added in https://github.com/lemon24/reader/commit/f81aaee1733b9cd552fb89dbf0611f7d23b23ada (or some interaction of it with PyPy/pytest/coverage); commits before that don't hang CI, AFAICT (example).

I managed to intermittently reproduce this on my laptop, with .tox/pypy39/bin/python -m pytest --runslow --cov -v; removing --cov seems to stop it from happening; it's also not happening when selecting only that test (with -k); also, it only seems to hang at one of the call_update_feeds_workers parameters (but different hooks).

Versions:

$ .tox/pypy39/bin/python --version          
Python 3.9.12 (05fbe3aa5b0845e6c37239768aa455451aa5faba, Mar 29 2022, 09:54:47)
[PyPy 7.3.9 with GCC Apple LLVM 13.0.0 (clang-1300.0.29.30)]
$ .tox/pypy39/bin/python -m pytest --version   
pytest 7.1.3
$ .tox/pypy39/bin/python -m coverage --version
Coverage.py, version 6.4.4 without C extension
Full documentation is at https://coverage.readthedocs.io