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

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

Open
robbyablaze opened this issue May 21, 2018 · 7 comments

Comments

@robbyablaze
Copy link

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

fleuryc commented Aug 17, 2018

Exact same issue reproduced :

  • GitLab 11.1.4-ee
  • gitlab-runner 10.7.2
  • SonarQube 7.1.0.11001
  • Sonar Gitlab plugin 3.0.0

@accessone67
Copy link

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

any way to still post the info?

@gabrie-allaigre
Copy link
Owner

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

@accessone67
Copy link

accessone67 commented Sep 1, 2018

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

How many issues in Sonarqube for current project ?

@gabrie-allaigre
Copy link
Owner

Sonarqube limit result at 10000, I can fix a problems

@gabrie-allaigre
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants