-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cover:export/1 never returns in Erlang 27 #8661
Comments
Thanks for your report! Unfortunately most of us are on vacation right now, we'll revisit this once we're back. :-) |
We meck mongoose_tcp_listener:
so, cover crashes when trying to collect data from the remote node. btw, calling mongoose_tcp_listener coverage on the node that was not ever mecked works fine:
|
I've added a bug report to Meck eproxus/meck#248 |
sadly, cover error handling is bad. Using spawn_link instead of spawn in pmap and other places could prevent unreported errors (though would crash cover_server). |
Basically, this happens if cover is started in the distributed mode, i.e. Starting cover in |
There does not seem to be a good way to report problem via the current |
Yeah, it looks like the best way for Meck to support multinode mocking and cover, is to make an explicit PR to OTP with missing functionality. Meck is doing mocking for cover in a bit of a hacky way to begin with. Remote cover nodes not exposing any API to load a mocked version just make stuff worse in this particular case. We managed to start cover in distributed mode on first node-under-test. Good that we only need to mock stuff on that particular node. |
…/OTP-19203 cover: Gracefully handle failures to collect coverage data
Describe the bug
This call never returns in Erlang 27 (even after 3 hours):
To Reproduce
Tricky setup: we get it on MongooseIM test CI. So, we have 5 nodes we have to collect coverage from. We have a lot of tests running before, so there could be a lot of coverage data.
Expected behavior
Same as in Erlang 26: returns after a couple of second.
Affected versions
27
Additional context
I would expect something is wrong with async/remote_calls in the cover.erl. It has a lot of places where it spawns a new process, which would send a reply. If something wrong happens in that new process, caller would never be notified.
It is a bit tricky to figure out what is wrong because of a lot of pmap and remote calls (and the fact that it is hard to get current_stacktraces of these spawned processes). Hope to add more info after debugging.
The text was updated successfully, but these errors were encountered: