From 4e06052175cf2e7bdda668d68e7d4b104f90c016 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Fri, 5 Jun 2026 15:27:15 -0700 Subject: [PATCH 1/4] fix(ci): daily CI pipeline configuration - Add missing image property to 1ES pool config - Switch pool OS to Windows to align with release pipeline - Add Azure Artifacts feed for NuGet restore to bypass network isolation - Install both .NET 8 and .NET 10 SDKs for all test target frameworks Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .azure-pipelines/daily-ci-build.yml | 30 +++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.azure-pipelines/daily-ci-build.yml b/.azure-pipelines/daily-ci-build.yml index 4628059a651..6cccb07bef2 100644 --- a/.azure-pipelines/daily-ci-build.yml +++ b/.azure-pipelines/daily-ci-build.yml @@ -21,7 +21,8 @@ extends: parameters: pool: name: Azure-Pipelines-1ESPT-ExDShared - os: linux + image: windows-latest + os: windows sdl: sourceAnalysisPool: name: Azure-Pipelines-1ESPT-ExDShared @@ -43,12 +44,33 @@ extends: submodules: recursive - task: UseDotNet@2 - displayName: Set up .NET + displayName: Set up .NET 8 inputs: packageType: 'sdk' - version: '8.x' + version: 8.x - - script: dotnet restore Microsoft.Graph.sln + - task: UseDotNet@2 + displayName: Set up .NET 10 + inputs: + packageType: 'sdk' + version: 10.x + + - task: NuGetAuthenticate@1 + displayName: Authenticate to Azure Artifacts + + - powershell: | + @" + + + + + + + + "@ | Set-Content -Path "$(Build.SourcesDirectory)\nuget.config" -Encoding UTF8 + displayName: Create nuget.config + + - script: dotnet restore Microsoft.Graph.sln --configfile nuget.config displayName: Restore dependencies workingDirectory: $(Build.SourcesDirectory) From f4bedc08f54374a6efceeba02f4cd62a60d12bc5 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez-Hernandez <63934382+ramsessanchez@users.noreply.github.com> Date: Fri, 5 Jun 2026 16:07:58 -0700 Subject: [PATCH 2/4] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .azure-pipelines/daily-ci-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/daily-ci-build.yml b/.azure-pipelines/daily-ci-build.yml index 6cccb07bef2..dcb4e04d694 100644 --- a/.azure-pipelines/daily-ci-build.yml +++ b/.azure-pipelines/daily-ci-build.yml @@ -57,7 +57,8 @@ extends: - task: NuGetAuthenticate@1 displayName: Authenticate to Azure Artifacts - + inputs: + feedsToAuthenticate: '$(NUGET_FEED_URI)' - powershell: | @" From 445b390754df2f931c48cbc2f291049a3cf7ef36 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Thu, 18 Jun 2026 11:21:58 -0700 Subject: [PATCH 3/4] fix(ci): build TFMs sequentially in daily CI to avoid OOM The daily CI build was failing due to out-of-memory when building all 4 TFMs in parallel. This matches the fix applied in msgraph-beta-sdk-dotnet PR #1127. Changes: - Build each TFM sequentially instead of solution-wide parallel build - Build and test the test project explicitly by path Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .azure-pipelines/daily-ci-build.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/daily-ci-build.yml b/.azure-pipelines/daily-ci-build.yml index dcb4e04d694..40a2c7c9354 100644 --- a/.azure-pipelines/daily-ci-build.yml +++ b/.azure-pipelines/daily-ci-build.yml @@ -75,10 +75,28 @@ extends: displayName: Restore dependencies workingDirectory: $(Build.SourcesDirectory) - - script: dotnet build Microsoft.Graph.sln --no-restore - displayName: Build SDK + # Build each TFM sequentially to avoid OOM kills on the build agent. + # Building all TFMs in parallel exhausts memory on standard runners. + - script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f netstandard2.0 + displayName: Build SDK (netstandard2.0) workingDirectory: $(Build.SourcesDirectory) - - script: dotnet test Microsoft.Graph.sln --no-build + - script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f netstandard2.1 + displayName: Build SDK (netstandard2.1) + workingDirectory: $(Build.SourcesDirectory) + + - script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f net8.0 + displayName: Build SDK (net8.0) + workingDirectory: $(Build.SourcesDirectory) + + - script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f net10.0 + displayName: Build SDK (net10.0) + workingDirectory: $(Build.SourcesDirectory) + + - script: dotnet build tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj --no-restore + displayName: Build test project + workingDirectory: $(Build.SourcesDirectory) + + - script: dotnet test tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj --no-build displayName: Run unit tests workingDirectory: $(Build.SourcesDirectory) From 5cd4a6c808a058b1c604e5e78cdf0bf2556cd10c Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Thu, 18 Jun 2026 16:52:19 -0700 Subject: [PATCH 4/4] fix(ci): use larger compute pool to help with OOM Switch from the default Azure-Pipelines-1ESPT-ExDShared pool to 1es-windows-ps-compute-m which has more memory, matching the update in msgraph-beta-sdk-dotnet PR #1127. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .azure-pipelines/daily-ci-build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.azure-pipelines/daily-ci-build.yml b/.azure-pipelines/daily-ci-build.yml index 40a2c7c9354..0d91dbc42eb 100644 --- a/.azure-pipelines/daily-ci-build.yml +++ b/.azure-pipelines/daily-ci-build.yml @@ -19,10 +19,7 @@ resources: extends: template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates parameters: - pool: - name: Azure-Pipelines-1ESPT-ExDShared - image: windows-latest - os: windows + pool: 1es-windows-ps-compute-m sdl: sourceAnalysisPool: name: Azure-Pipelines-1ESPT-ExDShared