No new analysis is happened in SonarCloud

We are using paid plan and Analysis of one project is not happening anymore (other two projects of organization are working correctly).

I can’t see no errors, nothing. But latest PR that I can see in list is dated by 2023/05/17.

Where can I find new PRs? and how to trigger new checks?

Because we are using private repos, I can’t disclose full information at public forum.

Also, I want to remember that SonarCloud is a paid service and we already paid one month for nothing, because service (=analysis) is simply not working

Hey there.

Is your repository using Automatic Analysis or CI-based analysis? You can check this in your project’s Administration > Analysis Method

Automatic Analysis for python

Thanks.

(I know this is going to sound basic) – but as a first step can you try turning Automatic Analysis off and on again and creating a new pull request?

Yes, I did it couple times.

Oh, I was wrong about PRs list.
I can see new PRs in the bottom of list. And status of these PRs is “First analysis in progress”. So, an oldest PR is “in progress” more than a month.

Finally I found the problem root:

Originally sonar .sonarcloud.properties was like:

...
sonar.sources=src
sonar.exclusions=...,src/api/tests.py,...
sonar.tests=...,src/api/tests.py,...
...

After that I replaced file tests.py with folder tests/test_name.py and updated sonar.tests like:

...
sonar.sources=src
sonar.exclusions=...,src/api/tests.py,...
sonar.tests=...,src/api/tests,...
...

The problem is sonar.exclusions should be updated too:

...
sonar.sources=src
sonar.exclusions=...,src/api/tests/**,...
sonar.tests=...,src/api/tests,...
...

As I said before it is really hard to work with SonarCloud without any logs or debug / error information. I have to investigate what I did in last commit and “compile” in my head how it may affect SonarCloud even in case of simple typo.

By the way, I checked Administration / Background Tasks page, and I able to see only succussed:

Success PROJ Project Analysis ID: ... June 28, 2023 - 5:44:46 PM By Anonymous 5:44:46 PM 5:45:02 PM 15s
Success PROJ Project Analysis ID: ... May 17, 2023 - 7:12:05 PM By Anonymous 7:12:06 PM 7:12:13 PM 6.235s

No events (filtered by Status: All) between May and June. Looks like if task fails, no records are being added or a task retrying to analyze eternally without ading any Failed events between retries.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.