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

Support filtering property names on dictionary deserialization #87868

Closed
wants to merge 6 commits into from

Update src/libraries/System.Text.Json/src/System/Text/Json/Serializat…

4bd8bec
Select commit
Loading
Failed to load commit list.
Closed

Support filtering property names on dictionary deserialization #87868

Update src/libraries/System.Text.Json/src/System/Text/Json/Serializat…
4bd8bec
Select commit
Loading
Failed to load commit list.
Azure Pipelines / runtime failed Jun 26, 2023 in 1h 37m 58s

Build #20230626.39 had test failures

Details

Tests

  • Failed: 318 (0.01%)
  • Passed: 2,477,166 (98.18%)
  • Other: 45,592 (1.81%)
  • Total: 2,523,076

Annotations

Check failure on line 42 in .packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

.packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets#L42

.packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(42,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test System.Text.Json.Serialization.Tests.CollectionTestsDynamic_String.DictionaryKeyFilter_IgnoreForExtensionData has failed. Check the Test tab or this console log: https://helix.dot.net/api/2019-06-17/jobs/94af3e53-6e00-4732-8fa1-92596aac5052/workitems/System.Text.Json.Tests/console

Check failure on line 42 in .packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

.packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets#L42

.packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(42,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test System.Text.Json.Serialization.Tests.CollectionTestsDynamic_String.DictionaryKeyFilter_MetadataNamesDeserialize has failed. Check the Test tab or this console log: https://helix.dot.net/api/2019-06-17/jobs/94af3e53-6e00-4732-8fa1-92596aac5052/workitems/System.Text.Json.Tests/console

Check failure on line 42 in .packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

.packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets#L42

.packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(42,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test System.Text.Json.Serialization.Tests.CollectionTestsDynamic_String.DictionaryKeyFilter_IgnoreOnSerialize has failed. Check the Test tab or this console log: https://helix.dot.net/api/2019-06-17/jobs/94af3e53-6e00-4732-8fa1-92596aac5052/workitems/System.Text.Json.Tests/console

Check failure on line 42 in .packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

.packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets#L42

.packages/microsoft.dotnet.helix.sdk/8.0.0-beta.23320.3/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(42,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test System.Text.Json.Serialization.Tests.CollectionTestsDynamic_AsyncStreamWithSmallBuffer.DictionaryKeyFilter_MetadataNamesDeserialize has failed. Check the Test tab or this console log: https://helix.dot.net/api/2019-06-17/jobs/94af3e53-6e00-4732-8fa1-92596aac5052/workitems/System.Text.Json.Tests/console

Check failure on line 1 in System.Text.Json.Serialization.Tests.CollectionTestsDynamic_SyncStream.DictionaryKeyFilter_MetadataNamesDeserialize

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

System.Text.Json.Serialization.Tests.CollectionTestsDynamic_SyncStream.DictionaryKeyFilter_MetadataNamesDeserialize

Assert.Equal() Failure
Expected: 2
Actual:   3
Raw output
   at System.Text.Json.Serialization.Tests.CollectionTests.<DictionaryKeyFilter_MetadataNamesDeserialize>d__114.MoveNext() in /_/src/libraries/System.Text.Json/tests/Common/CollectionTests/CollectionTests.Dictionary.KeyFilter.cs:line 43
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Check failure on line 1 in System.Text.Json.Serialization.Tests.CollectionTestsDynamic_SyncStream.DictionaryKeyFilter_IgnoreForExtensionData

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

System.Text.Json.Serialization.Tests.CollectionTestsDynamic_SyncStream.DictionaryKeyFilter_IgnoreForExtensionData

System.Text.Json.JsonException : ',' is an invalid start of a value. Path: $.$metadataUndefined | LineNumber: 0 | BytePositionInLine: 71.
---- System.Text.Json.JsonReaderException : ',' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 71.
Raw output
   at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex) in /_/src/libraries/System.Text.Json/src/System/Text/Json/ThrowHelper.Serialization.cs:line 417
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.ReadCore.cs:line 69
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.ContinueDeserialize(ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfoOfT.ReadHelper.cs:line 112
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.Deserialize(Stream utf8Json) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfoOfT.ReadHelper.cs:line 66
   at System.Text.Json.Serialization.Tests.JsonSerializerWrapper.SyncStreamSerializerWrapper.DeserializeWrapper[T](Stream utf8Json, JsonSerializerOptions options) in /_/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonSerializerWrapper.Reflection.cs:line 278
   at System.Text.Json.Serialization.Tests.StreamingJsonSerializerWrapper.<DeserializeWrapper>d__20`1.MoveNext() in /_/src/libraries/System.Text.Json/tests/Common/StreamingJsonSerializerWrapper.cs:line 70
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Text.Json.Serialization.Tests.CollectionTests.<DictionaryKeyFilter_IgnoreForExtensionData>d__116.MoveNext() in /_/src/libraries/System.Text.Json/tests/Common/CollectionTests/CollectionTests.Dictionary.KeyFilter.cs:line 89
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
----- Inner Stack Trace -----
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes) in /_/src/libraries/System.Text.Json/src/System/Text/Json/ThrowHelper.cs:line 315
   at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.cs:line 1111
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment() in /_/src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.cs:line 879
   at System.Text.Json.Utf8JsonReader.Read() in /_/src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.cs:line 279
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.ReadAheadPropertyValue(ReadStack& state, Utf8JsonReader& reader, JsonPropertyInfo jsonPropertyInfo) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectDefaultConverter.cs:line 494
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectDefaultConverter.cs:line 208
   at System.Text.Json.Serialization.JsonCo

Check failure on line 1 in System.Text.Json.Serialization.Tests.CollectionTestsDynamic_SyncStream.DictionaryKeyFilter_IgnoreOnSerialize

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

System.Text.Json.Serialization.Tests.CollectionTestsDynamic_SyncStream.DictionaryKeyFilter_IgnoreOnSerialize

Assert.Equal() Failure
                        ↓ (pos 14)
Expected: [{"$metadata":1,"Key1":1,"Key2":2},{"Key1":3,"Key2":4,"···
Actual:   [{"$metadata":-1,"Key1":1,"Key2":2},{"Key1":3,"Key2":4,···
                        ↑ (pos 14)
Raw output
   at System.Text.Json.Serialization.Tests.CollectionTests.<DictionaryKeyFilter_IgnoreOnSerialize>d__115.MoveNext() in /_/src/libraries/System.Text.Json/tests/Common/CollectionTests/CollectionTests.Dictionary.KeyFilter.cs:line 69
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Check failure on line 1 in System.Text.Json.Serialization.Tests.CustomConverterTests.InvalidCustomKeyConverter_Deserialization

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime

System.Text.Json.Serialization.Tests.CustomConverterTests.InvalidCustomKeyConverter_Deserialization

Test failed