Skip to content
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

Coverage tests are broken #282

Open
c-dilks opened this issue Sep 26, 2024 · 0 comments · May be fixed by #313
Open

Coverage tests are broken #282

c-dilks opened this issue Sep 26, 2024 · 0 comments · May be fixed by #313

Comments

@c-dilks
Copy link
Member

c-dilks commented Sep 26, 2024

The error seems to come from TestMultithreading.h, specifically when the AlgorithmSequence is created or started, but it's not so clear. Perhaps we can disable coverage testing for this header (I tried with GCOVR_EXCL_* comments, but that was unsuccessful).

Error report

FAILED: meson-internal__coverage-html 
/usr/sbin/meson --internal coverage --html /__w/iguana/iguana/iguana_src /__w/iguana/iguana/iguana_src/subprojects /__w/iguana/iguana/iguana_build /__w/iguana/iguana/iguana_build/meson-logs --gcov gcovr --llvm-cov llvm-cov
LLVM (http://llvm.org/):
  LLVM version 18.1.8
  Optimized build.
(INFO) Reading coverage data...
(WARNING) Unrecognized GCOV output for /__w/iguana/iguana/iguana_src/src/iguana/services/YAMLReader.cc
	  branch  1 taken -1
	  branch  1 taken -1
	This is indicative of a gcov output parse error.
	Please report this to the gcovr developers
	at <https://github.com/gcovr/gcovr/issues>.
(WARNING) Exception during parsing:
	NegativeHits: Got negative hit value in gcov line 'branch  1 taken -1' caused by a bug in gcov tool, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68080. Use option --gcov-ignore-parse-errors with a value of negative_hits.warn, or negative_hits.warn_once_per_file.
(WARNING) Exception during parsing:
	NegativeHits: Got negative hit value in gcov line 'branch  1 taken -1' caused by a bug in gcov tool, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68080. Use option --gcov-ignore-parse-errors with a value of negative_hits.warn, or negative_hits.warn_once_per_file.
(ERROR) Exiting because of parse errors.
	You can run gcovr with --gcov-ignore-parse-errors
	to continue anyway.
(WARNING) Unrecognized GCOV output for /__w/iguana/iguana/iguana_src/src/iguana/services/YAMLReader.cc
	  branch  1 taken -1
	  branch  1 taken -1
	This is indicative of a gcov output parse error.
	Please report this to the gcovr developers

(excludes the ~4000 additional lines; see CI logs for full reports)

Note

coverage tests disabled in #305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Unsorted
Development

Successfully merging a pull request may close this issue.

1 participant