Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
douglastaquary opened this issue Oct 10, 2024 · 2 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@douglastaquary
Copy link

New Issue Checklist

  • Updated the plugin to the latest version
  • I searched for existing GitHub issues

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?

@douglastaquary douglastaquary added the bug Something isn't working label Oct 10, 2024
@gaelfoppolo gaelfoppolo self-assigned this Oct 14, 2024
@gaelfoppolo
Copy link
Contributor

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
Copy link

I'm facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants