Discrepancy in status check time

Hi there! We are using SonarQube Cloud as a required status check in our GitHub repo settings.

A recent commit today reported that the status check took 17 minutes to report back, but it actually took 43 minutes. The PR had already been open for a day, and this was the latest commit pushed to it.

image

  1. Is there a reason for this discrepancy, or some way that we can fix it?

  2. Can we gain visibility into the logs produced by this process? In years past, code analysis took five-ish minutes, so I’d like to investigate a possible decline in performance.

Thank you!

Hi,

Welcome to the community and thanks for this report!

I suspect that number reflects only one part of the process. Can you check your logs and see how long the CI-side analysis took?

 
Ann

Hi Ann,

Thanks for the reply - I’m happy to provide what I can. We aren’t running this on GitHub Actions or any self-hosted infrastructure. My understanding is that Sonar owns the CI run with Automatic Analysis.

In Administration > Background Tasks, I see a list of activities where each duration is between 3-5 seconds. I’ve attached the file produced by clicking the ellipses.

If there is a place where I can view the full logs, can you please point me in the right direction?

sonarconfig.txt (4.4 KB)

image

Zach

Hi,

We did have an incident Friday where automatic analyses were being delayed. That’s handled. Are you still seeing this?

 
Ann

Hi Ann,

I pushed a fresh commit and Sonar just reported 39 minutes, which was the correct amount of time that I waited.

Given my previous run from earlier in this thread, I expected to see something closer to 17 minutes. I’m definitely still interested in finding the logs if it’s possible, since anything above ten minutes in our CI pipeline is a limiting factor.

image

Zach

Hi Zach,

I get it. I don’t have direct access to those logs, so I’ll need to escalate this. Before I do, can you characterize your project for me in terms of languages and size?

 
Thx,
Ann

Hi Ann,

Thanks, understood! Our project is a Ruby on Rails application with ~110k lines of Ruby code. We have some non-Ruby files like ERB view templates with embedded JS, Gettext translation files, and bash scripts.

Zach

1 Like

Hi,

Thanks for that. This is flagged for the team.

 
Ann