-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Disable DynamicCode_Jit test from System.Runtime.Tests on Mono #228
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
Conversation
| { | ||
| Assert.True(RuntimeFeature.IsDynamicCodeSupported); | ||
| Assert.True(RuntimeFeature.IsDynamicCodeCompiled); | ||
| } |
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.
We shouldn't delete this. We can make it coreclr-specific if it not correct on mono, or better yet, add the corresponding test for mono's results.
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.
Depending on where and how Mono is used all of these combinations are valid, e.g. Desktop Mono returns true for both, but Xamarin.iOS returns false for both, except if the interpreter is enabled then IsDynamicCodeSupported is true and IsDynamicCodeCompiled is false.
I'd say we make this test CoreCLR specific for now.
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.
Yeah we currently don't have a C# API to detect current mode (is fullaot? is interp? etc) properly so I disabled the test for mono.
It fails. |
|
Does this PR need to wait until the new attribute is available or can we merge it as is? |
The new attributes should now be available. We got an arcade update yesterday. So it would be nice to use them for this PR instead. Here is the PR that added them and it has examples on how to use them: dotnet/arcade#4231 |
|
@akoeplinger looks like this is failing tests on all other PRs now due to the missing reason on SkipOnMono |
|
I don't even understand how this build was green. That's really odd, but yeah reason is missing: |
|
I created: #324 |
|
@safern so I checked the build results that are attached to 5f3f3c9 (the latest commit in this PR) and the build actually checked out e45b79d! Look for the This means it ran against a previous version of the code. Sounds like some weird AzDO bug, did you see this previously? |
|
Oops. sorry, didn't notice the argument and wanted to test on CI and it somehow validated it. |
|
I've opened a ticket on this CI behavior |
|
I believe @jashook has mentioned this someday last week and that they let AzDo know already but I’ll let him confirm. |
Merge from dotnet/runtime
Crashes on mono with interpreter (IsDynamicCodeCompiled is false). Does this test make any sense? There is already https://github.com/EgorBo/runtime/blob/93ad80eb64aabc2df2d93a136c2f86b73f590b87/src/libraries/System.Runtime/tests/System/Runtime/CompilerServices/RuntimeFeatureTests.cs#L20-L29
or I should wrap the test with some check (e.g. IsCoreCLR or !isMono etc)