From abdda41d446100aae68dc31141afd9146234e253 Mon Sep 17 00:00:00 2001 From: "Peter Ombwa (from Dev Box)" Date: Wed, 5 Aug 2026 14:41:42 -0700 Subject: [PATCH 1/2] chore: add maxCpuCount:1 to avoids OOM kills (MSB4166) --- .github/workflows/validatePullRequest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validatePullRequest.yml b/.github/workflows/validatePullRequest.yml index 5490b9edbfd..e4fc8e5b7e2 100644 --- a/.github/workflows/validatePullRequest.yml +++ b/.github/workflows/validatePullRequest.yml @@ -30,7 +30,7 @@ jobs: - name: Restore dependencies run: dotnet restore ${{ env.solutionName }} - name: Build - run: dotnet build ${{ env.solutionName }} --no-restore -c Release /p:UseSharedCompilation=false + run: dotnet build ${{ env.solutionName }} --no-restore -c Release /p:UseSharedCompilation=false -maxCpuCount:1 - name: Test run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover - name: Perform CodeQL Analysis From 8429cbe5361c9ddbf0d039c2bca1ea6ed4fd3c13 Mon Sep 17 00:00:00 2001 From: Peter Ombwa Date: Wed, 5 Aug 2026 15:35:15 -0700 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/validatePullRequest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validatePullRequest.yml b/.github/workflows/validatePullRequest.yml index e4fc8e5b7e2..6736d4037a7 100644 --- a/.github/workflows/validatePullRequest.yml +++ b/.github/workflows/validatePullRequest.yml @@ -30,7 +30,7 @@ jobs: - name: Restore dependencies run: dotnet restore ${{ env.solutionName }} - name: Build - run: dotnet build ${{ env.solutionName }} --no-restore -c Release /p:UseSharedCompilation=false -maxCpuCount:1 + run: dotnet build ${{ env.solutionName }} --no-restore -c Release /p:UseSharedCompilation=false -m:1 - name: Test run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover - name: Perform CodeQL Analysis