Open mulkieran opened 2 years ago
Doing stratis-min tests is a good idea, but using the coverage tools is somewhat complex: https://doc.rust-lang.org/rustc/instrument-coverage.html.
The first obstacle is getting a version of Rust built with the profiler runtime. The default nightly version is built that way, but stable isn't. So, for a user to do there profiling, they:
Email of inquiry sent.
The work has been scheduled, might be ready in Rust 1.71.
It looks like it went in, so profiling should be a go.
We can gather profile data for devicemapper now, see https://github.com/stratis-storage/devicemapper-rs/pull/891 . We would like to be able to use cargo-llvm-cov, which does a lot of management work, but it may not be flexible enough.
We're using the coverage in stratisd to guide testing. For libblkid-rs, just merged, we can see if we can get an out of the box tool, like llvm-cov to work for us.
I think it might be quite straightforward to do this for the stratis-min tests that we will be merging soon.