Repository navigation
Enable Roslyn compiler caching on Windows - #135248
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 6 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The consolidation preserves existing Unix conditions while coherently enabling isolated Windows Roslyn caching and statistics.
Review effort: Balanced
Findings: None
What changed in this PR
Centralizes compiler-cache setup and enables Roslyn output caching for Windows CI jobs while preserving Unix-only sccache behavior.
Changes:
- Consolidates cache setup and statistics templates.
- Enables Windows x64/x86/Arm64 Roslyn caching.
- Adds Windows cache-seeding jobs.
| File | Description |
|---|---|
eng/pipelines/runtime.yml |
Uses shared cache templates and adds Windows cache seeds. |
eng/pipelines/global-build.yml |
Switches to shared cache templates. |
eng/pipelines/coreclr/templates/setup-roslyn-cache.yml |
Removes superseded Roslyn-only setup. |
eng/pipelines/coreclr/templates/setup-build-caches.yml |
Adds cross-platform Roslyn cache setup. |
eng/pipelines/coreclr/templates/sccache-stats.yml |
Removes superseded statistics template. |
eng/pipelines/coreclr/templates/roslyn-cache-stats.yml |
Removes superseded Roslyn-only statistics. |
eng/pipelines/coreclr/templates/jit-hardware-intrinsics-common.yml |
Adopts shared cache templates. |
eng/pipelines/coreclr/templates/build-cache-stats.yml |
Adds consolidated Windows/Unix cache reporting. |
This was referenced Oct 6, 2026
Open
sbomer
approved these changes
Oct 6, 2026
Member
Author
|
/ba-g unrelated failures in diagnostics (caching isn't enabled for those runs) |
This was referenced Oct 6, 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
windows_x64to the rolling DebugCoreCLR_AllSubsetscache seed and cache the separate Windows x86 leg.Measurements
The controlled validation from #133748 measured
libs.testsat 4m53s with the Roslyn cache versus 6m32s without it, a 25.25% reduction. Recent rolling builds reused 21,130 compiler outputs with 352 new stores (98.4% hit rate) across 23 cache-enabled Unix jobs. Windows-specific hit rates will be measurable after the first rolling build seeds the new entries.Validation
Note
This pull request description was generated with GitHub Copilot.