I’ve seen many topics about this, unfortunately I have been unable to get it to work:
We have a net 8 project that gets compiled by dotnet trough Github actions in the mcr.microsoft.com/dotnet/sdk:8.0-alpine
container. We have included the coverlet.collector
package V6.0.2 to the project to get test coverage results. The action runs when a PR is created or updated.
We run our tests with:
- name: Test
run: |
dotnet test --logger:"trx;FailureBodyFormat=Verbose;LogFileName=artifacts/test-result.trx;MethodFormat=Class" --collect:"XPlat Code Coverage;Format=opencover" --results-directory ./coverage
When running the tests the coverage files are created
ls of .coverage
Run ls -laR ./coverage
./coverage:
total 20
drwxr-xr-x 5 root root 4096 Jul 23 09:45 .
drwxr-xr-x 12 1000 1000 4096 Jul 23 09:45 ..
drwxr-xr-x 3 root root 4096 Jul 23 09:45 _6a0e258d69fa_2024-07-23_09_45_17
drwxr-xr-x 2 root root 4096 Jul 23 09:45 artifacts
drwxr-xr-x 2 root root 4096 Jul 23 09:45 d57b0261-038e-45ae-b5f1-2f43722062ff
./coverage/_6a0e258d69fa_2024-07-23_09_45_17:
total 12
drwxr-xr-x 3 root root 4096 Jul 23 09:45 .
drwxr-xr-x 5 root root 4096 Jul 23 09:45 ..
drwxr-xr-x 3 root root 4096 Jul 23 09:45 In
./coverage/_6a0e258d69fa_2024-07-23_09_45_17/In:
total 12
drwxr-xr-x 3 root root 4096 Jul 23 09:45 .
drwxr-xr-x 3 root root 4096 Jul 23 09:45 ..
drwxr-xr-x 2 root root 4096 Jul 23 09:45 6a0e258d69fa
./coverage/_6a0e258d69fa_2024-07-23_09_45_17/In/6a0e258d69fa:
total 80
drwxr-xr-x 2 root root 4096 Jul 23 09:45 .
drwxr-xr-x 3 root root 4096 Jul 23 09:45 ..
-rw-r--r-- 1 root root 71208 Jul 23 09:45 coverage.opencover.xml
./coverage/artifacts:
total 140
drwxr-xr-x 2 root root 4096 Jul 23 09:45 .
drwxr-xr-x 5 root root 4096 Jul 23 09:45 ..
-rw-r--r-- 1 root root 132388 Jul 23 09:45 test-result.trx
./coverage/d57b0261-038e-45ae-b5f1-2f43722062ff:
total 80
drwxr-xr-x 2 root root 4096 Jul 23 09:45 .
drwxr-xr-x 5 root root 4096 Jul 23 09:45 ..
-rw-r--r-- 1 root root 71208 Jul 23 09:45 coverage.opencover.xml
The content of the coverage.opencover.xml
also seems to be good (skipped the <classes>
section as it contains a bit to much info, but content seems to be good):
<CoverageSession>
<Summary numSequencePoints="192" visitedSequencePoints="160" numBranchPoints="92" visitedBranchPoints="79" sequenceCoverage="83.33" branchCoverage="85.86" maxCyclomaticComplexity="110" minCyclomaticComplexity="110" visitedClasses="11" numClasses="13" visitedMethods="23" numMethods="29" />
<Modules>
<Module hash="9F3E8977-83A0-4273-B5A0-2BDB93F2962F">
<ModulePath>Voortman.CtoPortfolioLanguage.dll</ModulePath>
<ModuleTime>2024-07-23T09:45:17</ModuleTime>
<ModuleName>Voortman.CtoPortfolioLanguage</ModuleName>
<Files>
<File uid="1" fullPath="/__w/CtoPortfolioLanguage/CtoPortfolioLanguage/src/Voortman.CtoPortfolioLanguage/CustomAttributes.cs" />
<File uid="2" fullPath="/__w/CtoPortfolioLanguage/CtoPortfolioLanguage/src/Voortman.CtoPortfolioLanguage/CustomAttributeValidationResults.cs" />
<File uid="3" fullPath="/__w/CtoPortfolioLanguage/CtoPortfolioLanguage/src/Voortman.CtoPortfolioLanguage/ValidatingDeserializer.cs" />
<File uid="4" fullPath="/__w/CtoPortfolioLanguage/CtoPortfolioLanguage/src/Voortman.CtoPortfolioLanguage/YamlParser.cs" />
<File uid="5" fullPath="/__w/CtoPortfolioLanguage/CtoPortfolioLanguage/src/Voortman.CtoPortfolioLanguage/Serializables/Feature.cs" />
</Files>
<Classes>
....
</Classes>
</Module>
</Modules>
</CoverageSession>
The Sonar begin and end are called around the dotnet test call, we begin with
./.sonar/scanner/dotnet-sonarscanner begin /k:"voortman-steel-machinery_CtoPortfolioLanguage" /o:"voortman-steel-machinery" /d:sonar.token="***" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=./coverage/**/coverage.opencover.xml
and end with
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="***"
The scan report is uploaded to sonar cloud, it does show potential code issues, but the coverage section refers to having to do a few extra steps with a link to the setting up code coverage
Looking at the sonarscanner end log shows:
INFO: Sensor C# Tests Coverage Report Import [csharp]
INFO: Parsing the OpenCover report /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/././coverage/_6a0e258d69fa_2024-07-23_09_45_17/In/6a0e258d69fa/coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/././coverage/_6a0e258d69fa_2024-07-23_09_45_17/In/6a0e258d69fa/coverage.opencover.xml
INFO: Parsing the OpenCover report /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/././coverage/d57b0261-038e-45ae-b5f1-2f43722062ff/coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/././coverage/d57b0261-038e-45ae-b5f1-2f43722062ff/coverage.opencover.xml
INFO: Coverage Report Statistics: 5 files, 5 main files, 5 main files with coverage, 0 test files, 0 project excluded files, 0 other language files.
So this makes me assume that Sonar has seen and accepted the coverage files but they are still not showing up in Sonarcloud. Where did I make a mistake?
full sonar end log
SonarScanner for MSBuild 7.1
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
Calling the SonarScanner CLI...
INFO: Scanner configuration file: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonar/scanner/.store/dotnet-sonarscanner/7.1.0/dotnet-sonarscanner/7.1.0/tools/netcoreapp3.1/any/sonar-scanner-5.0.1.3006/conf/sonar-scanner.properties
INFO: Project root configuration file: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/sonar-project.properties
INFO: SonarScanner 5.0.1.3006
INFO: Java 17.0.11 Eclipse Adoptium (64-bit)
INFO: Linux 6.1.79-1.ph5 amd64
INFO: User cache: /root/.sonar/cache
INFO: Analyzing on SonarCloud
INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=178ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: Loading required plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=73ms
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=687ms
INFO: Found an active CI vendor: 'Github Actions'
INFO: Load project settings for component key: 'voortman-steel-machinery_CtoPortfolioLanguage'
INFO: Load project settings for component key: 'voortman-steel-machinery_CtoPortfolioLanguage' (done) | time=86ms
INFO: Process project properties
INFO: Project key: voortman-steel-machinery_CtoPortfolioLanguage
INFO: Base dir: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage
INFO: Working dir: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/.sonar
INFO: Load project branches
INFO: Load project branches (done) | time=86ms
INFO: Check ALM binding of project 'voortman-steel-machinery_CtoPortfolioLanguage'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'voortman-steel-machinery_CtoPortfolioLanguage' (done) | time=39ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=102ms
INFO: Load branch configuration
INFO: Github event: pull_request
INFO: Auto-configuring pull request 19
INFO: Load branch configuration (done) | time=730ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=172ms
INFO: Load active rules
INFO: Load active rules (done) | time=3426ms
INFO: Organization key: voortman-steel-machinery
INFO: Pull request 19 for merge into main from coverage-fix
INFO: Preprocessing files...
INFO: 1 language detected in 15 preprocessed files
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: 0 files ignored because of scm ignore settings
INFO: Loading plugins for detected languages
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=314ms
INFO: Executing phase 2 project builders
INFO: Executing phase 2 project builders (done) | time=26ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=137ms
INFO: SCM collecting changed files in the branch
INFO: SCM collecting changed files in the branch (done) | time=155ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Excluded sources: **/build-wrapper-dump.json
INFO: Indexing files of module 'Voortman.CtoPortfolioLanguage.Tests'
INFO: Base dir: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/tests/Voortman.CtoPortfolioLanguage.Tests
INFO: Test paths: AllowedMinAndMaxTests.cs, FeatureTests.cs, ForbiddenIfNotTests....
INFO: Excluded sources: **/build-wrapper-dump.json
INFO: Indexing files of module 'Voortman.CtoPortfolioLanguage'
INFO: Base dir: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/src/Voortman.CtoPortfolioLanguage
INFO: Source paths: CustomAttributes.cs, CustomAttributeValidationResults.cs, Ser...
INFO: Excluded sources: **/build-wrapper-dump.json
INFO: Indexing files of module 'voortman-steel-machinery_CtoPortfolioLanguage'
INFO: Base dir: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage
INFO: Excluded sources: **/build-wrapper-dump.json
INFO: 15 files indexed
INFO: Quality profile for cs: Sonar way
INFO: ------------- Run sensors on module Voortman.CtoPortfolioLanguage.Tests
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=43ms
INFO: Sensor cache enabled
INFO: Load sensor cache
INFO: Load sensor cache (812 bytes) | time=897ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Roslyn version: 4.10.0.0
INFO: Language version: CSharp11
INFO: Concurrent execution: enabled
INFO: Sensor C# Analysis Log [csharp] (done) | time=7ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (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=2ms
INFO: Sensor Java Config Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor Java Config Sensor [iac] (done) | time=27ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: Sensor IaC Docker Sensor is restricted to changed files only
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=70ms
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=3ms
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=1ms
INFO: ------------- Run sensors on module Voortman.CtoPortfolioLanguage
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Roslyn version: 4.10.0.0
INFO: Language version: CSharp12
INFO: Concurrent execution: enabled
INFO: Sensor C# Analysis Log [csharp] (done) | time=0ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (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=0ms
INFO: Sensor Java Config Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor Java Config Sensor [iac] (done) | time=0ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: Sensor IaC Docker Sensor is restricted to changed files only
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=9ms
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=1ms
INFO: Sensor AWS SAM template file sensor [security]
INFO: Sensor AWS SAM template file sensor [security] (done) | time=0ms
INFO: Sensor AWS SAM Inline template file sensor [security]
INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
INFO: ------------- Run sensors on module voortman-steel-machinery_CtoPortfolioLanguage
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=0ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (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=0ms
INFO: Sensor Java Config Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor Java Config Sensor [iac] (done) | time=1ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: Sensor IaC Docker Sensor is restricted to changed files only
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=7ms
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=0ms
INFO: Sensor AWS SAM template file sensor [security]
INFO: Sensor AWS SAM template file sensor [security] (done) | time=0ms
INFO: Sensor AWS SAM Inline template file sensor [security]
INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=0ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: Sensor TextAndSecretsSensor is restricted to changed files only
INFO: Available processors: 4
INFO: Using 4 threads for analysis.
INFO: The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true:
* The filename starts with "test"
* The filename contains "test." or "tests."
* Any directory in the file path is named: "doc", "docs", "test" or "tests"
* Any directory in the file path has a name ending in "test" or "tests"
INFO: Using git CLI to retrieve untracked files
WARN: Analyzing only language associated files, make sure to run the analysis inside a git repository to make use of inclusions specified via "sonar.text.inclusions"
INFO: Sensor TextAndSecretsSensor [text] (done) | time=438ms
INFO: Sensor JavaSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5147, S5334, S5883, S6096, S6173, S6287, S6350, S6384, S6390, S6398, S6399, S6547, S6549
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/.sonar/ucfg2/java
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.002
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.003
INFO: No UCFGs have been included for analysis.
INFO: java security sensor: Time spent was 00:00:00.014
INFO: java security sensor: Begin: 2024-07-23T09:45:32.637025469Z, End: 2024-07-23T09:45:32.651075637Z, Duration: 00:00:00.014
Load type hierarchy and UCFGs: Begin: 2024-07-23T09:45:32.639255477Z, End: 2024-07-23T09:45:32.642423374Z, Duration: 00:00:00.003
Load type hierarchy: Begin: 2024-07-23T09:45:32.639315782Z, End: 2024-07-23T09:45:32.641998215Z, Duration: 00:00:00.002
Load UCFGs: Begin: 2024-07-23T09:45:32.642294215Z, End: 2024-07-23T09:45:32.642348387Z, Duration: 00:00:00.000
INFO: java security sensor peak memory: 106 MB
INFO: Sensor JavaSecuritySensor [security] (done) | time=17ms
INFO: Sensor CSharpSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5334, S5883, S6096, S6173, S6287, S6350, S6399, S6639, S6641
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/ucfg2/cs
INFO: Read 12 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.031
INFO: Load UCFGs: Starting
INFO: Reading UCFGs from: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/ucfg2/cs
INFO: Load UCFGs: Time spent was 00:00:00.073
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.105
INFO: Analyzing 36 UCFGs to detect vulnerabilities.
INFO: Check cache: Starting
INFO: Load cache: Starting
INFO: Load cache: Time spent was 00:00:00.000
INFO: Check cache: Time spent was 00:00:00.000
INFO: Create runtime call graph: Starting
INFO: Variable Type Analysis #1: Starting
INFO: Create runtime type propagation graph: Starting
INFO: Create runtime type propagation graph: Time spent was 00:00:00.005
INFO: Run SCC (Tarjan) on 138 nodes: Starting
INFO: Run SCC (Tarjan) on 138 nodes: Time spent was 00:00:00.001
INFO: Tarjan found 138 strongly connected components
INFO: Propagate runtime types to strongly connected components: Starting
INFO: Propagate runtime types to strongly connected components: Time spent was 00:00:00.003
INFO: Variable Type Analysis #1: Time spent was 00:00:00.011
INFO: Variable Type Analysis #2: Starting
INFO: Create runtime type propagation graph: Starting
INFO: Create runtime type propagation graph: Time spent was 00:00:00.002
INFO: Run SCC (Tarjan) on 138 nodes: Starting
INFO: Run SCC (Tarjan) on 138 nodes: Time spent was 00:00:00.000
INFO: Tarjan found 138 strongly connected components
INFO: Propagate runtime types to strongly connected components: Starting
INFO: Propagate runtime types to strongly connected components: Time spent was 00:00:00.000
INFO: Variable Type Analysis #2: Time spent was 00:00:00.003
INFO: Create runtime call graph: Time spent was 00:00:00.016
INFO: Load config: Starting
INFO: Load config: Time spent was 00:00:00.142
INFO: Compute entry points: Starting
INFO: Compute entry points: Time spent was 00:00:00.055
INFO: No entry points found.
INFO: csharp security sensor: Time spent was 00:00:00.323
INFO: csharp security sensor: Begin: 2024-07-23T09:45:32.653061145Z, End: 2024-07-23T09:45:32.976565827Z, Duration: 00:00:00.323
Load type hierarchy and UCFGs: Begin: 2024-07-23T09:45:32.653285842Z, End: 2024-07-23T09:45:32.758597226Z, Duration: 00:00:00.105
Load type hierarchy: Begin: 2024-07-23T09:45:32.653302068Z, End: 2024-07-23T09:45:32.684343173Z, Duration: 00:00:00.031
Load UCFGs: Begin: 2024-07-23T09:45:32.684529544Z, End: 2024-07-23T09:45:32.758461798Z, Duration: 00:00:00.073
Check cache: Begin: 2024-07-23T09:45:32.758678619Z, End: 2024-07-23T09:45:32.759116819Z, Duration: 00:00:00.000
Load cache: Begin: 2024-07-23T09:45:32.758705772Z, End: 2024-07-23T09:45:32.758839885Z, Duration: 00:00:00.000
Create runtime call graph: Begin: 2024-07-23T09:45:32.759231795Z, End: 2024-07-23T09:45:32.775767305Z, Duration: 00:00:00.016
Variable Type Analysis #1: Begin: 2024-07-23T09:45:32.759827455Z, End: 2024-07-23T09:45:32.771347431Z, Duration: 00:00:00.011
Create runtime type propagation graph: Begin: 2024-07-23T09:45:32.760560953Z, End: 2024-07-23T09:45:32.765789770Z, Duration: 00:00:00.005
Run SCC (Tarjan) on 138 nodes: Begin: 2024-07-23T09:45:32.766178090Z, End: 2024-07-23T09:45:32.768005866Z, Duration: 00:00:00.001
Propagate runtime types to strongly connected components: Begin: 2024-07-23T09:45:32.768167907Z, End: 2024-07-23T09:45:32.771214315Z, Duration: 00:00:00.003
Variable Type Analysis #2: Begin: 2024-07-23T09:45:32.771679298Z, End: 2024-07-23T09:45:32.775149307Z, Duration: 00:00:00.003
Create runtime type propagation graph: Begin: 2024-07-23T09:45:32.771721167Z, End: 2024-07-23T09:45:32.774038488Z, Duration: 00:00:00.002
Run SCC (Tarjan) on 138 nodes: Begin: 2024-07-23T09:45:32.774182388Z, End: 2024-07-23T09:45:32.774460840Z, Duration: 00:00:00.000
Propagate runtime types to strongly connected components: Begin: 2024-07-23T09:45:32.774563206Z, End: 2024-07-23T09:45:32.775068314Z, Duration: 00:00:00.000
Load config: Begin: 2024-07-23T09:45:32.775862091Z, End: 2024-07-23T09:45:32.918234034Z, Duration: 00:00:00.142
Compute entry points: Begin: 2024-07-23T09:45:32.919849605Z, End: 2024-07-23T09:45:32.975460355Z, Duration: 00:00:00.055
INFO: csharp security sensor peak memory: 106 MB
INFO: Sensor CSharpSecuritySensor [security] (done) | time=324ms
INFO: Sensor PhpSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5334, S5335, S5883, S6173, S6287, S6350
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/.sonar/ucfg2/php
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: php security sensor: Time spent was 00:00:00.000
INFO: php security sensor: Begin: 2024-07-23T09:45:32.978317324Z, End: 2024-07-23T09:45:32.979096584Z, Duration: 00:00:00.000
Load type hierarchy and UCFGs: Begin: 2024-07-23T09:45:32.978492659Z, End: 2024-07-23T09:45:32.978892238Z, Duration: 00:00:00.000
Load type hierarchy: Begin: 2024-07-23T09:45:32.978508671Z, End: 2024-07-23T09:45:32.978630935Z, Duration: 00:00:00.000
Load UCFGs: Begin: 2024-07-23T09:45:32.978695922Z, End: 2024-07-23T09:45:32.978827736Z, Duration: 00:00:00.000
INFO: php security sensor peak memory: 106 MB
INFO: Sensor PhpSecuritySensor [security] (done) | time=1ms
INFO: Sensor PythonSecuritySensor [security]
INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5147, S5334, S5496, S6287, S6350, S6639, S6680, S6776, S6839
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/.sonar/ucfg2/python
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: python security sensor: Time spent was 00:00:00.000
INFO: python security sensor: Begin: 2024-07-23T09:45:32.979763227Z, End: 2024-07-23T09:45:32.980308745Z, Duration: 00:00:00.000
Load type hierarchy and UCFGs: Begin: 2024-07-23T09:45:32.979885058Z, End: 2024-07-23T09:45:32.980118343Z, Duration: 00:00:00.000
Load type hierarchy: Begin: 2024-07-23T09:45:32.979898608Z, End: 2024-07-23T09:45:32.979992891Z, Duration: 00:00:00.000
Load UCFGs: Begin: 2024-07-23T09:45:32.980057567Z, End: 2024-07-23T09:45:32.980077312Z, Duration: 00:00:00.000
INFO: python security sensor peak memory: 106 MB
INFO: Sensor PythonSecuritySensor [security] (done) | time=1ms
INFO: Sensor JsSecuritySensor [security]
INFO: Enabled taint analysis rules: S5144, S5696, S5883, S2083, S5146, S2631, S3649, S6287, S6350, S2076, S5131, S5334, S6096, S5147, S6105
INFO: Load type hierarchy and UCFGs: Starting
INFO: Load type hierarchy: Starting
INFO: Reading type hierarchy from: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/.sonar/ucfg2/js
INFO: Read 0 type definitions
INFO: Load type hierarchy: Time spent was 00:00:00.000
INFO: Load UCFGs: Starting
INFO: Load UCFGs: Time spent was 00:00:00.000
INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
INFO: No UCFGs have been included for analysis.
INFO: js security sensor: Time spent was 00:00:00.000
INFO: js security sensor: Begin: 2024-07-23T09:45:32.980884550Z, End: 2024-07-23T09:45:32.981613662Z, Duration: 00:00:00.000
Load type hierarchy and UCFGs: Begin: 2024-07-23T09:45:32.981034587Z, End: 2024-07-23T09:45:32.981436673Z, Duration: 00:00:00.000
Load type hierarchy: Begin: 2024-07-23T09:45:32.981048240Z, End: 2024-07-23T09:45:32.981141461Z, Duration: 00:00:00.000
Load UCFGs: Begin: 2024-07-23T09:45:32.981373338Z, End: 2024-07-23T09:45:32.981396144Z, Duration: 00:00:00.000
INFO: js security sensor peak memory: 106 MB
INFO: Sensor JsSecuritySensor [security] (done) | time=1ms
INFO: ------------- Run sensors on project
INFO: Sensor C# [csharp]
INFO: Importing results from 6 proto files in '/__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/1/output-cs'
INFO: Importing results from 6 proto files in '/__w/CtoPortfolioLanguage/CtoPortfolioLanguage/.sonarqube/out/0/output-cs'
INFO: Importing 2 Roslyn reports
INFO: Found 2 MSBuild C# projects: 1 MAIN project. 1 TEST project.
INFO: Sensor C# [csharp] (done) | time=105ms
INFO: Sensor Analysis Warnings import [csharp]
INFO: Sensor Analysis Warnings import [csharp] (done) | time=2ms
INFO: Sensor C# File Caching Sensor [csharp]
INFO: Sensor C# File Caching Sensor [csharp] (done) | time=2ms
INFO: Sensor C# Tests Coverage Report Import [csharp]
INFO: Parsing the OpenCover report /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/././coverage/_6a0e258d69fa_2024-07-23_09_45_17/In/6a0e258d69fa/coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/././coverage/_6a0e258d69fa_2024-07-23_09_45_17/In/6a0e258d69fa/coverage.opencover.xml
INFO: Parsing the OpenCover report /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/././coverage/d57b0261-038e-45ae-b5f1-2f43722062ff/coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: /__w/CtoPortfolioLanguage/CtoPortfolioLanguage/././coverage/d57b0261-038e-45ae-b5f1-2f43722062ff/coverage.opencover.xml
INFO: Coverage Report Statistics: 5 files, 5 main files, 5 main files with coverage, 0 test files, 0 project excluded files, 0 other language files.
INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=80ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=0ms
INFO: CPD Executor Calculating CPD for 5 files
INFO: CPD Executor CPD calculation finished (done) | time=16ms
INFO: SCM writing changed lines
INFO: SCM writing changed lines (done) | time=5ms
INFO: Analysis report generated in 380ms, dir size=251 KB
INFO: Analysis report compressed in 17ms, zip size=54 KB
INFO: Analysis report uploaded in 164ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=voortman-steel-machinery_CtoPortfolioLanguage&pullRequest=19
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 https://sonarcloud.io/api/ce/task?id=AZDe-10eipUEgDEhb9B8
INFO: Analysis total time: 9.333 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 12.804s
INFO: Final Memory: 18M/80M
INFO: ------------------------------------------------------------------------
The SonarScanner CLI has finished