insideapp-oss / sonar-apple

SonarQube plugin for Swift / Objective-C
Other
99 stars 2 forks source link

Plugin spends a lot of time in the step while running sonar-scanner #95

Open douglastaquary opened 1 month ago

douglastaquary commented 1 month ago

New Issue Checklist

Issue Description

Hey guys, all good ?

First of all, thank you for the wonderful work on the sonar plugin. We are trying to use it here at the company. We are testing by running sonarqube on Docker and installing the plugin. However, when executing the sonar-scanner, it executes but spends a lot of time in the step [INFO]: Swift Sensor [sonarapple].

We are using sonar 9.9 and the plugin version is snapshot 0.4.2.

Command executed

sonar-scanner

sonar.properties

    -Dsonar.host.url=http://localhost:9000/ \
    -Dsonar.login='XXX' \
    -Dsonar.apple.resultBundlePath=build/Logs/Test/Test-Bank.xcresult \
    -Dsonar.tests='Tests' \
    -Dsonar.projectKey=my-project \
    -Dsonar.sources=App
Complete output when running sonar-scanner, including the stack trace and command used

Console log:

INFO: Quality profile for swift: Swift
INFO: Quality profile for web: Sonar way
INFO: Quality profile for xml: Sonar way
INFO: Quality profile for yaml: Sonar way
INFO: ------------- Run sensors on module mobile-ios--my-app
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=61ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=4477ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=1346ms
INFO: Sensor Swift Sensor [sonarapple]

The thread is stuck here forever and when it finishes, it sends the zero convergence, despite us specifying the .xcresult in sonar.properties correctly.

Do you have any suggestions?

gaelfoppolo commented 1 month ago

Hi @douglastaquary!

Can you send the full console log of the sonar-scanner? (you can hide the sensitive info of course) It might help us to understand the issue here.

waheeda-ghani-10p commented 3 weeks ago

I'm facing the same issue.