Fix daily CI OOM: build TFMs sequentially#1127
Open
ramsessanchez wants to merge 3 commits into
Open
Conversation
…em.Net.Http ref - Build each target framework sequentially in daily CI to avoid OOM kills, matching the approach used in pipelines/ci-build.yml - Revert agent pool back to windows-latest (sequential builds fit in memory) - Build and test the test project explicitly by path - Remove unnecessary System.Net.Http 4.3.4 PackageReference (NU1510 warning) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sequential TFM builds alone are insufficient — even a single TFM compilation exhausts memory on the standard windows-latest agent (95%+ usage, canceled after 30 min). The larger agent provides enough RAM for this SDK. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the same compute pool as pipelines/ci-build.yml, which has sufficient memory for compiling this large SDK. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
gavinbarron
reviewed
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The daily CI build was failing due to out-of-memory (95%+ memory usage) causing the build to be canceled after ~54 minutes.
Changes
pipelines/ci-build.yml--no-buildSystem.Net.Http 4.3.4PackageReference that was triggering NU1510 warnings on .NET 10+ SDKRoot Cause
The daily CI was running
dotnet build Microsoft.Graph.Beta.sln --no-restorewhich builds all 4 TFMs in parallel, exhausting memory on the standard hosted agent. The official CI pipeline (pipelines/ci-build.yml) already solved this by building each TFM one at a time.Microsoft Reviewers: Open in CodeFlow