Repository navigation
Disambiguate Roslyn task cache by compilation mode - #15214
Conversation
|
Hello @copilot, I noticed that you’re changing an .swr file or any file under src/Package/MSBuild.VSSetup.. Please make sure to validate this change by an experimental VS insertion. This is accomplished by pushing to an exp/* branch, which requires write permissions to this repo. |
Co-authored-by: JanProvaznik <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused change correctly isolates incompatible cache entries and includes regression coverage.
Review effort: Balanced
Findings: None
What changed in this PR
Disambiguates Roslyn inline-task cache entries by compilation mode, preventing /mt builds from reusing incompatible in-process assemblies.
Changes:
- Adds compilation mode to cache equality and hashing.
- Initializes the cache key with the required execution mode.
- Adds regression coverage for in-process followed by multithreaded initialization.
| File | Description |
|---|---|
RoslynCodeTaskFactoryTaskInfo.cs |
Adds compilation mode to the cache key. |
RoslynCodeTaskFactory.cs |
Populates the new cache-key field. |
RoslynCodeTaskFactory_Tests.cs |
Tests cache isolation across compilation modes. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
ChangeWave Discipline — LGTM
Warning
Firewall blocked 4 domains
The following domains were blocked by the firewall during workflow execution:
api.github.comcafe.github.comgithub.comraw.githubusercontent.com
[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:
tools:
github:
mode: gh-proxySee GitHub Tools for more information on gh-proxy mode.
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
network:
allowed:
- defaults
- "api.github.com"
- "cafe.github.com"
- "github.com"
- "raw.githubusercontent.com"See Network Configuration for more information.
Generated by Expert Code Review (on open) for #15214 · copilot · gpt56 · 933.6 AIC · ⌖ 5.81 AIC · ⊞ 24.9K
|
// Include both Name and SourceCode to avoid cache collisions between different task names |
Co-authored-by: JanProvaznik <[email protected]>
Updated the hash to use |
Fixes #15213
Summary
Customer Impact
MSB0001when a reused MSBuild process switches from a non-/mtbuild to/mt.Testing
Risk