Hi Giovanni,
Thanks for the log. Nothing obvious is jumping out at me from it. However, there are a few interesting things:
2025-02-21T10:59:10.3508166Z [command]/opt/maven/apache-maven-3.9.6/bin/mvn -f /agent/_work/1/s/hera-exp-consultazione/pom.xml -s /agent/_work/_temp/settings.xml -DskipTests=true -Dsonar.sources=/agent/_work/1/s/hera-exp-consultazione/src/ -X sonar:sonar
You’re artificially constraining analysis to what looks like a small subset of the project code. Why?
2025-02-21T11:00:07.9708609Z [INFO] 11:00:07.970 Found manual configuration of branch/PR analysis. Skipping automatic configuration.
This is going to constrain analysis to only what was changed in the PR. However, we also have this:
2025-02-21T11:00:11.9878604Z [DEBUG] 11:00:11.987 loading config FileBasedConfig[/home/AzDevOps/.config/jgit/config]
2025-02-21T11:00:12.0084349Z [DEBUG] 11:00:12.007 readpipe [/usr/bin/git, --version],/usr/bin
2025-02-21T11:00:12.0481879Z [DEBUG] 11:00:12.045 readpipe may return 'git version 2.34.1'
2025-02-21T11:00:12.0495041Z [DEBUG] 11:00:12.046 remaining output:
2025-02-21T11:00:12.0495649Z
2025-02-21T11:00:12.0496596Z [DEBUG] 11:00:12.046 readpipe [/usr/bin/git, config, --system, --show-origin, --list, -z],/usr/bin
2025-02-21T11:00:12.0642669Z [DEBUG] 11:00:12.063 readpipe may return 'null'
2025-02-21T11:00:12.0643165Z [DEBUG] 11:00:12.063 remaining output:
2025-02-21T11:00:12.0643346Z
2025-02-21T11:00:12.1052313Z [DEBUG] 11:00:12.101 readpipe rc=128
2025-02-21T11:00:12.1053160Z [DEBUG] 11:00:12.104 Exception caught during execution of command '[/usr/bin/git, config, --system, --show-origin, --list, -z]' in '/usr/bin', return code '128', error message 'fatal: unable to read config file '/etc/gitconfig': No such file or directory
2025-02-21T11:00:12.1054183Z '
So Git errors-out trying to figure out which files should be part of the analysis scope.
When you click into the files in your screenshots, what do you see? And is anything marked as “new”? Since this is a PR analysis, and analysis couldn’t determine what was in the PR (that’s based on SCM metadata) it may well be that your dashes simply mean that no LOC were found for the PR analysis.
Altho why the files show up at all in that context is a good question. But basically, analysis is fundamentally broken at this point, so I kinda think all bets are off.
Can you sort these things out and try again?
Ann