-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Test using external command hangs #971
Comments
If you want to try this PR branch #962 it might solve the issue, I'm just trying to solve a flaky test before I can get it merged and do a new release 🙏 |
Tried the branch quickly, it doesn’t help unfortunately. The test still hangs, also with |
Hi! I'm having the same issue when using
but I don't entirely understand how code coverage works except from a highlevel. When running it against library code it works great! |
You can always try |
@xd009642 interesting suggestion, thanks! When trying it locally |
@Nate-Wilkins do you have a repo I can try? The binaries would need to be built while tarpaulin is running via the build commands tarpaulin runs or by setting rustflags when building beforehand (can add Some things with spawning don't really work well with llvm coverage tbh because the writing of coverage data lacks protection from multiple writers so say if you fork a process both child and writer may attempt to write to the same file. Unfortunately this is an issue in the llvm profiling runtime. ptrace signal stuff is pretty annoying tbh, it's very poorly documented and was only really designed for single threaded applications - plus it behaves significantly differently across multiple distros. I really need to dedicate some time to figure out a approach that works across them all 😢 . |
I tested @glts project with
|
@xd009642 sure thing. This is the repository I'm trying to cover - |
Well I tried it with cargo-llvm-cov and it gets the same results as me - which is grimly promising in the sense it means I'm doing nothing stupid my end and the issue is a trickier one. A bit annoying as it means this won't be an easy fix |
Usually I'd suggest to help but I don't know much about code coverage mechanisms... Still, no worries though. I know you maintain this in your spare time so even just informing me of the gap helps a lot. Thanks again! |
Hi there, I have a decently large project (55 unit tests and ~130 integration tests, several taking over a minute to run). I'm trying to switch from llvm-cov to tarpaulin because llvm-cov times out. I had a similar issue with tarpaulin, but this thread has helped (using However, I'm encountering a compilation error in the Github action: https://github.com/nyx-space/nyx/actions/runs/4121534794/jobs/7117577794 . I'm not getting that issue when I run locally though. Any idea if this is due to how the Github action is set up? Or something else entirely ? Thanks |
@xd009642 Thank you for reproducing the original issue. Indeed it works with |
@ChristopherRabotin I believe it's related to this issue #1213 I realised other day llvm engine doesn't seem to work in docker - seems some llvm component isn't provided by the compiler for some reason. I'd recommend using cargo-binstall and installing tarpaulin like that and running the same tarpaulin command |
Thank you for this useful project.
My project’s test suite includes integration tests that can be enabled with feature
miltertest-tests
.These tests use the external utility
miltertest
.miltertest
can be installed on Debian and Ubuntu withapt install miltertest
orapt install opendkim-tools
.When I try to run these tests with Tarpaulin, they time out after 60 seconds.
I tried with
--follow-exec
, too, but it didn’t help. I’m on Ubuntu 20.04 using Rust 1.59.0.The text was updated successfully, but these errors were encountered: