-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[mono][tests] Enable ILStrip after AOT compilation for library tests #88167
[mono][tests] Enable ILStrip after AOT compilation for library tests #88167
Conversation
Tagging subscribers to this area: @directhex Issue DetailsThis PR aims to enable IL stripping during AOT compilation of library tests on iOS-like platforms. Fixes #87740
|
/azp run runtime-ioslike,runtime-ioslikesimulator |
Azure Pipelines successfully started running 2 pipeline(s). |
The failures in the library tests appear to be unrelated (TCP connection failure), but since all tests fail during the startup, I would like to check it locally. @akoeplinger Please take a look when you get a chance. |
With the fix from https://github.com/dotnet/runtime/pull/87923/files#r1253418906 this passes System.Runtime.Tests on my iOS device, except for three tests which try to assert that a method body contains a specific IL instruction, or inlining attribute etc. I'll fix those and push to this PR. |
@akoeplinger We'll need to backport the ILStrip fix to net7.0, too |
Yep, the 7.0 backport is in #88437 |
/azp run runtime-ioslike,runtime-ioslikesimulator |
Azure Pipelines successfully started running 2 pipeline(s). |
This comment was marked as outdated.
This comment was marked as outdated.
/azp run runtime-ioslike,runtime-ioslikesimulator |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run runtime-ioslike |
/azp run runtime-ioslike |
...s/System.Runtime/tests/System.Diagnostics.Debug.Tests/DebugTestsNoListeners.Interpolation.cs
Outdated
Show resolved
Hide resolved
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.
Did you run runtime-extra-platforms or runtime-ioslike pipelines on this to make sure we don't have additional tests failing?
I wonder a bit if we should only turn this on for a subset of assemblies. Or maybe only for the System.* assemblies.
...s/System.Runtime/tests/System.Diagnostics.Debug.Tests/DebugTestsNoListeners.Interpolation.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-ioslike |
Let's check if there are other failures. Are there any performance-related implications we need to consider? |
Not that I know of. One thing to keep in mind is that we're now also turning this on for library mode i.e. external customers. |
/azp run runtime-ioslike |
/azp run runtime-ioslike |
1 similar comment
/azp run runtime-ioslike |
/azp run runtime-ioslike |
/azp run runtime-ioslike |
Failures shouldn't be related. Additionally, I've disabled it for library mode. |
Description
This PR enables IL stripping after AOT compilation for library tests on iOS-like platforms.
Contributes to #87740