-
Notifications
You must be signed in to change notification settings - Fork 103
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
CI improvements #103
Comments
This comment was marked as outdated.
This comment was marked as outdated.
SonarCloud currently reports a very low branch coverage, this is probably because every potential failure in an OGDF_ASSERT macro is counted as a possible (and usually uncovered) branch. We should instruct |
Currently, we use the following coverage generation pipeline:
Alternative pipelines would be:
or:
There are multiple variables here:
It seems that gcc bases its branches on the jump commands in the generated machine code [5], while clang uses its AST for the branch analysis and is thus much more precise [1]. gcov-style reports as generated when passing [1] https://clang.llvm.org/docs/SourceBasedCodeCoverage.html |
Also, the thrown exceptions in |
Orga / Config
MacOS
-Wdeprecated-declarations
for ogdf/src/coin and src/ogdf/lib (MacOS warning that sprintf is deprecated, could be suppressed via CMake like this, but we probably should update the dependencies / fix this somehow)OGDF_ARCH/mtune=native
breaks on M1Done
test_coverage.sh
and and sonar-related files from repository afterwards.For SonarSource, this would require running their whole static analysis in our CI, but it would then also be able to collect clang-tidy and cppchecker reports.
The text was updated successfully, but these errors were encountered: