Since 2 days ago all analysis of one of my two projects fail on every analysis on main. The PR analysis still work, but the ones done on main after merge consistently fail indicating that there are too many lines of code.
That project has 32k lines and our other project has ~50k lines of code according to your own UI. We are paying for 100k lines.
So what is the issue?
This is similar to Reported LOC doubling, analysis refuses to complete but they seem to have had a massive number of JSON files that suddenly got added to the scanning. We do not so I do not see that happening.
What is the issue? Our org-key is “conversy-ai”
Hey @DanielArmyrConversy, welcome to the Community! I had a look at the back-end logs and found this:
BillingValidationException: This analysis will make your organization 'conversy-ai' reach the maximum allowed lines limit of 100000. Current LOC usage is: 50566. LOC count in this analysis: 69212. Language distribution: docker=61,py=27537,shell=529,yaml=41085
Note yaml=41085.
A bit more digging shows that the last good analysis was on Oct 13. It showed around 23k lines of YAML. So it seems like the main thing that changed is now a lot more YAML code is being analyzed. It could be a generated or large YAML file, a newly included directory, or an exclusion that stopped applying. The logs don’t say which files these are, perhaps you could investigate by turning on debug-level logs in the scanner and seeing the files that are being picked up.
By the way the UI still shows the LOC count for the last good analysis, because the one that would exceed the limit never gets processed by the back-end and never updates the measures (including LOC). I can see how it might be interesting to surface this error message though. I will let our PMs know about this sort of friction.
Thank you. You were correct. I had committed a fully rendereed version of the helm charts as a golden reference before a refactor into the ./docs folder which I had not realized was being scanned.
And yes, I do find that the info that you pasted from the logs above really should be the main focus of the error message when this happens. That would have spared all of us lots of time, and I see on your support page that you have even created a banner that points out this very specific issue as a potential cause, something that tells me that I am not the first person to have it.
I agree, we have some room for improvement for self-diagnosing of certain issues on SonarQube Cloud, surfacing errors… I passed the feedback along.
By the way, I forgot to follow up on this yesterday:
No response from support though. Does anyone know if they exist?
Yes, the support team exists, they’re sitting next to me However, only customers who have a paid support plan can create support tickets in the support portal. I suspect that you might have used the chatbot in the support portal but not actually contacted support (most likely you can’t).