Yet another missing code coverage report in UI

Hey there.
I definetly checked out nearly all other topics related to this problem, but i cannot get this to work.
I have a JS / TS project which is tested with cypress.io. The code coverage gets automatically created.
We are using gitlab-ci. To scan those files i walked through the gitlab sonar tutorial. I have a sonarcloud stage and use the docker image sonarsource/sonar-scanner-cli:latest for scanning the files.
The stage is completed successfully but my dashboard is just “empty” and doesnt show code coverage stuff or other things:

The automatically created coverage structure looks like this
image

my sonar-project.properties files looks like this:
image

And the sonar-scanner output of the stage is as follows (replaced “sensible” strings):

sonar-scanner
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /builds/_a-Aygue/0/my/cool/path/sonar-project.properties
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.15 Alpine (64-bit)
INFO: Linux 5.10.0-18-amd64 amd64
INFO: User cache: /builds/_a-Aygue/0/my/cool/path/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /builds/_a-Aygue/0/my/cool/path/sonar-project.properties
INFO: Analyzing on SonarQube server 8.0.0.33400
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=153ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: User cache: /builds/_a-Aygue/0/my/cool/path/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=131ms
INFO: Load/download plugins (done) | time=354ms
INFO: Loaded core extensions: developer-scanner
INFO: Found an active CI vendor: 'Gitlab CI'
INFO: Load project settings for component key: 'project_name'
INFO: Load project settings for component key: 'project_name' (done) | time=117ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=1ms
INFO: Project key: project_name
INFO: Base dir: /builds/_a-Aygue/0/my/cool/path
INFO: Working dir: /builds/_a-Aygue/0/my/cool/path/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=114ms
INFO: Check ALM binding of project 'project_name'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'project_name' (done) | time=91ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=90ms
INFO: Load branch configuration
INFO: Auto-configuring branch feature/UIY-6876_sonarcloud_adjustments_II
INFO: Load branch configuration (done) | time=5ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=156ms
INFO: Load active rules
INFO: Load active rules (done) | time=1991ms
INFO: Organization key: xxx
INFO: Branch name: feature/UIY-6876_sonarcloud_adjustments_II, type: short-lived
INFO: Load project repositories
INFO: Load project repositories (done) | time=98ms
INFO: SCM collecting changed files in the branch
INFO: SCM collecting changed files in the branch (done) | time=294ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json
INFO: 464 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for json: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: ------------- Run sensors on module surf
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=91ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=192ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=110ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=3ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=32ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=7ms
INFO: Sensor Text Sensor [text]
INFO: 428 source files to be analyzed
INFO: 428/428 source files have been analyzed
INFO: Sensor Text Sensor [text] (done) | time=377ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=16ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
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=5ms
INFO: Sensor JavaScript analysis [javascript]
INFO: 1 source file to be analyzed
INFO: 1/1 source file has been analyzed
INFO: Hit the cache for 0 out of 1
INFO: Miss the cache for 1 out of 1: ANALYSIS_MODE_INELIGIBLE [1/1]
INFO: Sensor JavaScript analysis [javascript] (done) | time=6326ms
INFO: Sensor TypeScript analysis [javascript]
INFO: Found 1 tsconfig.json file(s): [/builds/_a-Aygue/0/my/cool/path/tsconfig.json]
INFO: 421 source files to be analyzed
INFO: Creating TypeScript program
INFO: TypeScript configuration file /builds/_a-Aygue/0/my/cool/path/tsconfig.json
INFO: Creating TypeScript program (done) | time=1988ms
INFO: Starting analysis with current program
INFO: 68/421 files analyzed, current file: /builds/_a-Aygue/0/my/cool/path/src/components/grid/sorter/DefaultSortMapper.ts
INFO: 179/421 files analyzed, current file: /builds/_a-Aygue/0/my/cool/path/src/routes/accounting/ExchangeRate/columns.ts
INFO: 304/421 files analyzed, current file: /builds/_a-Aygue/0/my/cool/path/src/app/store/module.ts
INFO: Analyzed 421 file(s) with current program
INFO: 421/421 source files have been analyzed
INFO: Hit the cache for 0 out of 421
INFO: Miss the cache for 421 out of 421: ANALYSIS_MODE_INELIGIBLE [421/421]
INFO: Sensor TypeScript analysis [javascript] (done) | time=38681ms
INFO: Sensor JavaScript/TypeScript Coverage [javascript]
INFO: Analysing [/builds/_a-Aygue/0/my/cool/path/coverage/lcov.info]
INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=61ms
INFO: Sensor CSS Metrics [javascript]
INFO: Sensor CSS Metrics [javascript] (done) | time=20ms
INFO: Sensor CSS Rules [javascript]
INFO: 2 source files to be analyzed
INFO: 2/2 source files have been analyzed
INFO: Hit the cache for 0 out of 0
INFO: Miss the cache for 0 out of 0
INFO: Sensor CSS Rules [javascript] (done) | time=215ms
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=2ms
INFO: Sensor Serverless configuration file sensor [security]
INFO: 0 Serverless function entries were found in the project
INFO: 0 Serverless function handlers were kept as entrypoints
INFO: Sensor Serverless configuration file sensor [security] (done) | time=5ms
INFO: Sensor AWS SAM template file sensor [security]
INFO: Sensor AWS SAM template file sensor [security] (done) | time=1ms
INFO: Sensor AWS SAM Inline template file sensor [security]
INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=0ms
INFO: Sensor javabugs [dbd]
INFO: Reading IR files from: /builds/_a-Aygue/0/my/cool/path/.scannerwork/ir/java
INFO: No IR files have been included for analysis.
INFO: Sensor javabugs [dbd] (done) | time=1ms
INFO: Sensor pythonbugs [dbd]
INFO: Reading IR files from: /builds/_a-Aygue/0/my/cool/path/.scannerwork/ir/python
INFO: No IR files have been included for analysis.
INFO: Sensor pythonbugs [dbd] (done) | time=1ms
INFO: Sensor JavaSecuritySensor [security]
INFO: Reading type hierarchy from: /builds/_a-Aygue/0/my/cool/path/.scannerwork/ucfg2/java
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /builds/_a-Aygue/0/my/cool/path/.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: /builds/_a-Aygue/0/my/cool/path/ucfg_cs2
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /builds/_a-Aygue/0/my/cool/path/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: /builds/_a-Aygue/0/my/cool/path/.scannerwork/ucfg2/php
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /builds/_a-Aygue/0/my/cool/path/.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: /builds/_a-Aygue/0/my/cool/path/.scannerwork/ucfg2/python
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /builds/_a-Aygue/0/my/cool/path/.scannerwork/ucfg2/python
INFO: No UCFGs have been included for analysis.
INFO: Sensor PythonSecuritySensor [security] (done) | time=1ms
INFO: Sensor JsSecuritySensor [security]
INFO: Reading type hierarchy from: /builds/_a-Aygue/0/my/cool/path/.scannerwork/ucfg2/js
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /builds/_a-Aygue/0/my/cool/path/.scannerwork/ucfg2/js
INFO: 13:55:17.093429 Building Runtime Type propagation graph
INFO: 13:55:17.201165 Running Tarjan on 16661 nodes
INFO: 13:55:17.219721 Tarjan found 16661 components
INFO: 13:55:17.255711 Variable type analysis: done
INFO: 13:55:17.259659 Building Runtime Type propagation graph
INFO: 13:55:17.356357 Running Tarjan on 16661 nodes
INFO: 13:55:17.368503 Tarjan found 16661 components
INFO: 13:55:17.399399 Variable type analysis: done
INFO: Analyzing 2814 ucfgs to detect vulnerabilities.
INFO: Taint analysis starting. Entrypoints: 423
INFO: Running symbolic analysis for 'JS'
INFO: Taint analysis: done.
INFO: Sensor JsSecuritySensor [security] (done) | time=4669ms
INFO: ------------- Run sensors on project
INFO: Sensor Analysis Warnings import [csharp]
INFO: Sensor Analysis Warnings import [csharp] (done) | time=1ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=40ms
INFO: CPD Executor 80 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 342 files
INFO: CPD Executor CPD calculation finished (done) | time=186ms
INFO: SCM writing changed lines
INFO: SCM writing changed lines (done) | time=10ms
INFO: Analysis report generated in 178ms, dir size=510 KB
INFO: Analysis report compressed in 421ms, zip size=398 KB
INFO: Analysis report uploaded in 247ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: [MASKED]/dashboard?id=project_name&branch=feature%2FUIY-6876_sonarcloud_adjustments_II&resolved=false
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 [MASKED]/api/ce/task?id=AYPWxzDEWUQfiPlafl0Z
INFO: Analysis total time: 1:05.401 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:07.431s
INFO: Final Memory: 89M/307M
INFO: ------------------------------------------------------------------------

Can someone tell me why my dashboard ist still empty?
What am i doing wrong?
THanks

Hey there.

It looks like you’re analyzing a merge request – and when analyzing a merge request, only issues/coverage/duplication on changed lines of changed files will be reported. Did you change any files in this PR?

It does look like some coverage is being reported (the Estimated after merge) figure, which represents your overall codebase.

Ok, thank you for the hint. As this was an “tech-time” issue i have only just got around to continuing again on this. And it seems really like that the config of my gitlab-ci didnt checked merge requests as well.
Now it seems to work.
Thank you :slight_smile: