We cannot determine if your project is compatible with Automatic Analysis

Suddenly we started to get this message: " We cannot determine if your project is compatible with Automatic Analysis" - “We cannot determine if your project is compatible with Automatic Analysis due to an issue on GitHub or a timeout.You can still force Automatic Analysis with the risk of your project being partially analyzed.”

Is it possible to see logs for why?

Is this related to the same project you reported here?

I’m asking in case we can consolidate the threads and and the investigation.

Yes it is the same project, but suddenly happened after I added something in sonar.inclusions in web interface, then removed it again as it didn’t work. We have a .sonarcloud.properties instead.

Analysis still failing
Last analysis failed Analysis ID “d3a630fa-99e8-4897-94e9-d4cf7c9e2936”

The analysis is failing due to the error below

ERROR: File source/firmware_version_app.h can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

So it seems the file is falling into both patterns and throwing the error.

Still fails even if i have

sonar.sources=source
sonar.tests=tests

# Exclude subdirectories from source scope
sonar.exclusions=source/application/Audio/**,source/TARGET_STM32F302xE/**,**/firmware_version_app.h

Last analysis failed Analysis ID “e55fb7a4-6108-4702-b1b1-5bd0b85b4830”

Looking again at the new failure, it seems now that a different file is getting indexed twice.

ERROR: File source/framework/RTOSsupport/guard.h can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

I excluded that guard.h too

sonar.exclusions=source/application/Audio/**,source/TARGET_STM32F302xE/**,**/firmware_version_app.h,**/guard.h

But stiil fails Analysis ID “c04d8969-5eb8-4dbd-ab8a-528563610548”

In your case, it could make sense to move to CI-based analysis to not be blocked by autoscan failures that are not visible to you (they would be visible when doing CI-based analysis).

Here are the docs for setting up GitHub Actions

But regardless, here is the new error that was caught

ERROR: File source/framework/RTOSsupport/cmutex.cpp can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files