xd009642 / tarpaulin

A code coverage tool for Rust projects
https://crates.io/crates/cargo-tarpaulin
Apache License 2.0
2.5k stars 180 forks source link

Investigate timeouts on openssh-rs #951

Open xd009642 opened 2 years ago

xd009642 commented 2 years ago

https://github.com/jonhoo/openssh-rs/pull/26#issuecomment-1025285977 @jonhoo

Investigate the timeouts on openssh-rs, taking a look via the tarpaulin debug trace file it looks like each timed out test had a "vfork, but not each vfork has a corresponding fork event, then they all got a SIGCHLD stop and a continue and the test ended after that - which is probably the rustc test runner killing them :thinking:. Also there's a long running tid which gets some TryContinue's (so either tarpaulin got an event it's not sure about or it's a known fallible-continue).

Some pictures attached with text underneath about them

Screenshot from 2022-01-31 18-45-38

This is fairly early on, showing the long running branch with the TryContinue's every now and then. As well as one test completing and another running fine.

Screenshot from 2022-01-31 18-46-20

Another long running TryContinue but this one doesn't reappear, it happens kinda middle of the run... Bit odd we never hear from it again :thinking:

Screenshot from 2022-01-31 18-46-57

The vforks, only 11707 ends up with a fork child... Others strangely don't

Screenshot from 2022-01-31 18-47-19

End of the vforks and the final events tarpaulin gets

xd009642 commented 2 years ago

Also attaching the traces in case I lose the file, easy enough to regenerate but don't yet know how consistent the behaviour is tarpaulin-run.zip