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
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?
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.
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
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.