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

[TCE-1089] LCOV format not parsable #510

Open
Spacetown opened this issue Aug 19, 2024 · 1 comment
Open

[TCE-1089] LCOV format not parsable #510

Spacetown opened this issue Aug 19, 2024 · 1 comment
Labels
jira-issue Issue tracked on JIRA

Comments

@Spacetown
Copy link

Description

We added Codacy to GCOVR CI as a future replacement for Codecov.

Uploading LCOV files is failing without a meaningful error message:

2024-08-19 20:45:29.113Z  info [ReportRules] Parsing coverage data from: /home/runner/work/gcovr/gcovr/./tests/nested/reference/clang-13/coverage.lcov ...  - (ReportRules.scala:41)
2024-08-19 20:45:29.114Z  info [ReportRules] Parsing coverage data from: /home/runner/work/gcovr/gcovr/./tests/nested/reference/gcc-5/coverage.lcov ...  - (ReportRules.scala:41)
2024-08-19 20:45:29.115Z  info [ReportRules] Parsing coverage data from: /home/runner/work/gcovr/gcovr/./tests/nested/reference/gcc-8/coverage.lcov ...  - (ReportRules.scala:41)
2024-08-19 20:45:29.115Z  info [ReportRules] Parsing coverage data from: /home/runner/work/gcovr/gcovr/./tests/nested/reference/gcc-14/coverage.lcov ...  - (ReportRules.scala:41)
2024-08-19 20:45:29.116Z  info [ReportRules] Parsing coverage data from: /home/runner/work/gcovr/gcovr/./tests/nested/reference/clang-10/coverage.lcov ...  - (ReportRules.scala:41)
2024-08-19 20:45:29.116Z  warn [ReportRules] Could not parse report, unrecognized report format (tried: LCOV)  - (ReportRules.scala:59)
2024-08-19 20:45:29.116Z  warn [ReportRules] Could not parse report, unrecognized report format (tried: LCOV)  - (ReportRules.scala:59)
2024-08-19 20:45:29.116Z  warn [ReportRules] Could not parse report, unrecognized report format (tried: LCOV)  - (ReportRules.scala:59)
2024-08-19 20:45:29.116Z  warn [ReportRules] Could not parse report, unrecognized report format (tried: LCOV)  - (ReportRules.scala:59)
2024-08-19 20:45:29.116Z  warn [ReportRules] Could not parse report, unrecognized report format (tried: LCOV)  - (ReportRules.scala:59)

Environment

GitHup pipeline running on Ubuntu 22.04: https://github.com/gcovr/gcovr/actions/workflows/upload_coverage.yml

Expected Behavior

A error message which part of the file isn't accepted.

Actual Behavior

  1. The error message doesn't contain the problem:

    warn [ReportRules] Could not parse report, unrecognized report format (tried: LCOV)  - (ReportRules.scala:59)
    
  2. Accept files which follow the format description: https://github.com/linux-test-project/lcov/blob/07a1127c2b4390abf4a516e9763fb28a956a9ce4/man/geninfo.1#L989

Reproducible Test Case

Upload file https://github.com/gcovr/gcovr/blob/7.2/gcovr/tests/nested/reference/gcc-5/coverage.lcov

@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Aug 19, 2024
@github-actions github-actions bot changed the title LCOV format not parsable [TCE-1089] LCOV format not parsable Aug 19, 2024
Copy link

Internal ticket created : TCE-1089

Spacetown added a commit to Spacetown/gcovr that referenced this issue Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

1 participant