Skip to content

[tests] Remove custom widget trimmable exclusion#11483

Merged
jonathanpeppers merged 1 commit into
mainfrom
dev/simonrozsival/remove-customwidget-trimmable-exclusion
May 26, 2026
Merged

[tests] Remove custom widget trimmable exclusion#11483
jonathanpeppers merged 1 commit into
mainfrom
dev/simonrozsival/remove-customwidget-trimmable-exclusion

Conversation

@simonrozsival
Copy link
Copy Markdown
Member

@simonrozsival simonrozsival commented May 25, 2026

Summary

  • removes Xamarin.Android.RuntimeTests.CustomWidgetTests.InflateCustomView_ShouldNotLeakGlobalRefs from the CoreCLRTrimmable exact-name exclusion list
  • keeps Java.InteropTests.InvokeVirtualFromConstructorTests excluded as a known trimmable typemap limitation
  • documents that remaining Java.Interop exclusion as a known limitation in the instrumentation comment

InflateCustomView_ShouldNotLeakGlobalRefs is not a trimmable typemap-specific issue; it should follow its normal test-level disposition instead of being hidden by the trimmable runner.

Validation

  • git diff --check
  • verified the custom-widget exact-name exclusion no longer appears in NUnitInstrumentation.cs

Closes #11099.

The custom widget global-ref leak test is not a trimmable typemap-specific exclusion. Let it follow its normal test-level disposition instead of filtering it from the CoreCLRTrimmable instrumentation runner.

Document the remaining Java.Interop InvokeVirtualFromConstructor exclusion as a known trimmable typemap limitation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
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 updates the Xamarin.Android.RuntimeTests NUnit instrumentation used by Mono.Android.NET-Tests to stop hiding CustomWidgetTests.InflateCustomView_ShouldNotLeakGlobalRefs behind the CoreCLR trimmable exact-name exclusion list, so the test follows its normal test-level disposition. It also keeps the remaining Java.Interop exclusion in place and documents it as a known trimmable typemap limitation.

Changes:

  • Removed the Xamarin.Android.RuntimeTests.CustomWidgetTests.InflateCustomView_ShouldNotLeakGlobalRefs entry from the trimmable ExcludedTestNames list.
  • Kept Java.InteropTests.InvokeVirtualFromConstructorTests excluded and clarified the rationale in the nearby comment.

@simonrozsival simonrozsival added copilot `copilot-cli` or other AIs were used to author this trimmable-type-map ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). labels May 25, 2026
@jonathanpeppers jonathanpeppers merged commit 8052934 into main May 26, 2026
7 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/simonrozsival/remove-customwidget-trimmable-exclusion branch May 26, 2026 13:19
jonathanpeppers pushed a commit that referenced this pull request May 26, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot `copilot-cli` or other AIs were used to author this ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). trimmable-type-map

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TrimmableTypeMap] Resolve all TrimmableIgnore, SSL, and Java.Interop-Tests exclusions

3 participants