Hi everyone,
We are experiencing very long execution times in the Compute Engine background task, specifically in the step:
**Compute new coverage
**
SQ version : 24.12
Problem
The scanner phase finishes quickly, but the Compute Engine background task takes 20–60 minutes before completing. and we identify what is causing the issue even though the process and logs looks similar for the jobs which took long time and less time.
From CE logs:
Compute new coverage | status=SUCCESS | time=3744743ms
Example duration:
3744743 ms ≈ 62 minutes
This delays in getting status as the background task taking time.
Important observation
This occurs even when the PR contains only 2–3 changed files.
- The issue does not occur for all projects
- It happens only for a few projects and only for some PR jobs
- The same project may sometimes run fast and sometimes very slow
- There is no memery, cpu issue and no spikes during those jobs run
Coverage metrics
In Sonar UI we see:
Coverage = 0
Lines to Cover = 0
So no coverage data appears to be imported.
Configuration
Relevant scanner properties:
sonar.scm.disabled=true
sonar.coverage.exclusions=**/aura/**,**/pages/**
sonar.sources=/analysis/src
PR comparison:
sonar.comparison.base=master
sonar.comparison.branch=<feature branch>
Logs
Only this step is slow:
Compute size measures | time=0ms
Compute new coverage | time=3744743ms
Compute coverage measures | time=0ms
Compute comment measures | time=0ms
Scanner-context:
-
sonar.auth.auth0.enabled=true sonar.auth.auth0.removeAfterPipe=true sonar.auth.saml2.enabled=true sonar.builtInQualityProfiles.disableNotificationOnUpdate=true sonar.core.id=E2EA3061-AXxgGoWxLn1CJXu_IB4M sonar.core.startTime=2026-03-01T07:48:25+0000 sonar.coverage.exclusions=/aura/,/pages/ sonar.cs.file.suffixes=.cs,.razor sonar.css.file.suffixes=.css,.less,.scss,.sass sonar.dbcleaner.branchesToKeepWhenInactive=master,develop,trunk sonar.flex.file.suffixes=as sonar.forceAuthentication=true sonar.go.file.suffixes=.go sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.twig sonar.ipynb.file.suffixes=ipynb sonar.java.file.suffixes=.java,.jav sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue sonar.javascript.globals=angular,goog,google,OpenLayers,d3,dojo,dojox,dijit,Backbone,moment,casper,$A,AuraContext,AuraSerializationService,AuraExpressionService,AuraEventService,AuraLocalizationService,AuraStorageService,AuraStyleService,MetricsService,AuraDevToolService,Component,CKEDITOR,FORCE,iScroll,unescape,Promise,Visualforce,sforce,Set sonar.jsp.file.suffixes=.jsp,.jspf,.jspx sonar.kotlin.file.suffixes=.kt,.kts sonar.mule.file.suffixes=.abcd sonar.multi-quality-mode.enabled=false sonar.organizations.anyoneCanCreate=false sonar.organizations.createPersonalOrg=false sonar.organizations.defaultPublicVisibility=false sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc sonar.plugins.risk.consent=ACCEPTED sonar.projectCreation.mainBranchName=master sonar.python.file.suffixes=py sonar.qualityProfiles.allowDisableInheritedRules=false sonar.ruby.file.suffixes=.rb sonar.scala.file.suffixes=.scala sonar.scm.disabled=true sonar.sf.file.suffixes=.trigger,.cls sonar.sfmeta.file.suffixes=.settings sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts sonar.vbnet.file.suffixes=.vb sonar.vf.file.suffixes=.page,.component,.app,.evt,.cmp,.intf Project server settings: sonar.cs.file.suffixes=.cs,.razor sonar.css.file.suffixes=.css,.less,.scss,.sass sonar.flex.file.suffixes=as sonar.go.file.suffixes=.go sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.twig sonar.ipynb.file.suffixes=ipynb sonar.java.file.suffixes=.java,.jav sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue sonar.jsp.file.suffixes=.jsp,.jspf,.jspx sonar.kotlin.file.suffixes=.kt,.kts sonar.mule.file.suffixes=.abcd sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc sonar.python.file.suffixes=py sonar.ruby.file.suffixes=.rb sonar.scala.file.suffixes=.scala sonar.sf.file.suffixes=.trigger,.cls sonar.sfmeta.file.suffixes=.settings sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts sonar.vbnet.file.suffixes=.vb sonar.vf.file.suffixes=.page,.component,.app,.evt,.cmp,.intf Project scanner properties: sonar.analysis.buildId=xxxxx sonar.analysis.buildJobContextId=xxxxx sonar.comparison.base=master sonar.comparison.branch=tod sonar.exclusions= sonar.java.binaries=. sonar.links.ci= sonar.organization=boi sonar.projectBaseDir=/opt/analysis/src sonar.projectKey=00d0e00000 sonar.projectName=Pre-Prod sonar.projectVersion=1.0 sonar.scanner.app=AnalysisApp sonar.scanner.appVersion=1.1 sonar.sourceEncoding=utf8 sonar.sources=/opt/analysis/src sonar.userHome=/tmp sonar.working.directory=/opt/analysis/src/.scannerworkQuestion
Why would Compute new coverage take tens of minutes even when:
-
PR contains only 2–3 files
-
Coverage metrics are zero
-
No coverage report seems to be imported
Is this step still traversing the entire project tree, or could something else trigger excessive processing?
Any suggestions for diagnosing or reducing the runtime of this step would be appreciated.
Thanks!