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
(I'm crossposting SO post as I'm begin understanding how coverage test is working.)
I've been working on a PR for rpy2 package to improve its support for Windows, and the provided pytest test hangs while running coverage.py's tracer only in Windows.
The code base appears not to use any of the things mentioned in "Things that cause trouble."
This test has been in use with GitHub Action for some time with my understanding (Windows test was never reached as the test previously failed in its earlier stage.)
To Reproduce
How can we reproduce the problem? Please be specific. Don't link to a failing CI job. Answer the questions below:
What version of Python are you using?
Python 3.9.7
What version of coverage.py shows the problem? The output of coverage debug sys is helpful.
coverage 6.4.1
What versions of what packages do you have installed? The output of pip freeze is helpful.
What code shows the problem? Give us a specific commit of a specific repo that we can check out. If you've already worked around the problem, please provide a commit before that fix.
Hi, sorry this has taken me a while to get to. It looks like your pull request was rpy2/rpy2#889. It's now merged, does that mean the hang is fixed? I can't tell from the comments there, and I don't have a Windows environment to test in.
I think the owner of rpy2 let it slide for Windows coverage check (like you he's on non-Windows platform). I caught this behavior when I was testing my PR independently from the CI. I'm suspecting the tracer does not line a certain lines in the robjects/lib code, but that's about as far as I could track down.
Describe the bug
(I'm crossposting SO post as I'm begin understanding how coverage test is working.)
I've been working on a PR for
rpy2
package to improve its support for Windows, and the providedpytest
test hangs while runningcoverage.py
'stracer
only in Windows.To Reproduce
How can we reproduce the problem? Please be specific. Don't link to a failing CI job. Answer the questions below:
coverage debug sys
is helpful.pip freeze
is helpful.fix/win_r_home
branch ofrpy2
forkThis command hangs after printing:
Under a debugger, I can follow up until it reaches
coverage.py
'sCollector._start_tracer()
(collector.py
Line 278):Then, it enters
tracer
external module and never comes back out.Removing
--source rpy2.robjects.lib
argument makes the coverage to run normally. You can find therobjects/lib
subpackage here:https://github.com/tikuma-lsuhsc/rpy2/tree/fix/win_r_home/rpy2/robjects/lib
Expected behavior
Not getting stuck...
Additional context
rpy2
package is a wrapper for R software and the target source modules do interact with R at the time ofimport
.The text was updated successfully, but these errors were encountered: