[release/11.0-preview2]: Fix for OOM exception while running Analyzer tests on x86 platform#14332
Open
Shyam-Gupta wants to merge 1 commit intorelease/11.0-preview2from
Open
[release/11.0-preview2]: Fix for OOM exception while running Analyzer tests on x86 platform#14332Shyam-Gupta wants to merge 1 commit intorelease/11.0-preview2from
Shyam-Gupta wants to merge 1 commit intorelease/11.0-preview2from
Conversation
…14328) **Issue**: Analyzer tests are running into OutOfMemory exceptions on x86 platform. This is because multiple Roslyn compilations are held into memory which causes memory usage to shoot up before GC gets a chance to collect the finalized objects. On x86 the memory space is 2 GB which runs into OOM. This issue doesn't repro on x64 or when these tests are executed locally in isolation. **Fix**: To run GC.Collect after every test execution ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/winforms/pull/14328)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/11.0-preview2 #14332 +/- ##
===============================================================
+ Coverage 77.23013% 77.23713% +0.00699%
===============================================================
Files 3279 3280 +1
Lines 645107 645112 +5
Branches 47731 47731
===============================================================
+ Hits 498217 498266 +49
+ Misses 143193 143155 -38
+ Partials 3697 3691 -6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Cherry pick from PR:#14328
Issue: Analyzer tests are running into OutOfMemory exceptions on x86 platform. This is because multiple Roslyn compilations are held into memory which causes memory usage to shoot up before GC gets a chance to collect the finalized objects. On x86 the memory space is 2 GB which runs into OOM.
This issue doesn't repro on x64 or when these tests are executed locally in isolation.
Fix: To run GC.Collect after every test execution
Microsoft Reviewers: Open in CodeFlow
Microsoft Reviewers: Open in CodeFlow