canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
30 stars 37 forks source link

coverage: ensure that "coverage clean" does its job #872

Closed mustafakemalgilor closed 2 months ago

mustafakemalgilor commented 2 months ago

removed parameters from "coverage run" as they should be read from the .coveragerc file.

"coverage clean" now can see "coverage run" is being executed in parallel mode and can now clean the artifacts properly.

tox:testenv:coverage now runs "coverage clean" after the coverage report generation.

Supersedes #871

mustafakemalgilor commented 2 months ago

We should also find a way to capture the interrupt signal and call the 'coverage clean'.

mustafakemalgilor commented 2 months ago

We should also find a way to capture the interrupt signal and call the 'coverage clean'.

This is done.

mustafakemalgilor commented 2 months ago

Now added the optional '-coverage' to py3 so we're now able to skip coverage related stuff on py3 env run.

mustafakemalgilor commented 2 months ago

So I've made a few significant changes:

I think the patch is now much cleaner.

dosaboy commented 2 months ago

nice cleanups in the final stage! lgtm!