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.