Skip to content

Conversation

@LakshanF
Copy link
Contributor

The aggressive reflection trimming PR, #70201 regressed some library tests and that PR just missed the RR enabling effort that came soon after (so the regressions couldn't be caught at that time). Getting these tests to pass again by setting IlcTrimMetadata to false.

There are some other tests that require a deeper investigation since the error message looks puzzling at first glance,

src\libraries\Common\tests\SingleFileTestRunner\SingleFileTestRunner.cs(11,22): error CS0234:
 The type or namespace name 'Loader' does not exist in the namespace 'System.Runtime' (are you missing an assembly reference?)

@LakshanF
Copy link
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Could you please file an issue to get rid of the IlcTrimMetadata (and add a link to the issue from each of the CSPROJ)? IlcTrimMetadata is not a shipping configuration and I would like us to test the shipping configuration.

Basically, if the test is failing because the test itself is doing some unanalyzable reflection that targets the framework, we should either make the test analyzable, or add RD.XML. If the test is failing because the framework itself is doing some reflection, that's potentially a product bug that we would want to look at in detail.

We test IlcTrimMetadata in a targeted test under src/test/nativeaot.

@LakshanF
Copy link
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@LakshanF LakshanF merged commit 5696655 into dotnet:main Jul 1, 2022
@LakshanF LakshanF deleted the FixRecentlyDisabledTests branch July 1, 2022 12:02
@ghost ghost locked as resolved and limited conversation to collaborators Jul 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants