Skip to content

Conversation

lewing
Copy link
Member

@lewing lewing commented Jul 15, 2025

Resolves #117565 I have not looked into what caused it to start failing recently.

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 15, 2025
@dotnet-policy-service dotnet-policy-service bot added the linkable-framework Issues associated with delivering a linker friendly framework label Jul 15, 2025
@lewing lewing marked this pull request as ready for review July 15, 2025 12:59
@Copilot Copilot AI review requested due to automatic review settings July 15, 2025 12:59
Copy link
Contributor

@Copilot 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 adds an ILLink root descriptor to the Microsoft.CSharp test project to prevent trimming of the Xunit.Assert.IsType method, resolving recent test failures.

  • Introduces ILLink.Descriptors.xml to preserve the specified assertion method during trimming.
  • Updates the test project file to include the new descriptor.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/libraries/Microsoft.CSharp/tests/Microsoft.CSharp.Tests.csproj Adds <TrimmerRootDescriptor> to include the new linker descriptor.
src/libraries/Microsoft.CSharp/tests/ILLink.Descriptors.xml Defines a root descriptor preserving the Xunit.Assert.IsType method.
Comments suppressed due to low confidence (1)

src/libraries/Microsoft.CSharp/tests/ILLink.Descriptors.xml:1

  • [nitpick] Consider adding a comment at the top of ILLink.Descriptors.xml explaining why Xunit.Assert.IsType needs to be preserved and referencing issue #117565. This will help future maintainers understand the rationale behind this descriptor.
<linker>

@lewing lewing added area-Microsoft.CSharp and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jul 15, 2025
Copy link
Contributor

Tagging subscribers to this area: @cston
See info in area-owners.md if you want to be subscribed.

@lewing lewing requested a review from a team July 15, 2025 13:06
@lewing lewing changed the title Fix #117565 Resolve missing method in RuntimeBinder tests Jul 15, 2025
@lewing lewing changed the title Resolve missing method in RuntimeBinder tests Resolve missing Assert.IsType method in RuntimeBinder tests Jul 15, 2025
@lewing lewing enabled auto-merge (squash) July 15, 2025 13:19
@lewing
Copy link
Member Author

lewing commented Jul 15, 2025

/ba-g coreclr android timeout is unrelated

@lewing lewing merged commit b81c923 into dotnet:main Jul 15, 2025
91 of 95 checks passed
@lewing lewing deleted the linker-say-what branch July 15, 2025 17:14
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Microsoft.CSharp linkable-framework Issues associated with delivering a linker friendly framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RuntimeBinder tests fail finding IsType method
2 participants