Skip to content

[NativeAOT] Tests failing due to TypeInfoResolver not providing JsonTypeInfo metadata for a type #88982

@ivanpovazan

Description

@ivanpovazan

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=341298

Observed in runtime-extra-platforms pipeline

Build error legs:

  • net8.0-windows-Release-x64-NativeAOT_Release-(Windows.Nano.1809.Amd64.Open)
  • net8.0-windows-Release-x64-NativeAOT_Release-Windows.11.Amd64.Client.Open
  • net8.0-windows-Release-x64-NativeAOT_Release-Windows.Amd64.Server2022.Open
  • net8.0-windows-Release-x64-NativeAOT_Release-Windows.81.Amd64.Open
  • net8.0-linux-Release-arm64-NativeAOT_Release-(Debian.11.Arm64.Open)
  • net8.0-linux-Release-arm64-NativeAOT_Release-(Ubuntu.1804.Arm64.Open)

Tests failing:

  • System.Net.Http.Json.Functional.Tests.*
  • System.Text.Json.SourceGeneration.Tests.*

Pull request: #88723

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "System.NotSupportedException : JsonTypeInfo metadata for type",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=341298
Error message validated: System.NotSupportedException : JsonTypeInfo metadata for type
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/17/2023 7:42:58 AM UTC

Report

Build Definition Test Pull Request
343204 dotnet/runtime System.Text.Json.SourceGeneration.Tests.UnsupportedTypesTests_Metadata.DeserializeUnsupportedType<Nullable>(wrapper: 123)
342556 dotnet/runtime System.Text.Json.SourceGeneration.Tests.RequiredKeywordTests_SourceGen.ClassWithRequiredKeywordAndSmallParametrizedCtorFailsDeserialization
342345 dotnet/runtime System.Text.Json.SourceGeneration.Tests.ReferenceHandlerTests_IgnoreCycles_Default_AsyncStream.IgnoreCycles_DoesNotSupportPreserveSemantics #88974
341622 dotnet/runtime System.Text.Json.SourceGeneration.Tests.ReferenceHandlerTests_IgnoreCycles_Default_String.IgnoreCycles_DoesNotSupportPreserveSemantics_Polymorphic
341305 dotnet/runtime System.Text.Json.SourceGeneration.Tests.ReferenceHandlerTests_IgnoreCycles_Default_AsyncStream.IgnoreCycles_DoesNotSupportPreserveSemantics
341298 dotnet/runtime System.Text.Json.SourceGeneration.Tests.ReferenceHandlerTests_IgnoreCycles_Default_String.IgnoreCycles_DoesNotSupportPreserveSemantics_Polymorphic #88723
341220 dotnet/runtime System.Text.Json.SourceGeneration.Tests.ReferenceHandlerTests_IgnoreCycles_Default_String.IgnoreCycles_DoesNotSupportPreserveSemantics_Polymorphic #87847
341209 dotnet/runtime System.Text.Json.SourceGeneration.Tests.ReferenceHandlerTests_IgnoreCycles_Metadata_AsyncStream.IgnoreCycles_DoesNotSupportPreserveSemantics #88163
341090 dotnet/runtime System.Text.Json.SourceGeneration.Tests.RequiredKeywordTests_SourceGen.ClassWithRequiredKeywordAndLargeParametrizedCtorFailsDeserialization

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 9 9

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions