Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
INFO: Importing /github/workspace/clover.xml
[141](https://github.com/RCheesley/mautic/runs/7638207286?check_suite_focus=true#step:12:142)WARN: Failed to resolve 2 file path(s) in PHPUnit coverage clover.xml report. Nothing is imported related to file(s): /github/workspace//app/bundles/CoreBundle/Helper/EmojiMap/UnicodeToHtmlEmojiMap.php;/github/workspace//app/bundles/CoreBundle/Templating/Helper/MautibotHelper.php
Hi folks!
Struggling to get the code coverage report (from Codecov) to be used in the SonarCloud scan correctly - this error is being thrown in the logs (check the actions log: Sonarcloud scan · RCheesley/mautic@eef7501 · GitHub).
I’m going to take a guess (without seeing the actual coverage report) and say that SonarCloud doesn’t like the double / in the file paths (//app/). Do other files in the coverage report have this as well?
It’s a bit strange because the log literally just highlights those two files - nothing else. I would have expected to have a giant list of every PHP file if there was a syntax error?
My point is really the coverage report that is being produced in previous steps (the clover.xml file ultimately being imported). Does that file contain the odd file paths (with the // oddity) or only those two files?
I downloaded that file from the GitHub Actions workflow where it is generated. The sed command moves it into the container as otherwise it was not getting picked up at all (ref this thread: Code coverage doesn't work with GitHub action - #7 by sylfabre)
I am not sure how to grab the actual file from that stage in the workflow - it was working in a run I did before: