PR analysis for Code Coverage includes files not changed in the Pull Request

Hi,

We have connected SonarQube with Github and amongst the things we require is Code Coverage.
We are using jacoco for report generation and SonarQube Developer Edition Version 7.7 (build 23042) for a multi-module, java, maven-built project.
Current status is:

  • Analysis works ok,
  • covers jUnits and ITs
  • master branch is scanned correctly

But:
PR Code Coverage analysis shows files that were not part of the PR at all. Meaning the developer did not alter them.
Such false positives usually are recently changes classes but we have seen older classes as well, that haven’t changed in months.
Code Coverage is reported correctly, what is wrong is having a list of 10-15 .java classes unrelated to your changes and having to analyse them to understand what is happening.

Any advice or redirection to documentation is appreciated.
Worst case scenario, can we mark such reported files as “False Positive” to avoid seeing them in the report and calculating accurately the Code Coverage %?

Thanks
Dimitris

1 Like

Hi Dimitris,

Could you show us the logs of the scanner (preferably with debug enabled) of one the analysis of the P/R that has files that shouldn’t be there?
There are a couple of things that could go wrong while scanning the project and that would help us narrow it down.

Hi ,

I have a similar issue. We have connected SonarQube with Github and amongst the things we require is Code Coverage.
We are using lcov for report generation and SonarQube Developer Edition Version 8.6 for a multi-module, typescript project
Current status is:

Analysis works ok,
master branch is scanned correctly
But:
PR Code Coverage analysis shows files that were not part of the PR at all. Meaning the developer did not alter them.
Such false positives usually are recent changes classes but we have seen older classes as well, that haven’t changed in months.
Code Coverage is reported correctly, what is wrong is having a list of 10-15 files unrelated to your changes and having to analyse them to understand what is happening.

Any advice or redirection to documentation is appreciated.
Worst case scenario, can we mark such reported files as “False Positive” to avoid seeing them in the report and calculating accurately the Code Coverage %?

Thanks
Suma

We are experiencing the same problem. Its very frustrating, and essentially makes the product useless since its blocking PR’s on low coverage when the lines were not touched.

If anyone has any ideas or suggestions I’d love to know.

Nick

1 Like

If you are using git and if the SonarQube scanner is detecting “new code” in the PR from git, most likely there is a problem with the way branches are being cloned or checked out.

Please post the logs of the scanner and I can help finding the relevant information about what’s going on.

Hi Duarte Meneses ,

Please find the sonarscanner logs below.

Now using node v12.18.3 (npm v6.14.6) [15:26:28] Starting analysis… [15:26:28] Checking if executable exists: /home/jenkins/.sonar/native-sonar-scanner/sonar-scanner-4.5.0.2216-linux/bin/sonar-scanner [15:26:28] Platform binaries for SonarScanner found. Using it. INFO: Scanner configuration file: /home/jenkins/.sonar/native-sonar-scanner/sonar-scanner-4.5.0.2216-linux/conf/sonar-scanner.properties INFO: Project root configuration file: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/sonar-project.properties INFO: SonarScanner 4.5.0.2216 INFO: Java 11.0.3 AdoptOpenJDK (64-bit) INFO: Linux 4.4.0-1077-aws amd64 INFO: User cache: /home/jenkins/.sonar/cache INFO: Scanner configuration file: /home/jenkins/.sonar/native-sonar-scanner/sonar-scanner-4.5.0.2216-linux/conf/sonar-scanner.properties INFO: Project root configuration file: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/sonar-project.properties INFO: Analyzing on SonarQube server 8.8.0 INFO: Default locale: “en_US”, source code encoding: “UTF-8” INFO: Load global settings INFO: Load global settings (done) | time=102ms INFO: Server id: 250EC51E-AXkZYjrRKJas6ylP3EYR INFO: User cache: /home/jenkins/.sonar/cache INFO: Load/download plugins INFO: Load plugins index INFO: Load plugins index (done) | time=55ms INFO: Load/download plugins (done) | time=201ms INFO: Loaded core extensions: developer-scanner

INFO: JavaScript/TypeScript frontend is enabled INFO: Process project properties INFO: Process project properties (done) | time=8ms INFO: Execute project builders INFO: Execute project builders (done) | time=2ms INFO: Project key: maintenance-solution-dashboard INFO: Base dir: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests INFO: Working dir: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork INFO: Load project settings for component key: ‘maintenance-solution-dashboard’ INFO: Load project settings for component key: ‘maintenance-solution-dashboard’ (done) | time=38ms INFO: Load project branches INFO: Load project branches (done) | time=38ms INFO: Load project pull requests INFO: Load project pull requests (done) | time=34ms INFO: Load branch configuration INFO: Detected branch/PR in ‘Jenkins’ INFO: Auto-configuring branch ‘MS-1949-Unskip-Selenium-tests’ INFO: Load branch configuration (done) | time=2ms INFO: Auto-configuring with CI ‘Jenkins’ INFO: Load quality profiles INFO: Load quality profiles (done) | time=72ms INFO: Auto-configuring with CI ‘Jenkins’ INFO: Load active rules

INFO: Load active rules (done) | time=1647ms INFO: Branch name: MS-1949-Unskip-Selenium-tests INFO: Indexing files… INFO: Project configuration: INFO: Excluded sources: dist/, node_modules/, testui/, flow-typed/, coverage/**, /services/, /locales/, /mock/ INFO: Excluded sources for coverage: /tests/, src/utils/tracking/*, src/components/molecules/facility-map/FacilityMap.tsx, src/components/molecules/facility-view/FacilityView.tsx, src/components/molecules/maintenance-record/MaintenanceRecord.tsx, src/components/molecules/maintenance-record/sub-components/MaintenanceRecordEditDialog.tsx, src/components/molecules/charts/MeasurementChart/MeasurementChart.tsx, src/components/ecosystems/user-settings-page/UserSettingsPage.tsx, src/components/molecules/charts/SynchronisedChart/synchronisedChartOptions.ts, /selenium_tests INFO: Excluded sources for duplication: src/components/molecules/sensor-type-versions-container/tests/SensorTypeVersionsContainer.test.tsx, src/components/ecosystems/admin-asset-overview/tests/AdminAssetOverview.test.tsx, src/components/molecules/admin-kit-container/tests/AdminKitContainer.test.tsx, src/components/molecules/admin-kit-container/AddEditSensorKitDialog/AddEditSensorKitDialog.tsx, src/components/molecules/admin-kit-container/AddEditConnectivityKitDialog/AddEditConnectivityKitDialog.tsx INFO: 799 files indexed INFO: 85 files ignored because of inclusion/exclusion patterns INFO: 0 files ignored because of scm ignore settings INFO: Quality profile for ts: Holos Quality Profile INFO: ------------- Run sensors on module maintenance-solution-dashboard INFO: JavaScript/TypeScript frontend is enabled INFO: Load metrics repository INFO: Load metrics repository (done) | time=29ms

INFO: Sensor CSS Rules [cssfamily] INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped. INFO: Sensor CSS Rules [cssfamily] (done) | time=3ms INFO: Sensor C# Project Type Information [csharp] INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms INFO: Sensor C# Properties [csharp] INFO: Sensor C# Properties [csharp] (done) | time=2ms INFO: Sensor JavaXmlSensor [java] INFO: Sensor JavaXmlSensor [java] (done) | time=42ms INFO: Sensor HTML [web] INFO: Sensor HTML [web] (done) | time=5ms INFO: Sensor VB.NET Project Type Information [vbnet] INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms INFO: Sensor VB.NET Properties [vbnet] INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms INFO: Sensor JaCoCo XML Report Importer [jacoco] INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=10ms INFO: Sensor TypeScript analysis [javascript]

INFO: Deploying custom rules bundle jar:file:/home/jenkins/.sonar/cache/58217f4b9448dc3527b59fd864356644/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/.sonartmp/eslint-bridge-bundle/package/custom-rules2839527496423542789

INFO: Found 1 tsconfig.json file(s): [/home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/tsconfig.json] INFO: 777 source files to be analyzed INFO: Analyzing 777 files using tsconfig: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/tsconfig.json INFO: Load project repositories INFO: Load project repositories (done) | time=80ms

INFO: 62/777 files analyzed, current file: src/components/molecules/facility-overview-information/tests/FacilityOverviewInformation.test.tsx

INFO: 539/777 files analyzed, current file: src/components/molecules/charts/SynchronisedChart/synchronisedChartOptions.ts

INFO: 777/777 source files have been analyzed INFO: Sensor TypeScript analysis [javascript] (done) | time=29842ms INFO: Sensor JavaScript/TypeScript Coverage [javascript] INFO: Analysing [/home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/coverage/lcov.info] WARN: Could not resolve 83 file paths in [/home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/coverage/lcov.info] WARN: First unresolved path: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/src/mock/all-org-device-groups.ts (Run in DEBUG mode to get full list of unresolved paths) INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=112ms INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=3ms INFO: Sensor JavaSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/java INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/java INFO: No UCFGs have been included for analysis. INFO: Sensor JavaSecuritySensor [security] (done) | time=4ms INFO: Sensor CSharpSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/ucfg_cs2 INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/ucfg_cs2 INFO: No UCFGs have been included for analysis. INFO: Sensor CSharpSecuritySensor [security] (done) | time=1ms INFO: Sensor PhpSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/php INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/php INFO: No UCFGs have been included for analysis. INFO: Sensor PhpSecuritySensor [security] (done) | time=0ms INFO: Sensor PythonSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/python INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/python INFO: No UCFGs have been included for analysis. INFO: Sensor PythonSecuritySensor [security] (done) | time=0ms INFO: Sensor JsSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/js INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/js INFO: No UCFGs have been included for analysis. INFO: Sensor JsSecuritySensor [security] (done) | time=1ms INFO: ------------- Run sensors on project INFO: Sensor Zero Coverage Sensor INFO: Sensor Zero Coverage Sensor (done) | time=5ms INFO: CPD Executor 192 files had no CPD blocks INFO: CPD Executor Calculating CPD for 581 files INFO: CPD Executor CPD calculation finished (done) | time=193ms INFO: Load New Code definition INFO: Load New Code definition (done) | time=24ms INFO: Computing New Code since fork with ‘master’ INFO: Analysis report generated in 291ms, dir size=2 MB INFO: Analysis report compressed in 926ms, zip size=1 MB INFO: Analysis report uploaded in 290ms INFO: ANALYSIS SUCCESSFUL, you can browse http://frontend-sonarqube.mgmt.az/dashboard?id=maintenance-solution-dashboard&branch=MS-1949-Unskip-Selenium-tests INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at http://frontend-sonarqube.mgmt.az/api/ce/task?id=AXmFPNL9OkXu5eRZBx98

INFO: Analysis total time: 42.415 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 43.635s INFO: Final Memory: 20M/74M INFO: ------------------------------------------------------------------------ [15:27:12] Analysis finished. [15:27:12] Starting analysis… [15:27:12] Checking if executable exists: /home/jenkins/.sonar/native-sonar-scanner/sonar-scanner-4.5.0.2216-linux/bin/sonar-scanner [15:27:12] Platform binaries for SonarScanner found. Using it. INFO: Scanner configuration file: /home/jenkins/.sonar/native-sonar-scanner/sonar-scanner-4.5.0.2216-linux/conf/sonar-scanner.properties INFO: Project root configuration file: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/sonar-project.properties INFO: SonarScanner 4.5.0.2216 INFO: Java 11.0.3 AdoptOpenJDK (64-bit) INFO: Linux 4.4.0-1077-aws amd64 INFO: User cache: /home/jenkins/.sonar/cache

INFO: Scanner configuration file: /home/jenkins/.sonar/native-sonar-scanner/sonar-scanner-4.5.0.2216-linux/conf/sonar-scanner.properties INFO: Project root configuration file: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/sonar-project.properties INFO: Analyzing on SonarQube server 8.8.0 INFO: Default locale: “en_US”, source code encoding: “UTF-8” INFO: Load global settings INFO: Load global settings (done) | time=130ms INFO: Server id: 250EC51E-AXkZYjrRKJas6ylP3EYR INFO: User cache: /home/jenkins/.sonar/cache INFO: Load/download plugins INFO: Load plugins index INFO: Load plugins index (done) | time=65ms INFO: Load/download plugins (done) | time=319ms INFO: Loaded core extensions: developer-scanner

INFO: JavaScript/TypeScript frontend is enabled INFO: Process project properties INFO: Process project properties (done) | time=13ms INFO: Execute project builders INFO: Execute project builders (done) | time=2ms INFO: Project key: maintenance-solution-dashboard INFO: Base dir: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests INFO: Working dir: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork INFO: Load project settings for component key: ‘maintenance-solution-dashboard’ INFO: Load project settings for component key: ‘maintenance-solution-dashboard’ (done) | time=31ms INFO: Load project branches INFO: Load project branches (done) | time=33ms INFO: Load project pull requests INFO: Load project pull requests (done) | time=35ms INFO: Load branch configuration INFO: Found manual configuration of branch/PR analysis. Skipping automatic configuration. INFO: Load branch configuration (done) | time=4ms INFO: Auto-configuring with CI ‘Jenkins’ INFO: Load quality profiles INFO: Load quality profiles (done) | time=62ms INFO: Auto-configuring with CI ‘Jenkins’ INFO: Load active rules

INFO: Load active rules (done) | time=1740ms INFO: Pull request 568 for merge into master from MS-1949-Unskip-Selenium-tests INFO: SCM collecting changed files in the branch INFO: SCM collecting changed files in the branch (done) | time=187ms INFO: Indexing files… INFO: Project configuration: INFO: Excluded sources: dist/, node_modules/, testui/, flow-typed/, coverage/**, /services/, /locales/, /mock/ INFO: Excluded sources for coverage: /tests/, src/utils/tracking/*, src/components/molecules/facility-map/FacilityMap.tsx, src/components/molecules/facility-view/FacilityView.tsx, src/components/molecules/maintenance-record/MaintenanceRecord.tsx, src/components/molecules/maintenance-record/sub-components/MaintenanceRecordEditDialog.tsx, src/components/molecules/charts/MeasurementChart/MeasurementChart.tsx, src/components/ecosystems/user-settings-page/UserSettingsPage.tsx, src/components/molecules/charts/SynchronisedChart/synchronisedChartOptions.ts, /selenium_tests INFO: Excluded sources for duplication: src/components/molecules/sensor-type-versions-container/tests/SensorTypeVersionsContainer.test.tsx, src/components/ecosystems/admin-asset-overview/tests/AdminAssetOverview.test.tsx, src/components/molecules/admin-kit-container/tests/AdminKitContainer.test.tsx, src/components/molecules/admin-kit-container/AddEditSensorKitDialog/AddEditSensorKitDialog.tsx, src/components/molecules/admin-kit-container/AddEditConnectivityKitDialog/AddEditConnectivityKitDialog.tsx INFO: 799 files indexed INFO: 85 files ignored because of inclusion/exclusion patterns INFO: 0 files ignored because of scm ignore settings INFO: Quality profile for ts: Holos Quality Profile INFO: ------------- Run sensors on module maintenance-solution-dashboard INFO: JavaScript/TypeScript frontend is enabled INFO: Load metrics repository INFO: Load metrics repository (done) | time=34ms

INFO: Sensor CSS Rules [cssfamily] INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped. INFO: Sensor CSS Rules [cssfamily] (done) | time=7ms INFO: Sensor C# Project Type Information [csharp] INFO: Sensor C# Project Type Information [csharp] (done) | time=3ms INFO: Sensor C# Properties [csharp] INFO: Sensor C# Properties [csharp] (done) | time=1ms INFO: Sensor JavaXmlSensor [java] INFO: Sensor JavaXmlSensor [java] (done) | time=12ms INFO: Sensor HTML [web] INFO: Sensor HTML [web] (done) | time=12ms INFO: Sensor VB.NET Project Type Information [vbnet] INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms INFO: Sensor VB.NET Properties [vbnet] INFO: Sensor VB.NET Properties [vbnet] (done) | time=2ms INFO: Sensor JaCoCo XML Report Importer [jacoco] INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=13ms INFO: Sensor TypeScript analysis [javascript]

INFO: Deploying custom rules bundle jar:file:/home/jenkins/.sonar/cache/58217f4b9448dc3527b59fd864356644/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/.sonartmp/eslint-bridge-bundle/package/custom-rules11770068033405367786

INFO: Found 1 tsconfig.json file(s): [/home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/tsconfig.json] INFO: 777 source files to be analyzed INFO: Analyzing 777 files using tsconfig: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/tsconfig.json

INFO: 30/777 files analyzed, current file: src/components/ecosystems/inventory-pages/useAdminCategories.ts

INFO: 513/777 files analyzed, current file: src/components/molecules/analytics-review-dialog/types.ts

INFO: 777/777 source files have been analyzed INFO: Sensor TypeScript analysis [javascript] (done) | time=29603ms INFO: Sensor JavaScript/TypeScript Coverage [javascript] INFO: Analysing [/home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/coverage/lcov.info] WARN: Could not resolve 83 file paths in [/home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/coverage/lcov.info] WARN: First unresolved path: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/src/mock/all-org-device-groups.ts (Run in DEBUG mode to get full list of unresolved paths) INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=112ms INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=3ms INFO: Sensor JavaSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/java INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/java INFO: No UCFGs have been included for analysis. INFO: Sensor JavaSecuritySensor [security] (done) | time=5ms INFO: Sensor CSharpSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/ucfg_cs2 INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/ucfg_cs2 INFO: No UCFGs have been included for analysis. INFO: Sensor CSharpSecuritySensor [security] (done) | time=0ms INFO: Sensor PhpSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/php INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/php INFO: No UCFGs have been included for analysis. INFO: Sensor PhpSecuritySensor [security] (done) | time=1ms INFO: Sensor PythonSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/python INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/python INFO: No UCFGs have been included for analysis. INFO: Sensor PythonSecuritySensor [security] (done) | time=0ms INFO: Sensor JsSecuritySensor [security] INFO: Reading type hierarchy from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/js INFO: Read 0 type definitions INFO: Reading UCFGs from: /home/jenkins/workspace/rd_MS-1949-Unskip-Selenium-tests/.scannerwork/ucfg2/js INFO: No UCFGs have been included for analysis. INFO: Sensor JsSecuritySensor [security] (done) | time=0ms INFO: ------------- Run sensors on project INFO: Sensor Zero Coverage Sensor INFO: Sensor Zero Coverage Sensor (done) | time=5ms WARN: Forced reloading of SCM data for all files. INFO: SCM Publisher SCM provider for this project is: git INFO: SCM Publisher 777 source files to be analyzed

INFO: SCM Publisher 777/777 source files have been analyzed (done) | time=3917ms INFO: CPD Executor 192 files had no CPD blocks INFO: CPD Executor Calculating CPD for 581 files INFO: CPD Executor CPD calculation finished (done) | time=181ms INFO: SCM writing changed lines INFO: SCM writing changed lines (done) | time=93ms INFO: Analysis report generated in 194ms, dir size=969 KB INFO: Analysis report compressed in 584ms, zip size=939 KB INFO: Analysis report uploaded in 217ms INFO: ANALYSIS SUCCESSFUL, you can browse http://frontend-sonarqube.mgmt.az/dashboard?id=maintenance-solution-dashboard&pullRequest=568 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at http://frontend-sonarqube.mgmt.az/api/ce/task?id=AXmFPZW1OkXu5eRZBx9_

INFO: Analysis total time: 46.525 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 49.324s INFO: Final Memory: 20M/77M INFO: ------------------------------------------------------------------------ [15:28:01] Analysis finished.

Hi Suma,

Did you got any solution for this issue. I am facing similar type

Hi,
We are running into the same issue, do you have any updates?

Cheers and thanks,
Diego Nepomnaschy

Diego,
I suggest you open a new topic with the details of what you’re facing or at least provide some details here.

Hi,
We are running into same issue. we are using below SonarQube Server Configuration.

  • Enterprise Edition
  • Version 9.9 (build 65466)

When we do PR analysis, the PR summary decorator showing un modified files, which are not a part in PR like below.

Please let us know for any further details

Hi @bony_kappa

That’s usually a result of the scanner not having access to the correct branches involved in the PR.

Do you have the scanner logs for that particular PR analysis? Preferably with debug enabled.

We are having the same issue with 9.7 and AZDO.

Sonar has access to all of the branches.

What can we do to resolve this?

Thank you @dmeneses

Our issue was an expired access token in the server. Updating that cleared up the issue

1 Like