You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #20, in some tests (e.g. test_integration.test_sync_and_async_parity__simple_app) we're
starting the worker in a sub-process, and coverage doesn't count
anything in worker.py. I tried following this guide, but I couldn't get it to work. Maybe I missed something.
We should consider either:
Start the worker using multiprocessing instead of subprocess
Somehow follow the guide correctly
The text was updated successfully, but these errors were encountered:
Ensure sigterm is handled by coverage. This way, coverage can collect data before process termination
Issue was coverage does not handle sigterm by default, so it couldn't get to collect data upon termination: nedbat/coveragepy#1307 (comment)
Need to explicitly tell coverage to handle sigterm: https://coverage.readthedocs.io/en/latest/changes.html#version-6-4-2022-05-22
Signed-off-by: Imran Ariffin <ariffin.imran@gmail.com>
Since #20, in some tests (e.g.
test_integration.test_sync_and_async_parity__simple_app
) we'restarting the worker in a sub-process, and
coverage
doesn't countanything in
worker.py
. I tried following this guide, but I couldn't get it to work. Maybe I missed something.We should consider either:
multiprocessing
instead ofsubprocess
The text was updated successfully, but these errors were encountered: