gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 207 forks source link

Always get [EXECUTION FAILURE]: "Can return only the first 10000 results. 10100th result asked." #140

Open robbyablaze opened 6 years ago

robbyablaze commented 6 years ago

Setup: SonarQube 7.1 Sonar Gitlab plugin 3.0.1 Gitlab 10.3.0-ee

Execute with jenkins sonar-scanner with added command: sonar.login=${SONAR_KEY} sonar.projectKey=TEST:TEST_APPS sonar.projectName=TEST_APPS sonar.gitlab.commit_sha=${GIT_COMMIT} sonar.gitlab.ref_name=master sonar.gitlab.project_id=${GIT_URL}

Always get result like this: INFO: Executing post-job GitLab Commit Issue Publisher INFO: Waiting quality gate to complete... INFO: Waiting quality gate to complete... INFO: Waiting quality gate to complete... INFO: Waiting quality gate to complete... INFO: Quality gate status: OK INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 11:22.837s INFO: Final Memory: 78M/2168M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarQube Scanner execution ERROR: SonarQube failed to complete the review of this commit: Error 400 on http://X.X.X.X:Y/api/issues/search?branch=master&componentKeys=TEST:TEST_APPS&p=101&resolved=false

fleuryc commented 6 years ago

Exact same issue reproduced :

accessone67 commented 6 years ago

Same problem {"errors":[{"msg":"Can return only the first 10000 results. 10100th result asked."}]}

any way to still post the info?

gabrie-allaigre commented 6 years ago

Hi, Change project ID with Real project ID (settings general). Because if very slow to search project in gitlab. You use gitlab.com ?

accessone67 commented 6 years ago

Hey

Changed project id did not help still same error. I use gitlab CE 10.5.6

INFO: Waiting quality gate to complete... INFO: Quality gate status: OK INFO: Security Rating on New Code : 1 INFO: Reliability Rating on New Code : 1 INFO: Maintainability Rating on New Code : 1 INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 13:23.304s INFO: Final Memory: 22M/496M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarQube Scanner execution ERROR: SonarQube failed to complete the review of this commit: Error 400 on http://xxxxxx/api/issues/search?componentKeys=XXXX&p=101&resolved=false : {"errors":[{"msg":"Can return only the first 10000 results. 10100th result asked."}]} ERROR: Caused by: Error 400 on http://xxxxxx/api/issues/search?componentKeys=XXX&p=101&resolved=false : {"errors":[{"msg":"Can return only the first 10000 results. 10100th result asked."}]} ERROR:

if I change p=100 then I can see some results.

gabrie-allaigre commented 6 years ago

How many issues in Sonarqube for current project ?

gabrie-allaigre commented 6 years ago

Sonarqube limit result at 10000, I can fix a problems

gabrie-allaigre commented 6 years ago

@Tamps @robbyablaze @fleuryc I create a fix with 4.0.0-rc2