Open RonKoppelaar opened 4 weeks ago
Isn't the performance drop simply from finding and downloading artifacts?
No. I think it started when I switched to W22, using local system account on non-azure machine. I’ll back port to azure and w19 to see where the drop started. Also have a w22 azure machine.
It seems to be Windows 22 related. Both servers (Azure / non-Azure) are slow. I’m currently running the same build on W22 and W19. On W19 I see compile times similar to the normal build. The first app inline takes 55secs. On W22, the same app takes 280 secs.
Main difference between the tow machines:
I’ll also test on the W22 machine as a normal (admin) user and see if it has same results
W19.log W22.log time diff between AppSource validation (9 apps): W19: 22min. W22: 1H:38min.
Please find attached detailed logs of both
Also running it in ISE on W22 (with administrator account) compile of the first app took: 275secs.. Just ran this:
$Start = Get-date
Run-AlValidation -containerName test `
-apps "C:\Temp\Zig_Empire System Application_24.2412.12635.0.app" `
-countries "NL" `
-includeWarnings:$false `
-validateVersion "24" `
-affixes "EMP"
(Get-Date)-$Start
So my first conclusion is that run-alValidation is slow in all cases when running on W22. Tested on Azure and non-Azure machine. Local environment (W11) also slow... : 250secs. to compile first app.
Freddy, I think found the issue on W22, its related to PS7 sessions. If I set the parameter: $bcContainerHelperConfig.usePsSession = $false
All works with same performance. Any clue?
Also on W2019, the performance is faster using the $bcContainerHelperConfig.usePsSession = $false But the total penalty is less: 93secs vs 123secs to validate one app
On Windows22 its: 41secs vs 551secs!
After implementing some improvements in pipeline and using the UsePSSession switch the overall performance increased dramatically. See attached screenshots of 4 builds and their total duration time:
Going from bottom to top:
So with this workaround (UsePSSession=false) my problem is solved, but I do think there's a small bug somewhere...
Not sure when this started, but I see a huge performance drop on the ALValidation We run the validation against bc24.5 (latest container).
Validating an app which in vscode takes couple of seconds takes minutes...
I'm running this in a build pipeline on a hosted agent with very strong power...
On my local laptop I don't see this happening... Other builds (and container creation ) are lightning fast
Parameters for run-alvalidation: Container name RunAlValidation-59 Credential admin/Bara4671 MemoryLimit 8G validateVersion 24 validateCurrent False validateNextMinor False validateNextMajor False countries nl validateCountries nl affixes EMP,ADLSE supportedCountries
ObsoleteTagMinAllowedMajorMinor vsixFile
Install Apps
Previous Apps
I'll add logfile from azure devops when its completed