From 14e2ab1de71ff963aeff6c1123c1a7c33f89de7e Mon Sep 17 00:00:00 2001 From: Yabo Hu Date: Tue, 16 Sep 2025 11:41:21 +0800 Subject: [PATCH 1/2] try fixing linux test --- .azure-pipelines/PipelineSteps/test-steps.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/.azure-pipelines/PipelineSteps/test-steps.ps1 b/.azure-pipelines/PipelineSteps/test-steps.ps1 index cbd27ed996c3..c561db86b3d5 100644 --- a/.azure-pipelines/PipelineSteps/test-steps.ps1 +++ b/.azure-pipelines/PipelineSteps/test-steps.ps1 @@ -39,7 +39,6 @@ if ($IsLinux) { Write-Host -ForegroundColor Yellow "Detected Linux agent – applying memory tuning for tests" $env:DOTNET_gcServer = "0" $env:DOTNET_gcHeapCount = "2" - $buildArgs += ";RunConfiguration.MaxCpuCount=2" } dotnet msbuild $buildProjPath /t:Test $buildArgs From c9dbf3c88e505bbac94c28b264db52f5b5883465 Mon Sep 17 00:00:00 2001 From: Yabo Hu Date: Tue, 16 Sep 2025 12:31:48 +0800 Subject: [PATCH 2/2] Update test-steps.ps1 --- .azure-pipelines/PipelineSteps/test-steps.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/PipelineSteps/test-steps.ps1 b/.azure-pipelines/PipelineSteps/test-steps.ps1 index c561db86b3d5..1540fcb8618f 100644 --- a/.azure-pipelines/PipelineSteps/test-steps.ps1 +++ b/.azure-pipelines/PipelineSteps/test-steps.ps1 @@ -36,7 +36,7 @@ $buildArgs = "/p:Configuration=$Configuration;TestFramework=$TestFramework" if ($IsLinux) { # Applying various parallelism/heap restriction behaviors to prevent OOM issues on Ubuntu 24.04 - Write-Host -ForegroundColor Yellow "Detected Linux agent – applying memory tuning for tests" + Write-Host -ForegroundColor Yellow "Detected Linux agent - applying memory tuning for tests" $env:DOTNET_gcServer = "0" $env:DOTNET_gcHeapCount = "2" } @@ -85,4 +85,4 @@ if ($FailedModuleList.Length -ne 0) } Set-Location $currentPath -Write-Host -ForegroundColor DarkGreen "-------------------- End checking test status ... --------------------`n`n`n`n`n" \ No newline at end of file +Write-Host -ForegroundColor DarkGreen "-------------------- End checking test status ... --------------------`n`n`n`n`n"