Skip to content

Fix all outstanding S.Linq.Expressions failures - #72077

Merged
MichalStrehovsky merged 2 commits into
dotnet:mainfrom
MichalStrehovsky:linqfixes
Jul 14, 2022
Merged

MichalStrehovsky merged 2 commits into
dotnet:mainfrom
MichalStrehovsky:linqfixes

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Product fixes:

  • Don't try to be helpful in the exception when MakeGeneric* constraint validation fails. CoreCLR is not helpful and S.Linq.Expressions is testing for it.
  • We need to inject delegate Invoke method dependencies elsewhere. A test looking to reflection-invoke the Invoke method was failing with MissingMetadataException but we have no right to be failing on that per policy.

Test fixes:

  • Consider NativeAOT always trimmed. We could potentially do what Mono is doing, but we currently don't support substitution files (only embedded substitutions), and NativeAOT will always be trimmed.
  • Mark a test that is fundamentally incompatible (and pointless) with trimming as such.
  • Add a bunch of RD.XML.

Fixes #69944. Fixes #69928. Fixes #69943.

Cc @dotnet/ilc-contrib

Product fixes:

* Don't try to be helpful in the exception when `MakeGeneric*` constraint validation fails. CoreCLR is not helpful and S.Linq.Expressions is testing for it.
* We need to inject delegate `Invoke` method dependencies elsewhere. A test looking to reflection-invoke the `Invoke` method was failing with `MissingMetadataException` but we have no right to be failing on that per policy.

Test fixes:

* Consider NativeAOT always trimmed. We could potentially do what Mono is doing, but we currently don't support substitution files (only embedded substitutions), and NativeAOT will always be trimmed.
* Mark a test that is fundamentally incompatible (and pointless) with trimming as such.
* Add a bunch of RD.XML.

Fixes dotnet#69944. Fixes dotnet#69928. Fixes dotnet#69943.

@jkotas jkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

MichalStrehovsky added a commit that referenced this pull request Jul 14, 2022
Saw this test timeout in #72077. This should decrease the amount of work done by the test by 25%. It is the longest test in DynamicGenerics. It was only recently enabled.

```
Running Test: ThreadLocalStatics.TLSTesting.ThreadLocalStatics_Test

cmdLine:D:\a\_work\1\s\artifacts\tests\coreclr\windows.x64.Debug\nativeaot\SmokeTests\DynamicGenerics\DynamicGenerics\DynamicGenerics.cmd Timed Out (timeout in milliseconds: 1800000 from variable __TestTimeout, start: 7/13/2022 7:46:11 AM, end: 7/13/2022 8:16:11 AM)
Test Harness Exitcode is : -100
```
@MichalStrehovsky
MichalStrehovsky merged commit 7c4fa42 into dotnet:main Jul 14, 2022
@MichalStrehovsky
MichalStrehovsky deleted the linqfixes branch July 14, 2022 00:54
MichalStrehovsky added a commit that referenced this pull request Jul 14, 2022
Saw this test timeout in #72077. This should decrease the amount of work done by the test by 25%. It is the longest test in DynamicGenerics. It was only recently enabled.

```
Running Test: ThreadLocalStatics.TLSTesting.ThreadLocalStatics_Test

cmdLine:D:\a\_work\1\s\artifacts\tests\coreclr\windows.x64.Debug\nativeaot\SmokeTests\DynamicGenerics\DynamicGenerics\DynamicGenerics.cmd Timed Out (timeout in milliseconds: 1800000 from variable __TestTimeout, start: 7/13/2022 7:46:11 AM, end: 7/13/2022 8:16:11 AM)
Test Harness Exitcode is : -100
```
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants