Skip to content

Commit b6f4b45

Browse files
ramsessanchezCopilotCopilot
authored
fix(ci): daily CI pipeline configuration (#3136)
* 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> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * 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> * 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> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent d476468 commit b6f4b45

1 file changed

Lines changed: 47 additions & 9 deletions

File tree

.azure-pipelines/daily-ci-build.yml

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ resources:
1919
extends:
2020
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
2121
parameters:
22-
pool:
23-
name: Azure-Pipelines-1ESPT-ExDShared
24-
os: linux
22+
pool: 1es-windows-ps-compute-m
2523
sdl:
2624
sourceAnalysisPool:
2725
name: Azure-Pipelines-1ESPT-ExDShared
@@ -43,19 +41,59 @@ extends:
4341
submodules: recursive
4442

4543
- task: UseDotNet@2
46-
displayName: Set up .NET
44+
displayName: Set up .NET 8
4745
inputs:
4846
packageType: 'sdk'
49-
version: '8.x'
47+
version: 8.x
5048

51-
- script: dotnet restore Microsoft.Graph.sln
49+
- task: UseDotNet@2
50+
displayName: Set up .NET 10
51+
inputs:
52+
packageType: 'sdk'
53+
version: 10.x
54+
55+
- task: NuGetAuthenticate@1
56+
displayName: Authenticate to Azure Artifacts
57+
inputs:
58+
feedsToAuthenticate: '$(NUGET_FEED_URI)'
59+
- powershell: |
60+
@"
61+
<?xml version="1.0" encoding="utf-8"?>
62+
<configuration>
63+
<packageSources>
64+
<clear />
65+
<add key="GraphDeveloperExperiences_Public" value="$(NUGET_FEED_URI)" />
66+
</packageSources>
67+
</configuration>
68+
"@ | Set-Content -Path "$(Build.SourcesDirectory)\nuget.config" -Encoding UTF8
69+
displayName: Create nuget.config
70+
71+
- script: dotnet restore Microsoft.Graph.sln --configfile nuget.config
5272
displayName: Restore dependencies
5373
workingDirectory: $(Build.SourcesDirectory)
5474

55-
- script: dotnet build Microsoft.Graph.sln --no-restore
56-
displayName: Build SDK
75+
# Build each TFM sequentially to avoid OOM kills on the build agent.
76+
# Building all TFMs in parallel exhausts memory on standard runners.
77+
- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f netstandard2.0
78+
displayName: Build SDK (netstandard2.0)
79+
workingDirectory: $(Build.SourcesDirectory)
80+
81+
- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f netstandard2.1
82+
displayName: Build SDK (netstandard2.1)
83+
workingDirectory: $(Build.SourcesDirectory)
84+
85+
- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f net8.0
86+
displayName: Build SDK (net8.0)
87+
workingDirectory: $(Build.SourcesDirectory)
88+
89+
- script: dotnet build src\Microsoft.Graph\Microsoft.Graph.csproj --no-restore -f net10.0
90+
displayName: Build SDK (net10.0)
91+
workingDirectory: $(Build.SourcesDirectory)
92+
93+
- script: dotnet build tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj --no-restore
94+
displayName: Build test project
5795
workingDirectory: $(Build.SourcesDirectory)
5896

59-
- script: dotnet test Microsoft.Graph.sln --no-build
97+
- script: dotnet test tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj --no-build
6098
displayName: Run unit tests
6199
workingDirectory: $(Build.SourcesDirectory)

0 commit comments

Comments
 (0)