Hi and sorry for the late answer,
BTW, is there any debug option to inspect any detailed logs, based on those analysis IDs?
You see some logs in the background task page, next to the task itself. You can see SonarScanner Context logs for green tasks and some error logs for failed tasks.
Unfortunately, when using Automatic Analysis you can’t see the analysis log by yourself yet.
From the IDs you gave me, I could find the logs of the scanner run on the Automatic Analysis for Java, there are a few logs that I noticed and found weird:
Analysis `AYgfoTrrOX-uwTi9rp1a`
.sonarcloud.properties file is not defined by the user
Seems like you didn’t have the .sonarcloud.properties file on this PR.
INFO: Check ALM binding of project ‘redacted_project_name’
WARN: Failed to check if project ‘redacted_project_name’ is bound
INFO: Detected project binding: ERROR
Is it possible that your project is not correctly bound to the Github repository? Or that your SonarCloud organization is not bound anymore to the Github organization? Do you still have the SonarCloud app installed on your Github organization?
INFO: Included sources: **/pom.xml, **/src/main/**/*
INFO: Excluded sources: **/build-wrapper-dump.json, **/*.vb, **/*.cs, **/*.c, **/*.h, **/*.cc,…
INFO: Included tests: **/src/test/**/*
Seems like it’s using the default configuration and really doesn’t have access to your config file, might explain why there is no file in the resulting analysis.
INFO: 0 files indexed
INFO: 43222 files ignored because of inclusion/exclusion patterns
INFO: 0 files ignored because of scm ignore settings
So indeed wrong configuration and no files are found for this PR.
Analysis `AYgfoTA2nR8fbHxPp2Pc`
Seems like this PR has the .sonarcloud.properties file
INFO: Check ALM binding of project ‘redacted_project_name’
WARN: Failed to check if project ‘redacted_project_name’ is bound
INFO: Detected project binding: ERROR
Here we also have this binding check error.
INFO: Project configuration:
INFO: Included sources: **/pom.xml, **/src/main/**/*
INFO: Excluded sources: **/build-wrapper-dump.json, Resources/interface_1/**/*, Resources/interface_365/**/*, Resources/lang/**/*, Resources/lang-exxon/**/*, Resources/qr/**/*, Resources/slide_template/**/*, **/*.m, **/*.h, **/*.cpp, **/*.java, **/*.mm, **/*.cc, **/*.c++, **/*.vb, **/*.cs, **/*.c, **/*.h, **/*.cc, **/*.cpp, **/*.cxx, **/*.c++, **/*.hh, **/*.hpp, **/*.hxx, **/*.h++, **/*.ipp, **/*.m, **/*.sql, **/*.tab, **/*.pkb, **/src/test/**/*
INFO: Included tests: **/src/test/**/*
INFO: Excluded tests: **/*.vb, **/*.cs, **/*.c, **/*.h, **/*.cc, **/*.cpp, **/*.cxx, **/*.c++, **/*.hh, **/*.hpp, **/*.hxx, **/*.h++, **/*.ipp, **/*.m, **/*.sql, **/*.tab, **/*.pkb
INFO: Excluded sources for coverage: **/*
INFO: Excluded sources for duplication: ui_tests
INFO: 0 files indexed
INFO: 27030 files ignored because of inclusion/exclusion patterns
INFO: 0 files ignored because of scm ignore settings
And it seems like your configuration of the sources is wrong in the .sonarcloud.properties file. Check this doc to define it correctly: Analysis Scope | SonarCloud Docs
I’ll also check with my colleagues if we might have an issue with reading the sonar.sources property from the config file on the Automatic Analysis for Java just in case.