-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasm][tests] Fix test failures due to trimming #51697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
acba56d
62e7c7a
1e1a74c
f285564
7f65c2b
539048c
5bffdba
10506d8
d8451af
49c7e5a
7e653a0
1374c91
390e4e9
362608f
12cf86b
7d31a83
59bb6c6
62df596
12cdcbd
dcce073
a92333e
f3b0d74
e89323c
e09cad4
2b10631
189a79d
437d614
b0274a4
f579f8b
999426f
3a91a5d
6d44922
d3e215a
1ac21c3
b9bf835
0aee262
bf123ca
6ecbceb
3dc25ee
812f860
2d666e6
620c5bb
c57520d
91fca65
5507316
b694c10
d792ac7
6b8cada
8a912e6
0a770d0
c004584
ee78cd7
a644852
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <linker> | ||
| <assembly fullname="Castle.Core"> | ||
| <namespace fullname="Castle.DynamicProxy" /> | ||
| <type fullname="Castle.DynamicProxy.Internal.CompositionInvocation" /> | ||
| <type fullname="Castle.DynamicProxy.Internal.AbstractInvocation" /> | ||
| <type fullname="Castle.DynamicProxy.Internal.InheritanceInvocation" /> | ||
| </assembly> | ||
| <assembly fullname="Moq"> | ||
| <type fullname="Moq.Internals.InterfaceProxy"> | ||
| <method signature="System.Void .ctor()" /> | ||
| </type> | ||
| </assembly> | ||
| </linker> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <linker> | ||
| <assembly fullname="System.Private.Xml.Linq"> | ||
| <type fullname="System.Xml.Linq.XElement" /> | ||
| </assembly> | ||
| <assembly fullname="System.Private.DataContractSerialization"> | ||
| <type fullname="System.Runtime.Serialization.KeyValuePairAdapter`2" /> | ||
| </assembly> | ||
| </linker> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <linker> | ||
| <assembly fullname="System.Diagnostics.TraceSource"> | ||
| <type fullname="System.Diagnostics.TraceListener"> | ||
| <method signature="System.Void .ctor()" /> | ||
| </type> | ||
| </assembly> | ||
| </linker> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <linker> | ||
| <assembly fullname="ModuleCore"> | ||
| <type fullname="OLEDB.Test.ModuleCore.XmlInlineDataDiscoverer"> | ||
| <method signature="System.Void .ctor()" /> | ||
| </type> | ||
| </assembly> | ||
| </linker> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <Project> | ||
| <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..'))" /> | ||
|
|
||
| <ItemGroup> | ||
| <TrimmerRootDescriptor Include="$(MSBuildThisFileDirectory)..\ILLink.Descriptors.ModuleCore.xml" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <linker> | ||
| <assembly fullname="mscorlib" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this still necessary with the latest linker? It should be preserving facades like this.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was needed with whatever linker is being used with |
||
| </linker> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <linker> | ||
| <assembly fullname="System.Reflection.TestExe" /> | ||
| </linker> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <linker> | ||
| <assembly fullname="System.Private.CoreLib"> | ||
| <type fullname="System.Collections.ArrayList" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this necessary?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it is just that one test, maybe adding a |
||
| </assembly> | ||
| <assembly fullname="ForwardedTypesAssembly" /> | ||
| <assembly fullname="TestAssembly" /> | ||
| </linker> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <linker> | ||
| <assembly fullname="System.Configuration.ConfigurationManager"> | ||
| <type fullname="System.Configuration.ClientConfigurationHost"> | ||
| <method signature="System.Void .ctor()" /> | ||
| </type> | ||
| </assembly> | ||
| </linker> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know why this is necessary? This smells like a product bug to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a92333e(#51697)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, we are using
Mock<TraceListener>in the test. Maybe the test could be annotated withDynamicDependencyinstead, so it is more discoverable about why this needs to be preserved.