We’re running our analysis in GitHub Actions with self-hosted SonarQube:
- SonarQube 184.108.40.206107
- SonarScanner 220.127.116.112
- Java 11.0.11 AdoptOpenJDK (64-bit)
A project that used to work started to fail after we upgraded from 8.7 to 9.0
“The last analysis failed because it would have caused your server-wide lines of code total to exceed your 250000 limit.”
This is unexpected as there are still roughly 16k LoC left in the license, the threshold is set to 5k and there have been minimal changes in the repository: between the last working and the first non-working scan, there’s the same number of files being analysed and excluded. Diff to master in the first failing scan is just a few lines: there are no new files or even new lines added.
We have not changed anything in the github actions job or sonar-project.properties, and unnecessary code is excluded as before.
What could be the cause?
In case it matters, the project has only ever analysed PRs. The main branch (or, indeed, any branch) has not been analysed, and the changed lines have been updates to python modules, but we haven’t been able to find anything that they’d have added.