Hi
In the last month we are experiencing failed sonar cloud analysis on the main branch of one of our projects. Whilst the failure message is explicit that it failed due to the number of lines exceeding our organization plan, when I look at our billing information and sum up the lines of code across all our projects it is under 100,000 (73,777 private lines of code analyzed over 13 projects
to be precise). Can anyone help diagnose why the failure is happening despite Sonar Cloud reporting that the lines of code across all our projects is under that permitted by our paid plan.
The failure only happens when analyzing the main branch of one of the projects.
Thanks in advance
Specific details:
- ALM used:
Bitbucket Cloud
- CI system used:
Bitbucket Pipelines
- Scanner command used: We use the sonar cloud pipes for scanning and analysis available to Bitbucket pipeliens, specifically we define the following step in our pipeline yaml
- step: &scan-check-quality-gate-sonarcloud
name: Scan and Check Quality Gate on SonarCloud
services:
- docker
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:1.4.0
variables:
EXTRA_ARGS: '-Dsonar.exclusions="**/resources/**/*,**/notebooks/**/*"'
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6
- Languages of the repository:
python
- Error observed (reported in Bitbucket pipeline log):
✖ Quality Gate failed: Could not fetch quality gate status: b'{"errors":[{"msg":"Analysis with id \\u0027None\\u0027 is not found"}]}'
- Error observed (reported in Sonar Cloud console):
Your analysis with ID xxxxxxxxxxxx has failed: your number of lines exceeds your organization plan