Skip to content
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

Merged
merged 10 commits into from
Jul 12, 2022

Conversation

radical
Copy link
Member

@radical radical commented Jul 9, 2022

- 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
@radical radical added the arch-wasm WebAssembly architecture label Jul 9, 2022
@ghost ghost assigned radical Jul 9, 2022
@ghost
Copy link

ghost commented Jul 9, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details
  • 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: #71848

Author: radical
Assignees: -
Labels:

arch-wasm

Milestone: -

@radical
Copy link
Member Author

radical commented Jul 9, 2022

/azp run runtime-wasm

@ghost
Copy link

ghost commented Jul 9, 2022

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details
  • 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: #71848

Author: radical
Assignees: radical
Labels:

arch-wasm, area-Infrastructure-libraries

Milestone: -

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radical
Copy link
Member Author

radical commented Jul 9, 2022

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radical
Copy link
Member Author

radical commented Jul 9, 2022

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radical radical changed the title [wasm] Disable tests failing on HighResourceAOT job [wasm] Disable tests failing due to linker crash Jul 9, 2022
@radical radical changed the title [wasm] Disable tests failing due to linker crash [wasm] Disable ST.RegularExpressions FunctionalTests tests failing due to linker crash Jul 9, 2022
@radical radical changed the title [wasm] Disable ST.RegularExpressions FunctionalTests tests failing due to linker crash [wasm] Disable S.T.RegularExpressions FunctionalTests tests failing due to linker crash Jul 9, 2022
@radical
Copy link
Member Author

radical commented Jul 10, 2022

/azp run runtime-wasm

@azure-pipelines
Copy link

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
@radical radical changed the title [wasm] Disable S.T.RegularExpressions FunctionalTests tests failing due to linker crash [wasm] Disable S.T.RegularExpressions FunctionalTests tests failing due to linker issues Jul 11, 2022
@radical
Copy link
Member Author

radical commented Jul 11, 2022

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lewing
Copy link
Member

lewing commented Jul 11, 2022

cc @agocke

@radical
Copy link
Member Author

radical commented Jul 11, 2022

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.

@radical
Copy link
Member Author

radical commented Jul 11, 2022

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radical
Copy link
Member Author

radical commented Jul 12, 2022

Some of the failures are fixed by #71976 .

And we seem to have new tests failing with the same linker error now:

[01:14:27] fail: [FAIL] System.Text.Json.Serialization.Tests.PropertyVisibilityTestsDynamic.JsonIgnoreCondition_WhenWritingNull_OnValueType_Fail_EmptyJson(type: typeof(System.Text.Json.Serialization.Tests.PropertyVisibilityTests+ClassWithBadIgnoreAttribute))
[01:14:27] info: Assert.Throws() Failure
[01:14:27] info: Expected: typeof(System.InvalidOperationException)
[01:14:27] info: Actual:   typeof(System.NotSupportedException): Metadata for type 'System.Text.Json.Serialization.Tests.PropertyVisibilityTests+ClassWithBadIgnoreAttribute' 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.
[01:14:27] info: ---- System.NotSupportedException : Metadata for type 'System.Text.Json.Serialization.Tests.PropertyVisibilityTests+ClassWithBadIgnoreAttribute' 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.
[01:14:27] info:    at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.StringSerializerWrapper.SerializeWrapper[Object](Object value, JsonSerializerOptions options)
[01:14:27] info:    at System.Text.Json.Serialization.Tests.PropertyVisibilityTests.<>c__DisplayClass172_0.<<JsonIgnoreCondition_WhenWritingNull_OnValueType_Fail_EmptyJson>b__1>d.MoveNext()
[01:14:27] info: --- End of stack trace from previous location ---
[01:14:27] info:    at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.StringSerializerWrapper.SerializeWrapper[Object](Object value, JsonSerializerOptions options)
[01:14:27] info: ----- Inner Stack Trace -----
[01:14:27] info:    at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.StringSerializerWrapper.SerializeWrapper[Object](Object value, JsonSerializerOptions options)
[01:14:27] info:    at System.Text.Json.Serialization.Tests.PropertyVisibilityTests.<>c__DisplayClass172_0.<<JsonIgnoreCondition_WhenWritingNull_OnValueType_Fail_EmptyJson>b__1>d.MoveNext()
[01:14:27] info: --- End of stack trace from previous location ---
[01:14:27] info:    at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.StringSerializerWrapper.SerializeWrapper[Object](Object value, JsonSerializerOptions options)

@radical
Copy link
Member Author

radical commented Jul 12, 2022

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radical
Copy link
Member Author

radical commented Jul 12, 2022

The coreclr failure is #71995 .
The wasm/debugger failure is intermittent.

@radical radical merged commit cf83273 into dotnet:main Jul 12, 2022
@radical radical deleted the disable-tests-highaot branch July 12, 2022 06:44
@@ -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");
Copy link
Member

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

Copy link
Member

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.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants