Gradle Sonar report build

Hi,

After a bit of refactoring around gradle I got to a state that coverage seems to be sent to sonar but I notice a weird error:

Task :sonar
Use of preview features have been detected during analysis. Enable DEBUG mode to see them.

 Could not read SonarArchitecture IR data from directory /home/circleci/project/build/sonar/architecture-ir/java.
java.io.FileNotFoundException: /home/circleci/project/build/sonar/architecture-ir/java/cu-66.ir (No such file or directory)

Having a bit trouble understanding the meaning of it since there doesn’t seem to exist any references in the internet for “SonarArchitecture IR” and the folder does contain other cu-xx.ir files from 99 to 159 :grimacing:

Tech context:

  • Gradle 8.10.2
  • org.sonarqube 5.1.0.4882
  • Java eclipse-temurin 21

can anyone provide any context that might help get to the bottom?

Thanks

Hi,

Welcome to the community!

I’m not sure why you’re seeing that error, but you can safely ignore it. And I’ll raise this internally to get that fixed.

 
Ann

1 Like

Hi Ann,

From my side it seems that sonar cloud seems to retain state of something of the project itself.
To add a weirder detail if I create a branch from main the first commit won’t have the issue but the next one will go on having the same error.

Even if both commits are empty commits.

Thanks

1 Like

Hi @Opetion

SonarArchitecture is a new SonarQube analyzer that addresses structural and architectural issues in code bases. You can find more details here. Thanks for creating the first community report for this new plugin :slight_smile:

The log means that architectural analysis was not executed because a file generated by the frontend was missing, which is likely due to caching. As long as you are not interested in architectureal analysis results (currently, rules S7091 and S7027), you can safely ignore this message, as Ann mentioned.

Technical explanation:

  • The frontend generates one file per Java file, containing the relevant information (IR) needed for architectural analysis.
  • The backend expected the IR for a specific Java file to be present, but the frontend didn’t generate it.
  • This is either a problem in the frontend or in how the IR index is merged with the previous analysis index.

I created this ticket to track this issue.

Cheers,
Marco

4 Likes

The same issue has been reproduced in a Maven multi-module project.
If you need some more details please let me know
@Marco_Kaufmann @ganncamp