Skip to content
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
dfa143c
temp: add diag statement
DanielMicrosoft Sep 16, 2025
956b2d6
temp: try with -m flag
DanielMicrosoft Sep 16, 2025
a700efa
temp: reduce m flag to 1
DanielMicrosoft Sep 16, 2025
0182528
fix: change typo
DanielMicrosoft Sep 16, 2025
d99330d
fix: change arg name per copilot suggestion
DanielMicrosoft Sep 16, 2025
9dbcbf4
revert: using DOTNET_MSBUILD_CLI_OPTIONS
DanielMicrosoft Sep 16, 2025
7ff3fac
fix: trying with GCheaphardlimitpercent
DanielMicrosoft Sep 16, 2025
e64c12d
fix: add more memory tuning params
DanielMicrosoft Sep 17, 2025
f791c04
fix: try with hardcap memory limit
DanielMicrosoft Sep 17, 2025
1af9ea7
temp: add GC logging
DanielMicrosoft Sep 17, 2025
ef27592
temp: add bash memory logs
DanielMicrosoft Sep 17, 2025
bf80b0b
temp: attempting to limit bash shell memory
DanielMicrosoft Sep 17, 2025
784589e
temp: trying with 2 processes and higher virtual memory
DanielMicrosoft Sep 17, 2025
4b0b751
temp: remove mem profile bash command as was causing the pipeline ste…
DanielMicrosoft Sep 17, 2025
83ef9aa
temp: reverting to m:1 as GC heap fails to init process
DanielMicrosoft Sep 17, 2025
e285d58
limit heapcount to 1 and reduce heap hard limit
DanielMicrosoft Sep 17, 2025
4861d5e
remove gcheap params
DanielMicrosoft Sep 17, 2025
f49bca2
increase ulimit to 5gb
DanielMicrosoft Sep 17, 2025
5ed780e
add gcheap limit to be below ulimit
DanielMicrosoft Sep 17, 2025
cf0ba52
increase ulimit, reduce gc
DanielMicrosoft Sep 17, 2025
abe4034
remove gcheap and other params
DanielMicrosoft Sep 17, 2025
f3c0e31
with diagnostic steps
DanielMicrosoft Sep 17, 2025
700bca9
test: remove gcserver settings and raise ulimit
DanielMicrosoft Sep 17, 2025
867c84b
trying with only -m:1 flag
DanielMicrosoft Sep 17, 2025
d6e2680
temp: add diagnostic logging to see free disk space
DanielMicrosoft Sep 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .azure-pipelines/PipelineSteps/test-steps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,24 @@ $buildProjPath = Join-Path $RepoRoot 'build.proj'
$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"
$env:DOTNET_gcServer = "0"
$env:DOTNET_gcHeapCount = "2"
Write-Host "Detected Linux agent. Applying memory tuning for tests"

# ---- DIAGNOSTIC LOGGING ----
Write-Host "=== Disk layout (lsblk) ==="
bash -c "lsblk -o NAME,SIZE,TYPE,MOUNTPOINT"

Write-Host "`n=== Filesystem usage (df -h) ==="
bash -c "df -h"

Write-Host "`n=== Memory snapshot (free -h) ==="
bash -c "free -h"
# ----------------------------

dotnet msbuild $buildProjPath /t:Test $buildArgs
} else {
dotnet msbuild $buildProjPath /t:Test $buildArgs
}

dotnet msbuild $buildProjPath /t:Test $buildArgs

Write-Host -ForegroundColor DarkGreen "-------------------- End testing ... --------------------`n`n`n`n`n"

Expand Down