Skip to content

.Net: Bug: AzureCosmosDBMongoDBVectorStoreRecordMapperTests unit tests are failing for PR builds #8694

Closed

Description

Describe the bug

Some units tests are failing for build builds e.g. https://github.com/microsoft/semantic-kernel/actions/runs/10828226455/job/30043117037?pr=8693

[xUnit.net 00:00:00.45]     SemanticKernel.Connectors.AzureCosmosDBMongoDB.UnitTests.AzureCosmosDBMongoDBVectorStoreRecordMapperTests.MapFromStorageToDataModelReturnsValidObject [FAIL]
[xUnit.net 00:00:00.45]       System.InvalidOperationException : Nullable object must have a value.
[xUnit.net 00:00:00.45]       Stack Trace:
[xUnit.net 00:00:00.45]            at System.Nullable`1.get_Value()
[xUnit.net 00:00:00.45]         D:\a\semantic-kernel\semantic-kernel\dotnet\src\Connectors\Connectors.AzureCosmosDBMongoDB.UnitTests\AzureCosmosDBMongoDBVectorStoreRecordMapperTests.cs(87,0): at SemanticKernel.Connectors.AzureCosmosDBMongoDB.UnitTests.AzureCosmosDBMongoDBVectorStoreRecordMapperTests.MapFromStorageToDataModelReturnsValidObject()
[xUnit.net 00:00:00.45]            at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
[xUnit.net 00:00:00.45]            at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:00:00.47]     SemanticKernel.Connectors.AzureCosmosDBMongoDB.UnitTests.AzureCosmosDBMongoDBVectorStoreRecordMapperTests.MapFromDataToStorageModelReturnsValidObject [FAIL]
[xUnit.net 00:00:00.47]       System.Collections.Generic.KeyNotFoundException : Element 'description_embedding' not found.
[xUnit.net 00:00:00.47]       Stack Trace:
[xUnit.net 00:00:00.47]            at MongoDB.Bson.BsonDocument.get_Item(String name)
[xUnit.net 00:00:00.47]         D:\a\semantic-kernel\semantic-kernel\dotnet\src\Connectors\Connectors.AzureCosmosDBMongoDB.UnitTests\AzureCosmosDBMongoDBVectorStoreRecordMapperTests.cs(63,0): at SemanticKernel.Connectors.AzureCosmosDBMongoDB.UnitTests.AzureCosmosDBMongoDBVectorStoreRecordMapperTests.MapFromDataToStorageModelReturnsValidObject()
[xUnit.net 00:00:00.47]            at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
[xUnit.net 00:00:00.47]            at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
  Passed SemanticKernel.Connectors.AzureCosmosDBMongoDB.UnitTests.AzureCosmosDBMongoDBKernelBuilderExtensionsTests.AddVectorStoreRegistersClass [< 1 ms]
  Failed SemanticKernel.Connectors.AzureCosmosDBMongoDB.UnitTests.AzureCosmosDBMongoDBVectorStoreRecordMapperTests.MapFromStorageToDataModelReturnsValidObject [45 ms]
  Error Message:
   System.InvalidOperationException : Nullable object must have a value.
  Stack Trace:
     at System.Nullable`1.get_Value()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't workingsk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)

Type

No type

Projects

  • Status

    Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions