Fix NotSupportedException when returning IEnumerable<ContentBlock> #614
ci-build-test.yml
on: pull_request
Matrix: build
publish-coverage
/
publish-coverage
Annotations
14 errors and 6 notices
build (ubuntu-latest, Release)
Process completed with exit code 1.
|
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock:
/_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L50
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
|
build (ubuntu-latest, Debug)
Process completed with exit code 1.
|
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock:
/_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L49
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
|
build (macos-latest, Release)
Process completed with exit code 1.
|
ModelContextProtocol.Tests.Transport.StdioClientTransportTests.CreateAsync_ValidProcessInvalidServer_Throws:
/_/tests/ModelContextProtocol.Tests/Transport/StdioClientTransportTests.cs#L15
Assert.Contains() Failure: Sub-string not found
String: "System.IO.IOException: Failed to send message.\n --"···
Not found: "c1d4f340cb0643febcf7f86a482398a6"
|
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock:
/_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L50
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
|
build (windows-latest, Release)
Process completed with exit code 1.
|
ModelContextProtocol.AspNetCore.Tests.StatelessServerIntegrationTests.Connect_TestServer_ShouldProvideServerFields:
/_/tests/ModelContextProtocol.AspNetCore.Tests/HttpServerIntegrationTests.cs#L50
System.Net.Http.HttpRequestException : An error occurred while sending the request.
---- System.InvalidOperationException : Reading is not allowed after reader was completed.
|
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock:
/_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L50
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
|
build (macos-latest, Debug)
Process completed with exit code 1.
|
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock:
/_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L49
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
|
build (windows-latest, Debug)
Process completed with exit code 1.
|
ModelContextProtocol.Tests.McpJsonUtilitiesTests.DefaultOptions_CanSerializeIEnumerableOfContentBlock:
/_/tests/ModelContextProtocol.Tests/McpJsonUtilitiesTests.cs#L49
System.NotSupportedException : JsonTypeInfo metadata for type 'ModelContextProtocol.Protocol.ContentBlock[]' was not provided by TypeInfoResolver of type '[ModelContextProtocol.McpJsonUtilities+JsonContext, Microsoft.Extensions.AI.AIJsonUtilities+JsonContext]'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.
|
build (macos-latest, Release)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
build (macos-latest, Release)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
build (windows-latest, Release)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
build (macos-latest, Debug)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
build (macos-latest, Debug)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
build (windows-latest, Debug)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
Artifacts
Produced during runtime
Name | Size | Digest | |
---|---|---|---|
testresults-macos-latest-Debug
|
1.72 MB |
sha256:2bc8e5778b280d2efb266e98178b52c3f4a9eedc9f9a12ad1ed787701ea09a68
|
|
testresults-macos-latest-Release
|
1.56 MB |
sha256:1ae1c440cdb352c3735f241bf454b509f16f4dae6fd1c8f46804918639f7ca17
|
|
testresults-ubuntu-latest-Debug
|
1.7 MB |
sha256:8203e303b35b78230ca768fbd160a7c13db503380a5622d9ffa2ce662be767c7
|
|
testresults-ubuntu-latest-Release
|
1.53 MB |
sha256:b308babd01c4cf29e4f83ffc501971f267f17ce094c61627b469e13c198ebb4f
|
|
testresults-windows-latest-Debug
|
1.71 MB |
sha256:9d528ff4c2b9931c9a7205e2e02e1e3e9c6ade949a9d1022f295efa2205f6bf2
|
|
testresults-windows-latest-Release
|
1.54 MB |
sha256:be51328784f9cda3d3f3a391352e8e3ce07dcf42588996b5c69b122fc19bdf21
|
|