-
Notifications
You must be signed in to change notification settings - Fork 62
ISSUES mode is somehow buggy, despite the fact it works most of the times #23
Comments
Hi @elboletaire ! SonarQube version : 6.3.0.19869 |
Hi @MuyBien , Can you paste all the gitlab-runner logs? |
BTW, I think you need to enable that account in order to be able to properly use it. At least the one we're using is enabled; you should give it a try. |
Closing due to inactivity. |
Yeah sorry, I will try again later but we have a problem with the activate mail. By the way I can log in with the account and do everything so maybe it's activated. I will reopen this issue when I retry and have more information. Thanks |
So here I am again! I tested to add a comment manually with the SonarQube user I created on GitLab and it works. So the user have the correct rights I supposed. Another thing I saw, it's I didn't pass any projectKey to the sonar job. So I added that. We have a root directory and inside modules directory. Each module it's a project on SonarQube. So I guess I will have to make a CI job for each SonarQube project (our modules). So I added a job configured for one SonarQube project (Core) and I added a line with a bug according to our rules, a BigDecimal constrctor non compliant. Here is the job log: sonar-gitlab-job.log
The job is finished with success but I have a lot of warning "Unable to find the class". I don't know what is the effect of this... What can be the problem here? |
And it's true that it didn't parse only modified file but all the module files. So this can be a problem too |
Ok now I see what's your problem, but I'm sorry because I think this is nothing related to our gitlab-sonar-scanner docker image. Either seems to be an issue with the gitlab sonarqube's plugin or with sonarqube itself. We currently have some issues where errors are detected in not modified files, and also I remember more than one time not detecting things that should detect. But I never got enough time to debug this by myself. If you wanna debug this by yourself, you should try running the plugin locally in your machine (without our docker container), and try start discarding issues from there. I'm reopening the issue but changing its title, because we also have experienced it, and it would be nice to have it working properly. BTW, if any of us detects if the issue really comes from the gitlab plugin or from sonarqube, we should scale the issue to them and close this one. |
Note that I'm adding the |
Thanks for reopening the issue. Are you sure it's not possible that I made a mistake somewhere? Thanks for your help! |
No, I'm not sure, but, as said, I think is related to what happens to us. Anyway, I don't have much time for this. So any help would be appreciated (that's why I added the help wanted badge). If you can do any checks on your side and share them here, we'll be glad to read them. |
Hi!
Thanks for this image that save me a lot of time and effort!
But if I manage to connect the docker and the sonar server, it seems that it's analysing all the source files (10min) even in ISSUE mode.
Here is my gitlab-ci job
and my sonar-project.properties
In the job log it says:
INFO: 18831/18831 source files have been analyzed
The text was updated successfully, but these errors were encountered: