fix: use absolute path for Sonar coverage report#329
Conversation
Sonar resolves sonar.coverage.jacoco.xmlReportPaths relative to each module directory, not the workspace root. Override with an absolute path so the downloaded coverage artifact is found correctly.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe GitHub Actions workflow configuration was modified to explicitly specify the JaCoCo coverage report path when executing SonarQube analysis. The Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
sonar.coverage.jacoco.xmlReportPathswith an absolute path ($GITHUB_WORKSPACE/build/reports/kover/report.xml) in the analysis workflowContext
After splitting the CI workflow (#327), Sonar runs in a separate
workflow_runjob that downloads the coverage artifact. However, Sonar resolves the relativebuild/reports/kover/report.xmlpath per-module (e.g.core/build/reports/kover/report.xml), not from the workspace root. Since the downloaded artifact is at the root, Sonar couldn't find it and reported 0% coverage.Test plan
Summary by CodeRabbit