You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "bramhanandlingala (via GitHub)" <gi...@apache.org> on 2026/07/19 16:16:30 UTC
[PR] fix(sonarqube): correct aggregate coverage formula in Grafana dashboards [devlake]
bramhanandlingala opened a new pull request, #8997:
URL: https://github.com/apache/devlake/pull/8997
## What does this PR do?
Fixes the SonarQube Grafana dashboard "Test" panel, which showed a
coverage percentage that didn't match SonarQube's own reported
coverage for the project.
## Root cause
The panel recalculated coverage from raw line counts
(`lines_to_cover` / `uncovered_lines`), which only accounts for line
coverage and ignores condition coverage. SonarQube's real `coverage`
metric is already collected correctly per file in
`cq_file_metrics.coverage` — the dashboard just wasn't using it.
## Fix
Changed the panel query to use a weighted average of the existing
`coverage` column (weighted by `lines_to_cover`) instead of
recomputing it from scratch.9
Fixes #8973
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(sonarqube): correct aggregate coverage formula in Grafana dashboards [devlake]
Posted by "bramhanandlingala (via GitHub)" <gi...@apache.org>.
bramhanandlingala commented on PR #8997:
URL: https://github.com/apache/devlake/pull/8997#issuecomment-5208282356
@klesh. @Startrekzky , Requests You please review this PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(sonarqube): correct aggregate coverage formula in Grafana dashboards [devlake]
Posted by "Startrekzky (via GitHub)" <gi...@apache.org>.
Startrekzky merged PR #8997:
URL: https://github.com/apache/devlake/pull/8997
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(sonarqube): correct aggregate coverage formula in Grafana dashboards [devlake]
Posted by "bramhanandlingala (via GitHub)" <gi...@apache.org>.
bramhanandlingala commented on PR #8997:
URL: https://github.com/apache/devlake/pull/8997#issuecomment-5091581336
Thanks, @klesh, @Startrekzky , could you please review this PR when you have a chance?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(sonarqube): correct aggregate coverage formula in Grafana dashboards [devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on PR #8997:
URL: https://github.com/apache/devlake/pull/8997#issuecomment-5083229556
@Startrekzky will be reviewing this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(sonarqube): correct aggregate coverage formula in Grafana dashboards [devlake]
Posted by "bramhanandlingala (via GitHub)" <gi...@apache.org>.
bramhanandlingala commented on PR #8997:
URL: https://github.com/apache/devlake/pull/8997#issuecomment-5026022550
@klesh
Request you please review and approve this PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org