Skip to content

Commit a888380

Browse files
committed
Increase WinRM shell and user limits for CI
The WinRM tests function by opening shells on localhost via WinRM. The defaults for processes, users, and shells per user may be getting exhausted in the course of running tests in parallel, resulting in the transient failures we've seen on PR checks. This bumps the limits up to a point where they hopefully should no longer be a problem.
1 parent 701df12 commit a888380

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/ci.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,11 @@ Set-WSManQuickConfig -Force
156156
Set-WinRMHostConfiguration
157157
Test-WinRMConfiguration @User | Out-Null
158158
Add-Content -Path $ENV:GITHUB_ENV -Value "BOLT_WINRM_PASSWORD=$pass"
159+
Set-Item WSMan:\localhost\Plugin\microsoft.powershell\Quotas\MaxShells -Value 100
160+
Set-Item WSMan:\localhost\Plugin\microsoft.powershell\Quotas\MaxShellsPerUser -Value 100
161+
Set-Item WSMan:\localhost\Plugin\microsoft.powershell\Quotas\MaxProcessesPerShell -Value 100
162+
Set-Item WSMan:\localhost\Plugin\microsoft.powershell\Quotas\MaxConcurrentUsers -Value 100
163+
Set-Item WSMan:\localhost\Shell\MaxShellsPerUser -Value 100
164+
Set-Item WSMan:\localhost\Shell\MaxProcessesPerShell -Value 100
165+
Set-Item WSMan:\localhost\Shell\MaxConcurrentUsers -Value 100
159166
Restart-Service WinRm

0 commit comments

Comments
 (0)