You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2026/09/13 11:38:15 UTC

(celix) branch feature/update-gh-workflow-ubuntu updated: Update coverage build config, ignoring inconsistent and mismatch

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/update-gh-workflow-ubuntu
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/feature/update-gh-workflow-ubuntu by this push:
     new 0e996ce36 Update coverage build config, ignoring inconsistent and mismatch
0e996ce36 is described below

commit 0e996ce36d809cf3fd84d085eeb4db1fb3ff0316
Author: Pepijn Noltes <pn...@apache.org>
AuthorDate: Sun Sep 13 13:38:06 2026 +0200

    Update coverage build config, ignoring inconsistent and mismatch
---
 .github/workflows/coverage.yml         | 2 +-
 cmake/celix_project/CodeCoverage.cmake | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 61de1b97d..afbed1ce6 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -72,7 +72,7 @@ jobs:
           source generators/conanrun.sh
           make coverage
           source generators/deactivate_conanrun.sh
-          lcx="lcov --output-file=coverage.info --ignore-errors inconsistent,inconsistent" && for i in `find . -name "*.info.cleaned"`; do lcx+=" --add-tracefile=$i"; done && $lcx
+          lcx="lcov --output-file=coverage.info --ignore-errors inconsistent,mismatch" && for i in `find . -name "*.info.cleaned"`; do lcx+=" --add-tracefile=$i"; done && $lcx
       - name: Codecov
         uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c #v4.4.1
         if: github.repository_owner == 'apache'
diff --git a/cmake/celix_project/CodeCoverage.cmake b/cmake/celix_project/CodeCoverage.cmake
index 7615b38fc..53fce17a9 100644
--- a/cmake/celix_project/CodeCoverage.cmake
+++ b/cmake/celix_project/CodeCoverage.cmake
@@ -134,8 +134,8 @@ function (setup_target_for_coverage)
 
     		# Capturing lcov counters and generating report
             COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/coverage
-    		COMMAND ${LCOV_PATH} --directory ${COVERAGE_SCAN_DIR} --capture --output-file ${OUTPUT_FILE}
-    		COMMAND ${LCOV_PATH} --remove ${OUTPUT_FILE} '**/error_injector/*' '**/mock/*' '**/.conan/*' '**/test/*' '**/gtest/*' '**/tst/*' '**/celix/gen/*' '**/googletest_project/*' '**/glog/*' '/usr/*' --output-file ${OUTPUT_FILE}.cleaned
+    		COMMAND ${LCOV_PATH} --directory ${COVERAGE_SCAN_DIR} --capture --output-file ${OUTPUT_FILE} --ignore-errors inconsistent,mismatch,empty
+    		COMMAND ${LCOV_PATH} --remove ${OUTPUT_FILE} '**/error_injector/*' '**/mock/*' '**/.conan/*' '**/test/*' '**/gtest/*' '**/tst/*' '**/celix/gen/*' '**/googletest_project/*' '**/glog/*' '/usr/*' --output-file ${OUTPUT_FILE}.cleaned --ignore-errors unused,empty
 
             #test dependencies, so that test is runned
             DEPENDENCIES ${TEST_TARGET_NAME}