SonarCloud failling GitHub Actions

Hi, there.

I have been using SonarCloud the last 1 year and half, and recently(since 1 month ago) my pipeline on Github Actions is just failing due SonarCloud Java errors. There was no changes on the pipeline itself recently and my repo is a python/django webapp.

The execution is taking sometimes 6hrs until be killed by Github or raise a fatal error. An example of it was the last execution yesterday:

Exception in thread "HttpClient-1-Worker-2" java.lang.OutOfMemoryError: Java heap space

I’m using SonarSource/sonarcloud-github-action@master on my jobs.

Thanks for your attention.

Hey there.

Can you share the logs of the action?

Thanks for the response, sure!

Run SonarSource/sonarcloud-github-action@master
/usr/bin/docker run --name b74ec0fc783b393a9545998d1cf1677af63e3a_72f9c3 --label b74ec0 --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_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -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_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -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_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true --entrypoint "/entrypoint.sh" --network github_network_0ac50e2030ce4a9fafcd4663839d500b -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/equali/equali":"/github/workspace" b74ec0:fc783b393a9545998d1cf1677af63e3a
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /github/workspace/sonar-project.properties
INFO: SonarScanner 5.0.1.3006
INFO: Java 17.0.10 Alpine (64-bit)
INFO: Linux 6.5.0-1018-azure amd64
INFO: User cache: /opt/sonar-scanner/.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=588ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Loading required plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=560ms
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=1119ms
INFO: Found an active CI vendor: 'Github Actions'
INFO: Load project settings for component key: 'xxx'
INFO: Load project settings for component key: 'xxx' (done) | time=548ms
INFO: Process project properties
INFO: Project key: xxx
INFO: Base dir: /github/workspace
INFO: Working dir: /github/workspace/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=564ms
INFO: Check ALM binding of project 'xxx'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'xxx' (done) | time=534ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=538ms
INFO: Load branch configuration
INFO: Github event: push
INFO: Auto-configuring branch main
INFO: Load branch configuration (done) | time=9ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=615ms
INFO: Load active rules
INFO: Load active rules (done) | time=10771ms
INFO: Organization key: xxx
INFO: Branch name: main, type: long-lived
INFO: Preprocessing files...
INFO: 2 languages detected in 200 preprocessed files
INFO: 394 files ignored because of inclusion/exclusion patterns
INFO: 139 files ignored because of scm ignore settings
INFO: Loading plugins for detected languages
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=1295ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=719ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json, tests/**/*, **/tests/**/*, migrations/**/*, **/migrations/**/*
INFO:   Excluded sources for coverage: tests/**/*, **/tests/**/*, management/**/*, **/management/**/*, migrations/**/*, **/migrations/**/*, settings/**/*, **/settings/**/*, **/manage.py, **/wsgi.py, **/urls.py, **/fabfile.py
INFO:   Excluded sources for duplication: tests/**/*, **/tests/**/*, migrations/**/*, **/migrations/**/*
INFO: 200 files indexed
INFO: Quality profile for py: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module xxx
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=536ms
INFO: Sensor cache enabled
INFO: Load sensor cache
INFO: Load sensor cache (16 MB) | time=2725ms
INFO: Sensor Python Sensor [python]
WARN: Your code is analyzed as compatible with all Python 3 versions by default. You can get a more precise analysis by setting the exact Python version in your configuration via the parameter "sonar.python.version"
INFO: Starting global symbols computation
INFO: 170 source files to be analyzed
INFO: 170/170 source files have been analyzed
INFO: Starting rules execution
INFO: 170 source files to be analyzed
INFO: 71/170 files analyzed, current file: xxx/reconciliation/managers.py
INFO: 71/170 files analyzed, current file: xxx/reconciliation/managers.py
INFO: 170/170 source files have been analyzed
INFO: The Python analyzer was able to leverage cached data from previous analyses for 0 out of 170 files. These files were not parsed.
INFO: Sensor Python Sensor [python] (done) | time=26620ms
INFO: Sensor Cobertura Sensor for Python coverage [python]
INFO: Python test coverage
INFO: Parsing report '/github/workspace/coverage.xml'
WARN: Invalid directory path in 'source' element: /home/runner/work/xxx/xxx
INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=1121ms
INFO: Sensor PythonXUnitSensor [python]
INFO: Sensor PythonXUnitSensor [python] (done) | time=615ms
INFO: Sensor Python HTML templates processing [securitypythonfrontend]
INFO: Found no 'settings.py' files in the project. We will consider 'autoescape' project option enabled.
INFO: Sensor Python HTML templates processing [securitypythonfrontend] (done) | time=123ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=485ms
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 inside HTML analysis [javascript]
INFO: Detected os: Linux arch: amd64 alpine: true. Platform: UNSUPPORTED
INFO: Using Node.js executable: 'node'.
INFO: Memory configuration: OS (7929 MB), Node.js (2096 MB).
INFO: 23 source files to be analyzed
INFO: 23/23 source files have been analyzed
INFO: Hit the cache for 0 out of 23
INFO: Miss the cache for 23 out of 23: ANALYSIS_MODE_INELIGIBLE [23/23]
INFO: Sensor JavaScript inside HTML analysis [javascript] (done) | time=10925ms
INFO: Sensor CSS Rules [javascript]
INFO: 23 source files to be analyzed
INFO: 23/23 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=678ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=96ms
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=1ms
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=7ms
INFO: Sensor pythonbugs [dbd]
INFO: Reading IR files from: /github/workspace/.scannerwork/ir/python
INFO: Analyzing 534 functions to detect bugs.
Exception in thread "HttpClient-1-Worker-2" java.lang.OutOfMemoryError: Java heap space
	at java.base/jdk.internal.org.objectweb.asm.ByteVector.<init>(ByteVector.java:86)
	at java.base/jdk.internal.org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:642)
	at java.base/java.lang.invoke.InnerClassLambdaMetafactory.generateInnerClass(InnerClassLambdaMetafactory.java:386)
	at java.base/java.lang.invoke.InnerClassLambdaMetafactory.spinInnerClass(InnerClassLambdaMetafactory.java:315)
	at java.base/java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:228)
	at java.base/java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:341)
	at java.base/java.lang.invoke.LambdaForm$DMH/0x00007f66b8208000.invokeStatic(LambdaForm$DMH)
	at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
	at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:134)
	at java.base/java.lang.invoke.CallSite.makeSite(CallSite.java:315)
	at java.base/java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:281)
	at java.base/java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:271)
	at java.net.http/jdk.internal.net.http.Http1Response.onReadError(Http1Response.java:549)
	at java.net.http/jdk.internal.net.http.Http1Response$HeadersReader.onReadError(Http1Response.java:676)
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.checkForErrors(Http1AsyncReceiver.java:302)
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.flush(Http1AsyncReceiver.java:268)
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver$$Lambda$2486/0x00007f66b87fb5c8.run(Unknown Source)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask.run(SequentialScheduler.java:205)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:149)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
ERROR: isAlive was interrupted
java.lang.InterruptedException: null
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:386)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:553)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.isAlive(BridgeServerImpl.java:431)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.heartbeat(BridgeServerImpl.java:139)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

Error: The operation was canceled.

I also had this today:

ERROR: isAlive was interrupted
java.lang.InterruptedException: null
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:386)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:553)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.isAlive(BridgeServerImpl.java:431)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.heartbeat(BridgeServerImpl.java:139)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 3:09.544s
INFO: Final Memory: 207M/697M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.OutOfMemoryError: Java heap space
	at java.base/java.lang.Integer.valueOf(Integer.java:1081)
	at com.google.protobuf.IntArrayList.get(na:1376)
	at com.google.protobuf.IntArrayList.get(na:1800)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.get(AbstractList.java:735)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at com.sonarsource.A.B.X.B(na:3294)
	at com.sonarsource.A.B.X.A(na:990)
	at com.sonarsource.A.B.X.A(na:394)
	at com.sonarsource.A.F.readIrFile(na:2971)
	at com.sonarsource.A.F.executeChecks(na:2320)
	at com.sonarsource.A.F.executeSensor(na:3218)
	at com.sonarsource.A.F.execute(na:2367)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:51)
	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
ERROR: 

Hey there.

There are two possible things going on:

  • There’s a bug in the analysis that’s consuming too much memory
  • You simply need more memory than the default for your specific project

Can you try setting the SONAR_SCANNER_OPTS variable in your pipeline to increase the heap, with a config like -Xmx2G -Xms2G?

You’ll know you did it right because you’ll see it in the scanner logs:

INFO: SONAR_SCANNER_OPTS=-Xmx2G -Xms2G

Still the same error, take a look on the log bellow.

This is very strange seeing is a small project, which didn’t increase it’s number of lines covered to justify something like this.


Run SonarSource/sonarcloud-github-action@master
/usr/bin/docker run --name afd6d49a000e46ae4d5ba83a7627694289d2_f6a689 --label 26afd6 --workdir /github/workspace --rm -e "GITHUB_TOKEN" -e "SONAR_TOKEN" -e "SONAR_SCANNER_OPTS" -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_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -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_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -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" 
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /github/workspace/sonar-project.properties
INFO: SonarScanner 5.0.1.3006
INFO: Java 17.0.10 Alpine (64-bit)
INFO: Linux 6.5.0-1018-azure amd64
INFO: SONAR_SCANNER_OPTS=-Xmx2G -Xms2G
INFO: User cache: /opt/sonar-scanner/.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=618ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Loading required plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=526ms
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=1091ms
INFO: Found an active CI vendor: 'Github Actions'
INFO: Load project settings for component key: 'x'
INFO: Load project settings for component key: 'x' (done) | time=542ms
INFO: Process project properties
INFO: Project key: x
INFO: Base dir: /github/workspace
INFO: Working dir: /github/workspace/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=554ms
INFO: Check ALM binding of project 'x'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'x' (done) | time=484ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=517ms
INFO: Load branch configuration
INFO: Github event: push
INFO: Auto-configuring branch main
INFO: Load branch configuration (done) | time=5ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=672ms
INFO: Load active rules
INFO: Load active rules (done) | time=8211ms
INFO: Organization key: x
INFO: Branch name: main, type: long-lived
INFO: Preprocessing files...
INFO: 2 languages detected in 200 preprocessed files
INFO: 394 files ignored because of inclusion/exclusion patterns
INFO: 139 files ignored because of scm ignore settings
INFO: Loading plugins for detected languages
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=1086ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=631ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json, tests/**/*, **/tests/**/*, migrations/**/*, **/*.doc, **/*.docx, **/*.ipch, **/migrations/**/*
INFO:   Excluded sources for coverage: tests/**/*, **/tests/**/*, management/**/*, **/management/**/*, migrations/**/*, **/migrations/**/*, settings/**/*, **/settings/**/*, **/manage.py, **/wsgi.py, **/urls.py, **/fabfile.py
INFO:   Excluded sources for duplication: tests/**/*, **/tests/**/*, migrations/**/*, **/migrations/**/*
INFO: 200 files indexed
INFO: Quality profile for py: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module x
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=491ms
INFO: Sensor cache enabled
INFO: Load sensor cache
INFO: Load sensor cache (18 MB) | time=3015ms
INFO: Sensor Python Sensor [python]
WARN: Your code is analyzed as compatible with all Python 3 versions by default. You can get a more precise analysis by setting the exact Python version in your configuration via the parameter "sonar.python.version"
INFO: Starting global symbols computation
INFO: 170 source files to be analyzed
INFO: 170/170 source files have been analyzed
INFO: Starting rules execution
INFO: 170 source files to be analyzed
INFO: 71/170 files analyzed, current file: x/reconciliation/managers.py
INFO: 133/170 files analyzed, current file: x/settlement/models.py
INFO: 170/170 source files have been analyzed
INFO: The Python analyzer was able to leverage cached data from previous analyses for 0 out of 170 files. These files were not parsed.
INFO: Sensor Python Sensor [python] (done) | time=24012ms
INFO: Sensor Cobertura Sensor for Python coverage [python]
INFO: Python test coverage
INFO: Parsing report '/github/workspace/coverage.xml'
WARN: Invalid directory path in 'source' element: /home/runner/work/x/x
INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=1329ms
INFO: Sensor PythonXUnitSensor [python]
INFO: Sensor PythonXUnitSensor [python] (done) | time=614ms
INFO: Sensor Python HTML templates processing [securitypythonfrontend]
INFO: Found no 'settings.py' files in the project. We will consider 'autoescape' project option enabled.
INFO: Sensor Python HTML templates processing [securitypythonfrontend] (done) | time=138ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=619ms
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=3ms
INFO: Sensor JavaScript inside HTML analysis [javascript]
INFO: Detected os: Linux arch: amd64 alpine: true. Platform: UNSUPPORTED
INFO: Using Node.js executable: 'node'.
INFO: Memory configuration: OS (7929 MB), Node.js (2096 MB).
INFO: 23 source files to be analyzed
INFO: 23/23 source files have been analyzed
INFO: Hit the cache for 0 out of 23
INFO: Miss the cache for 23 out of 23: ANALYSIS_MODE_INELIGIBLE [23/23]
INFO: Sensor JavaScript inside HTML analysis [javascript] (done) | time=10379ms
INFO: Sensor CSS Rules [javascript]
INFO: 23 source files to be analyzed
INFO: 23/23 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=582ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=121ms
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=1ms
INFO: Sensor AWS SAM Inline template file sensor [security]
INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
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=10ms
INFO: Sensor pythonbugs [dbd]
INFO: Reading IR files from: /github/workspace/.scannerwork/ir/python
INFO: Analyzing 537 functions to detect bugs.
Exception in thread "HttpClient-1-SelectorManager" java.lang.OutOfMemoryError: Java heap space
ERROR: isAlive was interrupted
java.lang.InterruptedException: null
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:386)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:553)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.isAlive(BridgeServerImpl.java:431)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.heartbeat(BridgeServerImpl.java:139)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

Hey @tassionoronha,

In order for us to investigate, could you send me the contents of the .scannerwork/ir/python directory in a private message? The full path of this directory should be visible from the logs:

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

Thanks for your attention,
Got the logs, but they are slightly different here:

INFO: Working dir: /github/workspace/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=390ms
INFO: Check ALM binding of project 'xxx'

Also, didn’t get how I can send you a PM. Maybe I dont have permission yet?

I reached out to you in a private message to discuss how to send the files, you should be able to reply to that one.