Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 9, 2026

Description

Added [SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)] to all three test methods in src/tests/async/capacity/capacity.cs:

  • TestLargeClassWithIntMethods (40,000 methods returning int)
  • TestLargeClassWithTaskMethods_Success (32,750 methods returning Task)
  • TestLargeClassWithTaskMethods_Exception (32,763 methods returning Task)

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.cs and similar).

Risk

Low. Test-only change using established attribute pattern.

Original prompt

Mark the async CapacityTests in src/tests/async/capacity/capacity.cs as GC stress incompatible


💡 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.

Co-authored-by: jakobbotsch <7887810+jakobbotsch@users.noreply.github.com>
Copilot AI changed the title [WIP] Mark async CapacityTests as GC stress incompatible Mark async CapacityTests as GC stress incompatible Jan 9, 2026
Copilot AI requested a review from jakobbotsch January 9, 2026 13:50
@jakobbotsch
Copy link
Member

@copilot Please also mark TestLargeClassWithIntMethods as incompatible with GC stress

Co-authored-by: jakobbotsch <7887810+jakobbotsch@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 9, 2026

@copilot Please also mark TestLargeClassWithIntMethods as incompatible with GC stress

Done in 629fd37.

@jakobbotsch jakobbotsch requested a review from VSadov January 9, 2026 13:57
@jakobbotsch jakobbotsch marked this pull request as ready for review January 9, 2026 16:20
Copilot AI review requested due to automatic review settings January 9, 2026 16:20
Copy link
Contributor

Copilot AI left a 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

@jakobbotsch jakobbotsch merged commit 34e4f04 into main Jan 9, 2026
84 of 85 checks passed
@jakobbotsch jakobbotsch deleted the copilot/mark-async-capacity-tests-gc-incompatible branch January 9, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants