Skip to content

Commit bb675b5

Browse files
author
“jagnd1”
committed
FIX: fix sources section in coverage.xml to match sonar.sources
DISCOVERED: Cobertura sensor still completing in 155ms despite perfect paths ROOT CAUSE: sources section has ../common but sonar.sources=.
1 parent 1d5efb2 commit bb675b5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ jobs:
119119
sed -i 's|filename="/home/runner/work/fmcrypto/fmcrypto/|filename="|g' coverage.xml
120120
sed -i 's|filename="home/runner/work/fmcrypto/fmcrypto/|filename="|g' coverage.xml
121121
122+
# FINAL FIX: Fix sources section to match sonar.sources=.
123+
sed -i 's|<source>../common</source>|<source>common</source>|g' coverage.xml
124+
sed -i 's|<source>../crypto_service</source>|<source>crypto_service</source>|g' coverage.xml
125+
sed -i 's|<source>../pki_service</source>|<source>pki_service</source>|g' coverage.xml
126+
122127
# Verify the fix worked
123128
echo "=== Verifying path fix ==="
124129
grep 'filename=' coverage.xml | head -3

0 commit comments

Comments
 (0)