-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Mark async CapacityTests as GC stress incompatible #123032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark async CapacityTests as GC stress incompatible #123032
Conversation
Co-authored-by: jakobbotsch <7887810+jakobbotsch@users.noreply.github.com>
|
@copilot Please also mark |
Co-authored-by: jakobbotsch <7887810+jakobbotsch@users.noreply.github.com>
Done in 629fd37. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR marks three async capacity test methods as incompatible with GC stress testing modes. The tests dynamically generate types with thousands of methods (40,000 int-returning methods and 32,750+ Task-returning methods), which cause issues under GC stress conditions.
Key Changes
- Added
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]attributes to three test methods - All changes are test infrastructure improvements with no functional code modifications
- Follows established patterns used throughout the test suite for similar scenarios
Description
Added
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]to all three test methods insrc/tests/async/capacity/capacity.cs:TestLargeClassWithIntMethods(40,000 methods returningint)TestLargeClassWithTaskMethods_Success(32,750 methods returningTask)TestLargeClassWithTaskMethods_Exception(32,763 methods returningTask)All tests dynamically generate types with large numbers of methods, which are incompatible with GC stress modes.
Customer Impact
None. Test infrastructure change only.
Regression
No.
Testing
Follows existing pattern for marking tests incompatible with GC stress (see
src/tests/JIT/jit64/opt/cse/HugeArray.csand similar).Risk
Low. Test-only change using established attribute pattern.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.