Template for a good new topic, formatted with Markdown:
ALM used:Azure DevOps
CI system used: Azure DevOps
Scanner command used when applicable (private details masked)
Languages of the repository: C#, HTML, JSON
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
Using Task SonarCloudAnalyze@4 (4.0.2) the build server needs about 14 minutes to compress the zip file of the analysis. The task was canceled after more then 34 minutes runtime (complete build runtime 60 minutes). Building the solution in comparission oly takes 15m 29s - thus sonar analyze takes more then double of the build time.
11:54:20.835 INFO: SCM writing changed lines (done) | time=3157ms
11:54:29.365 INFO: Analysis report generated in 58826ms, dir size=88 MB
12:08:02.68 INFO: Analysis report compressed in 813299ms, zip size=33 MB
12:08:29.19 INFO: Analysis report uploaded in 26510ms
Could you add -Dsonar.verbose=true to your analysis command line and give us the resulting analysis log?
Off-hand, I’m suspecting something going on with your file system. It’s definitely not normal (as I suspect you know ) for zip compression to double analysis duration.
Hi @antoine.vinot
yes, some details I gave you already above on Feb 12th, but I will add further details.
Before I was asked the colleagues already run the build on several servers. They differ in runtime, but the main issue remains: long run time of SonarCloudAnalyze@4, especially the zipping from 88 MB to 33MB.
Run
Agent
Build
SonarCloudAnalyze
zipping
20260203.9
CLNDRCB9Z2
8m 9s
18m 59s
8m 25s
20260203.10
CLV1730002
15m 29s
24m37s (timeout)
13m 33s
20260206.5
CLV1730002
14m 12s
31m 47s
11m 21s
20260206.6
CLV1730002
14m 14s
29m 32s
12m 13s
20260223.2
windows-latest
17m 16s
12m 40s
20 s
On the server CLV1730002:
Only one drive C (HDD(SAS), 141 GB free, 395 GB total), NTFS
Intel(R) Xeon(R) Silver 4208 CPU @ 2.10GHz (2.10 GHz)
RAM dynamic allocated, as far as I know up to 32 GB
Now I run the pipeline on a Microsoft hosted build agent and update dthe table in the message above. It really seems that the zipping depends on our hardware / network storage. We will talk to the IT department. Thanks for the investigation help.