Parallelize NetAnalyzers unit tests - #56028
Draft
Evangelink wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 2 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
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
This is the independent
net-analyzersreplacement slice of #56015.MethodLevelparallelization for the NetAnalyzers unit-test assembly.src/Microsoft.CodeAnalysis.NetAnalyzers/AGENTS.mdguidance.Ownership
@dotnet/dotnet-analyzers owns this NetAnalyzers test area, with agent and contributor guidance maintained in
src/Microsoft.CodeAnalysis.NetAnalyzers/AGENTS.md.Isolation rationale
Each test creates a self-contained Roslyn compilation through a fresh verifier instance. The assembly has no assembly-, class-, or test-initialization fixtures, and its shared state is limited to init-once immutable metadata references and dynamic-data providers.
ReferenceAssemblies.ResolveAsyncprotects the shared package cache with its cross-process semaphore.The added AGENTS guidance requires future fixtures, data sources, process-global state, and filesystem paths to remain safe for concurrent test methods.
Validation status
This branch contains only the exact two-file
net-analyzersslice from source snapshot84e283b69ce8f087114b5adba1016c8ce1f0e5d0, based on198ec8f3f13efc148f464688a6523341f856e03c. Tests were not run for this split-only draft. Separate NetAnalyzers performance measurement remains pending.