CI alaysis failing

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub)
  • CI system used (Github Actions)
  • Scanner command used when applicable (private details masked)
  • Languages of the repository (Javascript)

Hi Team,

I recently change analysis method for one my project from automatic to CI analysis using GitHub Actions. The problem is my total code is having around 56k line of code but my analysis is failing with this error: “This analysis will make your organization ‘oware-technologies’ to reach the maximum allowed lines limit (having 360891 lines).
Please contact the administrator of the organization to resolve this issue.” I don’t know why it’s happening.

Can you please look into it to help me to resolve this issue?

Hi,

Welcome to the community!

It sounds like when you switched to CI-based analysis, more code was picked up. Can you share your analysis parameters and your analysis log starting from the analysis command?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann

Hi, Please have a look on the logs

Run SonarSourcesonarcloud-github-ac.txt (22.2 KB)

Hi,

Thanks for the logs.

This is a PR analysis which should only be taking 3 files into account:

INFO: SCM Publisher 3 source files to be analyzed
INFO: SCM Publisher 3/3 source files have been analyzed (done) | time=260ms

Did you get the error on this analysis?

 
Ann

Yes, getting the following error:

Hi,

Sorry, but I need to make double-sure here. You got that message for the analysis of a PR that corresponds to the analysis log you posted here? The one with only 3 files changed?

INFO: SCM Publisher 3 source files to be analyzed
INFO: SCM Publisher 3/3 source files have been analyzed (done) | time=260ms

 
Ann

Hi,

Yes i got that message on that PR’s analysis.

Hi,

Thanks for the confirmation. The log shows that only 3 files were found as changed in the PR. Is that correct? And how long (how many lines) are those files?

 
Thx,
Ann

Hi,

Yes correct. These files having lines around 1k each.

Thanks

Hi

Thanks for confirming.

I’m out of my depth at this point, so I’ve flagged this for more expert eyes.

 
Ann

Hello Ahmad Ali,

We are still investigating on our end, could you please confirm if you are still facing this issue?

Thanks!

Hi Marta,

Yes still facing the same problem.

Thanks for letting us know! We are still investigating on our end.

Hi Marta,

Sure, thanks for letting me know.

Thanks

Hello Ahmad Ali,

Could you please attach some fresh logs?

Thanks!

Hi Ivan,

Logs are same, there is no change in the logs.

Thanks

Hi Ahmad Ali,

It would be nice to get some fresh logs, even if the outcome is the same there are some things that will really help the investigation on our side.

Thanks!

Hi Ivan,

I think there is a bug on the sonar side. I’m sharing a few insights with you. It shows around 63K lines of code in our billing section but on analysis its showing 400k+ lines of code. We are paying for nothing from last few months.

Please check it on priority.

Hi Ivan,

Can you please update me on it?

Thanks

Hello Ahmad Ali,

On our side, we’re trying to investigate the issue and help you, and in order to do that I will need some fresh logs.