Master branch analysis not showing results

Hello! I’m evaluating SonarCloud and I’m unable to see the results of a github action sonarscan. I configured some other repositories and worked well, but this one running on github actions doesn’t show the master branch analysis:

“master” branch has not been analyzed yet and you have multiple branches already. It looks like it is not your Main Branch, check your configuration.

The github action seems to work, and the first analysis log looks good. I can see the results of the pull requests and the sonarcloud quality gate result in the pr. But when I go to see the master branch analysis, its empty.

Log of the github action:

INFO: CPD Executor CPD calculation finished (done) | time=363ms

INFO: SCM writing changed lines
INFO: SCM writing changed lines (done) | time=8ms
INFO: Analysis report generated in 203ms, dir size=2 MB
INFO: Analysis report compressed in 1157ms, zip size=1 MB
INFO: Analysis report uploaded in 1326ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=QuadMinds_flash&pullRequest=582
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=AYP3hStXqZ8Rf7oRFsvq
INFO: Analysis total time: 2:47.228 s
INFO: ------------------------------------------------------------------------

INFO: EXECUTION SUCCESS

INFO: ------------------------------------------------------------------------

INFO: Total time: 2:59.157s

INFO: Final Memory: 139M/470M

INFO: ----------

Thank you,
Jorge

Hi Jorge,

Is that the entire log? If not, can you provide the entire log, ideally starting from the analysis command.

 
Ann

Hello! This is the entire log.


/usr/bin/docker run --name d5581207339bd22fb4e588276ffe22fe7bfb1_ccd44e --label 8d5581 --workdir /github/workspace --rm -e "GITHUB_TOKEN" -e "SONAR_TOKEN" -e "INPUT_ARGS" -e "INPUT_PROJECTBASEDIR" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/flash/flash":"/github/workspace" 8d5581:207339bd22fb4e588276ffe22fe7bfb1

INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties

INFO: Project root configuration file: /github/workspace/sonar-project.properties

INFO: SonarScanner 4.7.0.2747

INFO: Java 11.0.15 Alpine (64-bit)

INFO: Linux 5.15.0-1022-azure amd64

INFO: User cache: /opt/sonar-scanner/.sonar/cache

INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties

INFO: Project root configuration file: /github/workspace/sonar-project.properties

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=566ms

INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu

INFO: User cache: /opt/sonar-scanner/.sonar/cache

INFO: Load/download plugins

INFO: Load plugins index

INFO: Load plugins index (done) | time=566ms

INFO: Load/download plugins (done) | time=6449ms

INFO: Loaded core extensions: developer-scanner

INFO: Found an active CI vendor: 'Github Actions'

INFO: Load project settings for component key: 'QM_flash'

INFO: Load project settings for component key: 'QM_flash' (done) | time=538ms

INFO: Process project properties

INFO: Execute project builders

INFO: Execute project builders (done) | time=1ms

INFO: Project key: QM_flash

INFO: Base dir: /github/workspace

INFO: Working dir: /github/workspace/.scannerwork

INFO: Load project branches

INFO: Load project branches (done) | time=537ms

INFO: Check ALM binding of project 'QM_flash'

INFO: Detected project binding: BOUND

INFO: Check ALM binding of project 'QM_flash' (done) | time=512ms

INFO: Load project pull requests

INFO: Load project pull requests (done) | time=541ms

INFO: Load branch configuration

INFO: Github event: pull_request

INFO: Auto-configuring pull request 582

INFO: Load branch configuration (done) | time=1113ms

INFO: Load quality profiles

INFO: Load quality profiles (done) | time=585ms

INFO: Load active rules

INFO: Load active rules (done) | time=5060ms

INFO: Organization key: QM

INFO: Pull request 582 for merge into master from hotfix/qs-5734-SonarCloud

INFO: Load project repositories

INFO: Load project repositories (done) | time=542ms

INFO: SCM collecting changed files in the branch

INFO: SCM collecting changed files in the branch (done) | time=210ms

INFO: Indexing files...

INFO: Project configuration:

INFO: Excluded sources: **/build-wrapper-dump.json

WARN: Invalid character encountered in file /github/workspace/app/openstreetmap/proj4php/src/Proj4php.php at line 496 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.

INFO: 2813 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 php: Sonar way

INFO: Quality profile for plsql: Sonar way

INFO: Quality profile for web: Sonar way

INFO: Quality profile for xml: Sonar way

INFO: Quality profile for yaml: Sonar way

INFO: ------------- Run sensors on module QM_flash

INFO: Load metrics repository

INFO: Load metrics repository (done) | time=541ms

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=1501ms

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=941ms

INFO: Sensor PL/SQL Sensor [plsql]

INFO: Sensor PL/SQL Sensor is restricted to changed files only

WARN: The Data Dictionary is not configured for the PLSQL analyzer, which prevents rule(s) S3641, S3921, S3618, S3651 from raising issues. See https://docs.sonarcloud.io/advanced-setup/languages/pl-sql/

INFO: 0 source files to be analyzed

INFO: 0/0 source files have been analyzed

INFO: Sensor PL/SQL Sensor [plsql] (done) | time=56ms

INFO: Sensor C# Project Type Information [csharp]

INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms

INFO: Sensor C# Analysis Log [csharp]

INFO: Sensor C# Analysis Log [csharp] (done) | time=11ms

INFO: Sensor C# Properties [csharp]

INFO: Sensor C# Properties [csharp] (done) | time=1ms

INFO: Sensor HTML [web]

INFO: Sensor HTML is restricted to changed files only

INFO: Sensor HTML [web] (done) | time=30ms

INFO: Sensor XML Sensor [xml]

INFO: Sensor XML Sensor is restricted to changed files only

INFO: Sensor XML Sensor [xml] (done) | time=1ms

INFO: Sensor Text Sensor [text]

INFO: 1293 source files to be analyzed

WARN: Invalid character encountered in file /github/workspace/app/js/ajaxtabs.js at line 3 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.

WARN: Invalid character encountered in file /github/workspace/app/js/functions.js at line 22 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.

INFO: 1293/1293 source files have been analyzed

INFO: Sensor Text Sensor [text] (done) | time=1036ms

INFO: Sensor VB.NET Project Type Information [vbnet]

INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=2ms

INFO: Sensor VB.NET Analysis Log [vbnet]

INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=12ms

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=8ms

INFO: Sensor JavaScript analysis [javascript]

INFO: 403 source files to be analyzed

INFO: 121/403 files analyzed, current file: /github/workspace/app/js/mapa2.js

INFO: 327/403 files analyzed, current file: /github/workspace/api/api/features/areas/resolvers/areaTypes.js

INFO: 403/403 source files have been analyzed

INFO: Hit the cache for 0 out of 403

INFO: Miss the cache for 403 out of 403: FILE_NOT_IN_CACHE [403/403]

INFO: Sensor JavaScript analysis [javascript] (done) | time=27043ms

INFO: Sensor TypeScript analysis [javascript]

INFO: No input files found for analysis

INFO: Hit the cache for 0 out of 0

INFO: Miss the cache for 0 out of 0

INFO: Sensor TypeScript analysis [javascript] (done) | time=2ms

INFO: Sensor JavaScript inside YAML analysis [javascript]

INFO: No input files found for analysis

INFO: Hit the cache for 0 out of 0

INFO: Miss the cache for 0 out of 0

INFO: Sensor JavaScript inside YAML analysis [javascript] (done) | time=16ms

INFO: Sensor CSS Metrics [javascript]

INFO: Sensor CSS Metrics is restricted to changed files only

INFO: Sensor CSS Metrics [javascript] (done) | time=1ms

INFO: Sensor CSS Rules [javascript]

INFO: Sensor CSS Rules is restricted to changed files only

INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.

INFO: Sensor CSS Rules [javascript] (done) | time=1ms

INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]

INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=13ms

INFO: Sensor PHP sensor [php]

INFO: Starting PHP symbol indexer

INFO: 785 source files to be analyzed

INFO: 391/785 files analyzed, current file: app/classes//Writer/Excel2007/Worksheet.php

INFO: 785/785 source files have been analyzed

INFO: Starting PHP rules

INFO: 785 source files to be analyzed

INFO: 86/785 files analyzed, current file: crons/routes/process.php

INFO: 210/785 files analyzed, current file: app/classes//Writer/Excel2007/Chart.php

INFO: 294/785 files analyzed, current file: app/classes//Calculation/Engineering.php

INFO: 433/785 files analyzed, current file: crons/cron_actualizar_repartos.php

ERROR: Unable to parse file [file:///github/workspace/app/openstreetmap/proj4php/test/spatialreferenceScrapper.php] at line 38

ERROR: Parse error at line 38 column 24:

28: }, explode('</a>', $page)), function ($a) {

29:

30: if (strpos($a, ':') !== false) {

31: return true;

32: }

33:

34: }));

35: echo 'page '.($count+1);

36: if (!array_key_exists($codes[0], $pageCodes)) {

37:

38: echo ' scrapping'.;

^

39:

40: array_walk($codes, function ($c) use (&$pageCodes) {

41: $p = explode(':', $c);

42: $pageCodes[$c] = array(

43: 'ogcwkt' => file_get_contents('http://spatialreference.org/ref/' . strtolower($p[0]) . '/' . $p[1] . '/ogcwkt/'),

44: 'proj4' => file_get_contents('http://spatialreference.org/ref/' . strtolower($p[0]) . '/' . $p[1] . '/proj4/'),

45: 'esriwkt' => file_get_contents('http://spatialreference.org/ref/' . strtolower($p[0]) . '/' . $p[1] . '/esriwkt/'),

46: );

47:

48: echo ' (success)'."\n";

INFO: 526/785 files analyzed, current file: app/classes//Calculation.php

INFO: 659/785 files analyzed, current file: app//proj4php/src/projCode/Eqdc.php

WARN: Failed to resolve 76 include/require statements like 'analytics.php' from 'webhooks_configuracion', 'cron_functions.php' from 'app', 'cron_gap_decode.php' from 'app', 'garmin_comm.php' from 'app', 'google_ws_signing.php' from 'app', 'proj4php/vendor/autoload.php' from 'openstreetmap', 'stork/triggers.php' from 'app', 'util_estadisticas.php' from 'app', 'util_fecha.php' from 'app', 'vendor/autoload.php' from 'stripe'

INFO: 785/785 source files have been analyzed

INFO: No PHPUnit tests reports provided (see 'sonar.php.tests.reportPath' property)

INFO: No PHPUnit coverage reports provided (see 'sonar.php.coverage.reportPaths' property)

INFO: Sensor PHP sensor [php] (done) | time=87028ms

INFO: Sensor Analyzer for "php.ini" files [php]

INFO: Sensor Analyzer for "php.ini" files [php] (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=7ms

INFO: Sensor AWS SAM template file sensor [security]

INFO: Sensor AWS SAM template file sensor [security] (done) | time=15ms

INFO: Sensor AWS SAM Inline template file sensor [security]

INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=14ms

INFO: Sensor javabugs [dbd]

INFO: Reading IR files from: /github/workspace/.scannerwork/ir/java

INFO: No IR files have been included for analysis.

INFO: Sensor javabugs [dbd] (done) | time=2ms

INFO: Sensor pythonbugs [dbd]

INFO: Reading IR files from: /github/workspace/.scannerwork/ir/python

INFO: No IR files have been included for analysis.

INFO: Sensor pythonbugs [dbd] (done) | time=3ms

INFO: Sensor JavaSecuritySensor [security]

INFO: Reading type hierarchy from: /github/workspace/.scannerwork/ucfg2/java

INFO: Read 0 type definitions

INFO: Reading UCFGs from: /github/workspace/.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: /github/workspace/ucfg_cs2

INFO: Read 0 type definitions

INFO: Reading UCFGs from: /github/workspace/ucfg_cs2

INFO: No UCFGs have been included for analysis.

INFO: Sensor CSharpSecuritySensor [security] (done) | time=3ms

INFO: Sensor PhpSecuritySensor [security]

INFO: Reading type hierarchy from: /github/workspace/.scannerwork/ucfg2/php

INFO: Read 768 type definitions

INFO: Reading UCFGs from: /github/workspace/.scannerwork/ucfg2/php

INFO: 22:30:17.182675 Running Tarjan on 54363 nodes

INFO: 22:30:17.242462 Tarjan found 53034 components

INFO: 22:30:17.338158 Variable type analysis: done

INFO: 22:30:17.341434 Building Runtime Type propagation graph

INFO: 22:30:17.60975 Running Tarjan on 59321 nodes

INFO: 22:30:17.651845 Tarjan found 57997 components

INFO: 22:30:17.720773 Variable type analysis: done

INFO: 22:30:17.721442 Building Runtime Type propagation graph

INFO: 22:30:17.900782 Running Tarjan on 58275 nodes

INFO: 22:30:18.033327 Tarjan found 56927 components

INFO: 22:30:18.085616 Variable type analysis: done

INFO: Analyzing 6160 ucfgs to detect vulnerabilities.

INFO: All rules entrypoints : 195

INFO: Retained UCFGs : 2632

INFO: Taint analysis starting. Entrypoints: 195

INFO: Running symbolic analysis for 'PHP'

INFO: High simulation costs for sink in /github/workspace/app/openstreetmap/proj4php/src/Proj4php.php:668. Stop analysing this sink.

INFO: High simulation costs for sink in /github/workspace/app/openstreetmap/proj4php/src/Proj4php.php:664. Stop analysing this sink.

INFO: Taint analysis: done.

INFO: Sensor PhpSecuritySensor [security] (done) | time=19333ms

INFO: Sensor PythonSecuritySensor [security]

INFO: Reading type hierarchy from: /github/workspace/.scannerwork/ucfg2/python

INFO: Read 0 type definitions

INFO: Reading UCFGs from: /github/workspace/.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: /github/workspace/.scannerwork/ucfg2/js

INFO: Read 0 type definitions

INFO: Reading UCFGs from: /github/workspace/.scannerwork/ucfg2/js

INFO: 22:30:36.053555 Building Runtime Type propagation graph

INFO: 22:30:36.236606 Running Tarjan on 39140 nodes

INFO: 22:30:36.281225 Tarjan found 39122 components

INFO: 22:30:36.317825 Variable type analysis: done

INFO: 22:30:36.318635 Building Runtime Type propagation graph

INFO: 22:30:36.449687 Running Tarjan on 39140 nodes

INFO: 22:30:36.470959 Tarjan found 39122 components

INFO: 22:30:36.599659 Variable type analysis: done

INFO: Analyzing 4772 ucfgs to detect vulnerabilities.

INFO: Taint analysis starting. Entrypoints: 404

INFO: Running symbolic analysis for 'JS'

INFO: Taint analysis: done.

INFO: Sensor JsSecuritySensor [security] (done) | time=4967ms

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=152ms

INFO: CPD Executor 259 files had no CPD blocks

INFO: CPD Executor Calculating CPD for 928 files

WARN: Too many duplication groups on file app/modules/timezone.php. Keep only the first 100 groups.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 416. Keep only the first 100 references.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 416. Keep only the first 100 references.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 418. Keep only the first 100 references.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 418. Keep only the first 100 references.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 206. Keep only the first 100 references.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 206. Keep only the first 100 references.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 208. Keep only the first 100 references.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 208. Keep only the first 100 references.

WARN: Too many duplication references on file app/modules/timezone.php for block at line 45. Keep only the first 100 references.

INFO: CPD Executor CPD calculation finished (done) | time=363ms

INFO: SCM writing changed lines

INFO: SCM writing changed lines (done) | time=8ms

INFO: Analysis report generated in 203ms, dir size=2 MB

INFO: Analysis report compressed in 1157ms, zip size=1 MB

INFO: Analysis report uploaded in 1326ms

INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=QM_flash&pullRequest=582

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=AYP3hStXqZ8Rf7oRFsvq

INFO: Analysis total time: 2:47.228 s

INFO: ------------------------------------------------------------------------

INFO: EXECUTION SUCCESS

INFO: ------------------------------------------------------------------------

INFO: Total time: 2:59.157s

INFO: Final Memory: 139M/470M

INFO: ------------------------------------------------------------------------

Thanks

Hi,

This looks like a PR analysis log. Can we get the job log for your main branch? The one that shows no lines of code?

 
Ann

Hello! I deleted the project in sonar and created it again. Then created a PR and merged it to master. This is the log of the master branch:

/usr/bin/docker run --name d5581435519f3ce454ff88963f359a1780b53_5d2d71 --label 8d5581 --workdir /github/workspace --rm -e "GITHUB_TOKEN" -e "SONAR_TOKEN" -e "INPUT_ARGS" -e "INPUT_PROJECTBASEDIR" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/flash/flash":"/github/workspace" 8d5581:435519f3ce454ff88963f359a1780b53
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /github/workspace/sonar-project.properties
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.15 Alpine (64-bit)
INFO: Linux 5.15.0-1022-azure amd64
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /github/workspace/sonar-project.properties
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=579ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=562ms
INFO: Load/download plugins (done) | time=3571ms
INFO: Loaded core extensions: developer-scanner
INFO: Found an active CI vendor: 'Github Actions'
INFO: Load project settings for component key: 'QuadMinds_flash'
INFO: Load project settings for component key: 'QuadMinds_flash' (done) | time=541ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=1ms
INFO: Project key: QuadMinds_flash
INFO: Base dir: /github/workspace
INFO: Working dir: /github/workspace/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=573ms
INFO: Check ALM binding of project 'QuadMinds_flash'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'QuadMinds_flash' (done) | time=528ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=613ms
INFO: Load branch configuration
INFO: Github event: push
INFO: Auto-configuring branch master
INFO: Load branch configuration (done) | time=8ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=635ms
INFO: Load active rules
INFO: Load active rules (done) | time=5403ms
INFO: Organization key: quadminds
INFO: Branch name: master, type: long-lived
INFO: Load project repositories
INFO: Load project repositories (done) | time=535ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json
WARN: Invalid character encountered in file /github/workspace/app/openstreetmap/proj4php/src/Proj4php.php at line 496 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 2813 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 php: Sonar way
INFO: Quality profile for plsql: Sonar way
INFO: Quality profile for web: Sonar way
INFO: Quality profile for xml: Sonar way
INFO: Quality profile for yaml: Sonar way
INFO: ------------- Run sensors on module QuadMinds_flash
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=535ms
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=1555ms
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=1018ms
INFO: Sensor PL/SQL Sensor [plsql]
WARN: The Data Dictionary is not configured for the PLSQL analyzer, which prevents rule(s) S3641, S3921, S3618, S3651 from raising issues. See https://docs.sonarcloud.io/advanced-setup/languages/pl-sql/
INFO: 6 source files to be analyzed
INFO: 6/6 source files have been analyzed
INFO: Sensor PL/SQL Sensor [plsql] (done) | time=961ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=4ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=13ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=1489ms
INFO: Sensor XML Sensor [xml]
INFO: 2 source files to be analyzed
INFO: 2/2 source files have been analyzed
INFO: Sensor XML Sensor [xml] (done) | time=147ms
INFO: Sensor Text Sensor [text]
INFO: 1293 source files to be analyzed
WARN: Invalid character encountered in file /github/workspace/app/js/ajaxtabs.js at line 3 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
WARN: Invalid character encountered in file /github/workspace/app/js/functions.js at line 22 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 1293/1293 source files have been analyzed
INFO: Sensor Text Sensor [text] (done) | time=1175ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=7ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=13ms
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=7ms
INFO: Sensor JavaScript analysis [javascript]
INFO: 403 source files to be analyzed
INFO: 21/403 files analyzed, current file: /github/workspace/api/api/features/things/resolvers/queries/things.js
INFO: 92/403 files analyzed, current file: /github/workspace/app/js/g_parallel.js
INFO: 123/403 files analyzed, current file: /github/workspace/app/js/jquery.ddslick.js
INFO: 166/403 files analyzed, current file: /github/workspace/app/chameleon/js/chameleon_functions.js
INFO: 183/403 files analyzed, current file: /github/workspace/api/api/features/things/services/thing.js
INFO: 288/403 files analyzed, current file: /github/workspace/api/api/features/routes/swagger/paths/index.js
INFO: 397/403 files analyzed, current file: /github/workspace/api/api/features/things/controllers/drivers.js
INFO: 403/403 source files have been analyzed
INFO: Hit the cache for 0 out of 403
INFO: Miss the cache for 403 out of 403: ANALYSIS_MODE_INELIGIBLE [403/403]
INFO: Sensor JavaScript analysis [javascript] (done) | time=75306ms
INFO: Sensor TypeScript analysis [javascript]
INFO: No input files found for analysis
INFO: Hit the cache for 0 out of 0
INFO: Miss the cache for 0 out of 0
INFO: Sensor TypeScript analysis [javascript] (done) | time=9ms
INFO: Sensor JavaScript inside YAML analysis [javascript]
INFO: No input files found for analysis
INFO: Hit the cache for 0 out of 0
INFO: Miss the cache for 0 out of 0
INFO: Sensor JavaScript inside YAML analysis [javascript] (done) | time=20ms
INFO: Sensor CSS Metrics [javascript]
INFO: Sensor CSS Metrics [javascript] (done) | time=398ms
INFO: Sensor CSS Rules [javascript]
INFO: 863 source files to be analyzed
INFO: 497/863 files analyzed, current file: /github/workspace/app/classes/Observers/DomainObserverIdentifer.php
INFO: 863/863 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=15937ms
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=18ms
INFO: Sensor PHP sensor [php]
INFO: Starting PHP symbol indexer
INFO: 785 source files to be analyzed
INFO: 391/785 files analyzed, current file: app/classes/PHPExcel/Writer/Excel2007/Worksheet.php
INFO: 785/785 source files have been analyzed
INFO: Starting PHP rules
INFO: 785 source files to be analyzed
INFO: 86/785 files analyzed, current file: crons/routes/process.php
INFO: 207/785 files analyzed, current file: app/flash/flash_ajax.php
INFO: 293/785 files analyzed, current file: app/openstreetmap/proj4php/src/projCode/Vandg.php
INFO: 417/785 files analyzed, current file: app/ruteador_optimizar_rework_old.php
ERROR: Unable to parse file [file:///github/workspace/app/openstreetmap/proj4php/test/spatialreferenceScrapper.php] at line 38
ERROR: Parse error at line 38 column 24:

28:     }, explode('</a>', $page)), function ($a) {
29: 
30:         if (strpos($a, ':') !== false) {
31:             return true;
32:         }
33: 
34:     }));
35:     echo 'page '.($count+1);
36:     if (!array_key_exists($codes[0], $pageCodes)) {
37: 
38:      echo ' scrapping'.;
                           ^
39: 
40:         array_walk($codes, function ($c) use (&$pageCodes) {
41:             $p             = explode(':', $c);
42:             $pageCodes[$c] = array(
43:                 'ogcwkt'  => file_get_contents('http://spatialreference.org/ref/' . strtolower($p[0]) . '/' . $p[1] . '/ogcwkt/'),
44:                 'proj4'   => file_get_contents('http://spatialreference.org/ref/' . strtolower($p[0]) . '/' . $p[1] . '/proj4/'),
45:                 'esriwkt' => file_get_contents('http://spatialreference.org/ref/' . strtolower($p[0]) . '/' . $p[1] . '/esriwkt/'),
46:             );
47: 
48:             echo ' (success)'."\n";

INFO: 512/785 files analyzed, current file: app/classes/PHPExcel/Shared/Date.php
INFO: 625/785 files analyzed, current file: app/uploader/upload_file_clientes_generico.php
INFO: 773/785 files analyzed, current file: app/mapa2_ajax.php
WARN: Failed to resolve 76 include/require statements like 'analytics.php' from 'webhooks_configuracion', 'cron_functions.php' from 'app', 'cron_gap_decode.php' from 'app', 'garmin_comm.php' from 'app', 'google_ws_signing.php' from 'app', 'proj4php/vendor/autoload.php' from 'openstreetmap', 'stork/triggers.php' from 'app', 'util_estadisticas.php' from 'app', 'util_fecha.php' from 'app', 'vendor/autoload.php' from 'stripe'
INFO: 785/785 source files have been analyzed
INFO: No PHPUnit tests reports provided (see 'sonar.php.tests.reportPath' property)
INFO: No PHPUnit coverage reports provided (see 'sonar.php.coverage.reportPaths' property)
INFO: Sensor PHP sensor [php] (done) | time=90520ms
INFO: Sensor Analyzer for "php.ini" files [php]
INFO: Sensor Analyzer for "php.ini" files [php] (done) | time=8ms
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=8ms
INFO: Sensor AWS SAM template file sensor [security]
INFO: Sensor AWS SAM template file sensor [security] (done) | time=16ms
INFO: Sensor AWS SAM Inline template file sensor [security]
INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=15ms
INFO: Sensor javabugs [dbd]
INFO: Reading IR files from: /github/workspace/.scannerwork/ir/java
INFO: No IR files have been included for analysis.
INFO: Sensor javabugs [dbd] (done) | time=3ms
INFO: Sensor pythonbugs [dbd]
INFO: Reading IR files from: /github/workspace/.scannerwork/ir/python
INFO: No IR files have been included for analysis.
INFO: Sensor pythonbugs [dbd] (done) | time=3ms
INFO: Sensor JavaSecuritySensor [security]
INFO: Reading type hierarchy from: /github/workspace/.scannerwork/ucfg2/java
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /github/workspace/.scannerwork/ucfg2/java
INFO: No UCFGs have been included for analysis.
INFO: Sensor JavaSecuritySensor [security] (done) | time=6ms
INFO: Sensor CSharpSecuritySensor [security]
INFO: Reading type hierarchy from: /github/workspace/ucfg_cs2
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /github/workspace/ucfg_cs2
INFO: No UCFGs have been included for analysis.
INFO: Sensor CSharpSecuritySensor [security] (done) | time=3ms
INFO: Sensor PhpSecuritySensor [security]
INFO: Reading type hierarchy from: /github/workspace/.scannerwork/ucfg2/php
INFO: Read 768 type definitions
INFO: Reading UCFGs from: /github/workspace/.scannerwork/ucfg2/php
INFO: 13:56:16.740076 Running Tarjan on 54363 nodes
INFO: 13:56:16.799881 Tarjan found 53034 components
INFO: 13:56:16.882415 Variable type analysis: done
INFO: 13:56:16.88618 Building Runtime Type propagation graph
INFO: 13:56:17.164776 Running Tarjan on 59321 nodes
INFO: 13:56:17.209952 Tarjan found 57997 components
INFO: 13:56:17.293402 Variable type analysis: done
INFO: 13:56:17.294803 Building Runtime Type propagation graph
INFO: 13:56:17.630836 Running Tarjan on 58275 nodes
INFO: 13:56:17.735253 Tarjan found 56927 components
INFO: 13:56:17.804667 Variable type analysis: done
INFO: Analyzing 6160 ucfgs to detect vulnerabilities.
INFO: All rules entrypoints : 195
INFO: Retained UCFGs : 2632
INFO: Taint analysis starting. Entrypoints: 195
INFO: Running symbolic analysis for 'PHP'
INFO: High simulation costs for sink in /github/workspace/app/openstreetmap/proj4php/src/Proj4php.php:668. Stop analysing this sink.
INFO: High simulation costs for sink in /github/workspace/app/openstreetmap/proj4php/src/Proj4php.php:664. Stop analysing this sink.
INFO: Taint analysis: done.
INFO: Sensor PhpSecuritySensor [security] (done) | time=20431ms
INFO: Sensor PythonSecuritySensor [security]
INFO: Reading type hierarchy from: /github/workspace/.scannerwork/ucfg2/python
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /github/workspace/.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: /github/workspace/.scannerwork/ucfg2/js
INFO: Read 0 type definitions
INFO: Reading UCFGs from: /github/workspace/.scannerwork/ucfg2/js
INFO: 13:56:36.745409 Building Runtime Type propagation graph
INFO: 13:56:36.898287 Running Tarjan on 39140 nodes
INFO: 13:56:37.017056 Tarjan found 39122 components
INFO: 13:56:37.085622 Variable type analysis: done
INFO: 13:56:37.08646 Building Runtime Type propagation graph
INFO: 13:56:37.223968 Running Tarjan on 39140 nodes
INFO: 13:56:37.252355 Tarjan found 39122 components
INFO: 13:56:37.300191 Variable type analysis: done
INFO: Analyzing 4772 ucfgs to detect vulnerabilities.
INFO: Taint analysis starting. Entrypoints: 404
INFO: Running symbolic analysis for 'JS'
INFO: Taint analysis: done.
INFO: Sensor JsSecuritySensor [security] (done) | time=5334ms
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=162ms
INFO: SCM Publisher SCM provider for this project is: git
INFO: SCM Publisher 1290 source files to be analyzed
INFO: Blaming files using native implementation
INFO: 646/1290 source files have been analyzed
INFO: Blaming files using native implementation (done) | time=15222ms
INFO: SCM Publisher 1290/1290 source files have been analyzed (done) | time=15419ms
INFO: CPD Executor 269 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 952 files
WARN: Too many duplication groups on file app/modules/timezone.php. Keep only the first 100 groups.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 416. Keep only the first 100 references.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 416. Keep only the first 100 references.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 418. Keep only the first 100 references.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 418. Keep only the first 100 references.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 206. Keep only the first 100 references.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 206. Keep only the first 100 references.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 208. Keep only the first 100 references.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 208. Keep only the first 100 references.
WARN: Too many duplication references on file app/modules/timezone.php for block at line 45. Keep only the first 100 references.
INFO: CPD Executor CPD calculation finished (done) | time=411ms
INFO: Analysis report generated in 376ms, dir size=34 MB
INFO: Analysis report compressed in 3146ms, zip size=8 MB
INFO: Analysis report uploaded in 1808ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=QuadMinds_flash&branch=master
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=AYQPbq2P2kJxK7nCiiJH
INFO: Analysis total time: 4:17.004 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 4:26.307s
INFO: Final Memory: 140M/470M
INFO: ------------------------------------------------------------------------

thanks,
Jorge

Hi Jorge,

After deletion/recreation is the main branch still not showing any results?

 
Ann

Hello! Yes, I’m still unable to see results.

“master” branch has not been analyzed yet"

thanks

Hi,

Could you check the ‘Branches’ page for your project? I think I’m seeing something similar on one of our projects & I’ve pinged the product team on this. And while we wait for them, could you confirm that you’re seeing something like this:

 
Ann

Hello! Yes! same issue here. And in “pull request”, PRs are being analyzed.

thanks!

1 Like

I found the problem.

I’ve found this error in [Organization Name] → [Project Name] → Background Tasks

Error Message

This analysis will make your organization ‘quadminds’ to reach the maximum allowed lines limit (having 232964 lines). Please contact the administrator of the organization to resolve this issue.

thanks,
Jorge

Hi Jorge,

Thanks for reporting back, but I don’t think that’s the root cause of the message you see on the project homepage. IMO that should still be investigated. I hope you don’t mind continuing to participate?

 
Ann

Yes, sure, no problem. We are still evaluating the product and I think we will upgrade the plan if it’s necesary.

Hi @jtz-ar,

I’ll investigate the issue with your project.
Could you confirm that no analysis of the master branch succeeded and that all the background tasks related to the master branch failed with that message:

If yes, then the message is normal: since no task reached a successful end on the master branch, there are no results to display.
To have results, you can try to reduce the scope of the analysis, and for example, reduce it to a single directory or the main language of your repository. By reducing the scope, you may go below the limit of lines of code of your organization and get partial results that may help you evaluate our product.

On the opposite, if at least one task for master succeeded, I’ll continue the investigation.

Thanks for your participation in this thread,
Claire

Hello! The github action ended with no errors. But if I go to the project, administration, background tasks, I see a FAILED in the master branch analysis, saying about reaching the maximum allowed lines limit.

If I want to reduce the scope of the analysis only to the root folder “app1” and only to php files, is this configuration correct?

sonar.sources=app1/**/*php

thanks

Hello,

As the doc mentions:

The sonar.sources parameter defines the starting point for SonarCloud to recursively search for (non-test) source code files to analyze. […] Other parameters (see below) can be used to further narrow the scope within these initial directories.

I think something like that has better chances:

sonar.sources=app1
sonar.inclusions=**/*.php

I invite you to test different patterns until the number of included files is small enough for you to not hit the limit of your organization.
As you mentioned, this limit is checked on the server side, so the scanning (the part on GitHub Action) will still succeed, and you should monitor the background task to see the effect of your configuration.
Once a background task on master will have succeeded, you should see the result.

HTH
Claire