Skip to content

Commit dbc2ca7

Browse files
[Infra]: reverting OOM attempts in test-steps.ps1 (#28601)
1 parent 72e8880 commit dbc2ca7

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.azure-pipelines/PipelineSteps/test-steps.ps1

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,7 @@ if ($PowerShellPlatform) {
3131
$preference = $ErrorActionPreference
3232
$ErrorActionPreference = 'Continue'
3333
$buildProjPath = Join-Path $RepoRoot 'build.proj'
34-
35-
$buildArgs = "/p:Configuration=$Configuration;TestFramework=$TestFramework"
36-
37-
if ($IsLinux) {
38-
# Applying various parallelism/heap restriction behaviors to prevent OOM issues on Ubuntu 24.04
39-
Write-Host -ForegroundColor Yellow "Detected Linux agent - applying memory tuning for tests"
40-
$env:DOTNET_gcServer = "0"
41-
$env:DOTNET_gcHeapCount = "2"
42-
}
43-
44-
dotnet msbuild $buildProjPath /t:Test $buildArgs
45-
34+
dotnet msbuild $buildProjPath /t:Test "/p:Configuration=$Configuration;TestFramework=$TestFramework"
4635
Write-Host -ForegroundColor DarkGreen "-------------------- End testing ... --------------------`n`n`n`n`n"
4736

4837
# Test AutoGen Modules With PowerShell Core
@@ -85,4 +74,4 @@ if ($FailedModuleList.Length -ne 0)
8574
}
8675

8776
Set-Location $currentPath
88-
Write-Host -ForegroundColor DarkGreen "-------------------- End checking test status ... --------------------`n`n`n`n`n"
77+
Write-Host -ForegroundColor DarkGreen "-------------------- End checking test status ... --------------------`n`n`n`n`n"

0 commit comments

Comments
 (0)