Enable static graph evaluation for cached restores - #10727
Draft
Jan Provazník (JanProvaznik) wants to merge 2 commits into
Draft
Enable static graph evaluation for cached restores#10727Jan Provazník (JanProvaznik) wants to merge 2 commits into
Jan Provazník (JanProvaznik) wants to merge 2 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 065e7e7f-9806-4543-a87b-9079876f2cc1
Copilot started reviewing on behalf of
Jan Provazník (JanProvaznik)
August 25, 2026 11:41
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Azure Pipelines benchmarks comparing four NuGet restore caching strategies.
Changes:
- Adds package-cache warmup stage.
- Benchmarks cache and static-graph combinations.
- Publishes timing summaries, logs, and binlogs.
Suppressed comments (1)
azure-pipelines.yml:408
- Keep this exact key run-specific in the same way as the warmup key. Otherwise it can select an older immutable entry whose package set does not reflect project/TFM changes, invalidating the intended warm-cache measurement.
key: '"testfx-restore-benchmark" | "v1" | "$(Agent.OS)" | "$(Agent.OSArchitecture)" | global.json | NuGet.config | Directory.Packages.props | eng/Versions.props | eng/Version.Details.xml'
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 065e7e7f-9806-4543-a87b-9079876f2cc1
Copilot started reviewing on behalf of
Jan Provazník (JanProvaznik)
August 25, 2026 14:11
View session
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.
Change
Enable NuGet static-graph evaluation for both MSBuildCache graph invocations:
The existing
/restoreremains in place; this changes only NuGet's project discovery/evaluation path.Measurement
The initial four-way experiment showed:
The whole
.packagescache experiment was rejected because restoring its 7.8GB logical payload took 88–130 seconds. This draft now contains only the static-graph change. Five full PR pipeline runs will be collected before deciding whether to keep it.