-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[wasm] Disable S.T.RegularExpressions FunctionalTests
tests failing due to linker issues
#71875
Conversation
- Disabling `FunctionalTests/System.Text.RegularExpressions.Tests` this test for HighResourceAOT - Also, ensure that the HighResourceAOT tests are run for regular library tests, and EAT. Issue: dotnet#71848
Tagging subscribers to 'arch-wasm': @lewing Issue Details
Issue: #71848
|
/azp run runtime-wasm |
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries Issue Details
Issue: #71848
|
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
ST.RegularExpressions FunctionalTests
tests failing due to linker crash
ST.RegularExpressions FunctionalTests
tests failing due to linker crashS.T.RegularExpressions FunctionalTests
tests failing due to linker crash
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
This seems to be hit only with `EnableAggressiveTrimming=true`, and `RunAOTCompilation=true`. All the traces are similar to: ``` [FAIL] System.Text.Json.Serialization.Tests.CollectionTestsDynamic_AsyncStreamWithSmallBuffer.InvalidPropertyNameFail(policyType: typeof(System.Text.Json.Serialization.Tests.CollectionTests+KeyNameNullPolicy), offendingProperty: "Key") Assert.Throws() Failure Expected: typeof(System.InvalidOperationException) Actual: typeof(System.NotSupportedException): Metadata for type 'System.Collections.Generic.KeyValuePair`2[System.String,System.String]' was not provided to the serializer. The serializer method used does not support reflection-based creation of serialization-related type metadata. If using source generation, ensure that all root types passed to the serializer have been indicated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically. ---- System.NotSupportedException : Metadata for type 'System.Collections.Generic.KeyValuePair`2[System.String,System.String]' was not provided to the serializer. The serializer method used does not support reflection-based creation of serialization-related type metadata. If using source generation, ensure that all root types passed to the serializer have been indicated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically. at System.Text.Json.JsonSerializer.SerializeAsync[KeyValuePair`2](Stream , KeyValuePair`2 , JsonSerializerOptions , CancellationToken ) at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.AsyncStreamSerializerWrapper.SerializeWrapper[KeyValuePair`2](Stream utf8Json, KeyValuePair`2 value, JsonSerializerOptions options) at System.Text.Json.Serialization.Tests.StreamingJsonSerializerWrapper.<SerializeWrapper>d__11`1[[System.Collections.Generic.KeyValuePair`2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at System.Text.Json.JsonSerializer.SerializeAsync[KeyValuePair`2](Stream , KeyValuePair`2 , JsonSerializerOptions , CancellationToken ) at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.AsyncStreamSerializerWrapper.SerializeWrapper[KeyValuePair`2](Stream utf8Json, KeyValuePair`2 value, JsonSerializerOptions options) at System.Text.Json.Serialization.Tests.CollectionTests.<>c__DisplayClass377_0.<<InvalidPropertyNameFail>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.Text.Json.JsonSerializer.SerializeAsync[KeyValuePair`2](Stream , KeyValuePair`2 , JsonSerializerOptions , CancellationToken ) at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.AsyncStreamSerializerWrapper.SerializeWrapper[KeyValuePair`2](Stream utf8Json, KeyValuePair`2 value, JsonSerializerOptions options) ----- Inner Stack Trace ----- at System.Text.Json.JsonSerializer.SerializeAsync[KeyValuePair`2](Stream , KeyValuePair`2 , JsonSerializerOptions , CancellationToken ) at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.AsyncStreamSerializerWrapper.SerializeWrapper[KeyValuePair`2](Stream utf8Json, KeyValuePair`2 value, JsonSerializerOptions options) at System.Text.Json.Serialization.Tests.StreamingJsonSerializerWrapper.<SerializeWrapper>d__11`1[[System.Collections.Generic.KeyValuePair`2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at System.Text.Json.JsonSerializer.SerializeAsync[KeyValuePair`2](Stream , KeyValuePair`2 , JsonSerializerOptions , CancellationToken ) at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.AsyncStreamSerializerWrapper.SerializeWrapper[KeyValuePair`2](Stream utf8Json, KeyValuePair`2 value, JsonSerializerOptions options) at System.Text.Json.Serialization.Tests.CollectionTests.<>c__DisplayClass377_0.<<InvalidPropertyNameFail>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.Text.Json.JsonSerializer.SerializeAsync[KeyValuePair`2](Stream , KeyValuePair`2 , JsonSerializerOptions , CancellationToken ) at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.AsyncStreamSerializerWrapper.SerializeWrapper[KeyValuePair`2](Stream utf8Json, KeyValuePair`2 value, JsonSerializerOptions options) ``` Issue: dotnet#71838
S.T.RegularExpressions FunctionalTests
tests failing due to linker crashS.T.RegularExpressions FunctionalTests
tests failing due to linker issues
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
cc @agocke |
….JsonNameConflictOnCaseInsensitiveFail also
Many jobs failing due to #71981 . I need to disable one more test for the wasm/aot case, which I will push once the current wasm ones are done. |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Some of the failures are fixed by #71976 . And we seem to have new tests failing with the same linker error now:
|
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
The coreclr failure is #71995 . |
@@ -1178,7 +1191,7 @@ public async Task JsonIgnoreAttribute_UnsupportedCollection() | |||
|
|||
var dictionary = new Dictionary<object, object>(); | |||
// Uri is an unsupported dictionary key. | |||
dictionary.Add(new Uri("http://foo"), "bar"); | |||
dictionary.Add(new Uri("http://typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))]"), "bar"); |
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.
This looks like an accidental change, could you revert please? cc @krwq
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'm actually surprised that this doesn't break other platforms.
Disabling
FunctionalTests/System.Text.RegularExpressions.Tests
because of a linker crashAlso, ensure that the HighResourceAOT tests are run for regular
library tests, and EAT.
Issue: [wasm] Linker crashing with
System.NotImplementedException: switch
#71848Disabling some tests for System.Text.Json Serialization due to [wasm]
STJ.Serialization.Tests
failing withSystem.NotSupportedException
with AOT #71838