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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to