we are using sonar * Enterprise Edition * v10.7 (96327).
We have big coverage.xml for mobile ios apps which has around 146980 lines. When we try to pass this coverage.xml , sonar is complaining that xml is not valid.
While troubleshooting it, i tried to take the same coverage.xml but with the lesser entries around 85000. It was working fine but when the lines are more around 90000 or so it did not work, complaining the same “xml is not valid” issue.
May i know do we have any limit on the lines to be processed by sonar ?
PS: The xml is valid, there is no issue in the xml.
19:23:12.797 INFO 2662/2662 source files have been analyzed
19:23:12.838 INFO Parse coverage report (coverage_updated.xml)
19:23:12.929 INFO Sensor Swift Code Quality and Security [swift] (done) | time=89577ms
19:23:12.930 INFO Sensor IaC Docker Sensor [iac]
19:23:12.986 INFO 0 source files to be analyzed
19:23:12.986 INFO 0/0 source files have been analyzed
19:23:12.986 INFO Sensor IaC Docker Sensor [iac] (done) | time=56ms
19:23:12.986 INFO Sensor EnterpriseSecretsSensor [textenterprise]
19:23:12.986 INFO Available processors: 16
19:23:12.987 INFO Using 16 threads for analysis.
19:23:12.990 INFO Sensor EnterpriseSecretsSensor [textenterprise] (done) | time=5ms
19:23:12.990 INFO Sensor TextAndSecretsSensor [text]
19:23:12.990 INFO Available processors: 16
19:23:12.990 INFO Using 16 threads for analysis.
19:23:13.297 INFO Using git CLI to retrieve untracked files
19:23:13.576 INFO Analyzing language associated files and files included via “sonar.text.inclusions” that are tracked by git
19:23:13.874 INFO 2870 source files to be analyzed
19:23:21.606 INFO 2870/2870 source files have been analyzed
19:23:21.607 INFO Sensor TextAndSecretsSensor [text] (done) | time=8616ms
19:23:21.611 INFO ------------- Run sensors on project
19:23:21.701 INFO Sensor Generic Coverage Report
19:23:21.701 INFO Parsing coverage_updated.xml
19:23:22.092 ERROR Error during parsing of the generic coverage report ‘coverage_updated.xml’. Look at SonarQube documentation to know the expected XML format.
19:23:22.178 INFO EXECUTION FAILURE
19:23:22.179 INFO Total time: 1:49.747s
It sounds like maybe the issue lies in the part of the report after the first 85,000 lines. Try submitting only the 2nd “half” – is it successful or do you receive an error?
You should also be aware that your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is: