Skip to content

Embedding: Adds Microsoft.Azure.Cosmos.AI package scaffold - #5845

Open
ananth7592 wants to merge 2 commits into
mainfrom
users/amudumba/5841-embedding-package-scaffold
Open

Embedding: Adds Microsoft.Azure.Cosmos.AI package scaffold#5845
ananth7592 wants to merge 2 commits into
mainfrom
users/amudumba/5841-embedding-package-scaffold

AI: Refactors scaffold to address PR review feedback

4be522d
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-v3-ci succeeded Jun 1, 2026 in 1h 22m 5s

Build #20260601.7 had test failures

Details

Tests

  • Failed: 32 (0.31%)
  • Passed: 10,043 (98.80%)
  • Other: 90 (0.89%)
  • Total: 10,165
Code coverage

  • 55795 of 98439 line covered (56.68%)

Annotations

Check failure on line 2400 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Build log #L2400

Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1

Check failure on line 2405 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Build log #L2405

Dotnet command failed with non-zero exit code on the following projects : [
  'D:\\a\\_work\\1\\s\\Microsoft.Azure.Cosmos\\tests\\Microsoft.Azure.Cosmos.EmulatorTests\\Microsoft.Azure.Cosmos.EmulatorTests.csproj'
]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.UpsertItemStreamTest

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.UpsertItemStreamTest

Initialization method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestInitAsync threw exception. System.Net.Http.HttpRequestException: No such host is known. (newthinclienttestpipelinesession.documents.azure.com:443) ---> System.Net.Sockets.SocketException: No such host is known..
Raw output
    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
    at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetOnlyGlobalEndpointAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 283
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 197
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountFromAnyLocationsAsync(Uri defaultEndpoint, IList`1 locations, IList`1 accountInitializationCustomEndpoints, Func`2 getDatabaseAccountFn, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 156
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\GatewayAccountReader.cs:line 113
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\Settings\CosmosAccountServiceConfiguration.cs:line 64
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6873
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1123
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.GetAsync(TKey key, Func`2 singleValueInitFunc, Func`2 forceRefresh) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\AsyncCacheNonBlocking.cs:line 185
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.Get
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.ReplaceItemsTest

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.ReplaceItemsTest

Initialization method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestInitAsync threw exception. System.Net.Http.HttpRequestException: No such host is known. (newthinclienttestpipelinesession.documents.azure.com:443) ---> System.Net.Sockets.SocketException: No such host is known..
Raw output
    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
    at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetOnlyGlobalEndpointAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 283
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 197
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountFromAnyLocationsAsync(Uri defaultEndpoint, IList`1 locations, IList`1 accountInitializationCustomEndpoints, Func`2 getDatabaseAccountFn, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 156
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\GatewayAccountReader.cs:line 113
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\Settings\CosmosAccountServiceConfiguration.cs:line 64
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6873
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1123
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.GetAsync(TKey key, Func`2 singleValueInitFunc, Func`2 forceRefresh) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\AsyncCacheNonBlocking.cs:line 185
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.Get
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestThinClientQueryPlanCrossPartitionWithFilter

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestThinClientQueryPlanCrossPartitionWithFilter

Initialization method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestInitAsync threw exception. System.Net.Http.HttpRequestException: No such host is known. (newthinclienttestpipelinesession.documents.azure.com:443) ---> System.Net.Sockets.SocketException: No such host is known..
Raw output
    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
    at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetOnlyGlobalEndpointAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 283
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 197
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountFromAnyLocationsAsync(Uri defaultEndpoint, IList`1 locations, IList`1 accountInitializationCustomEndpoints, Func`2 getDatabaseAccountFn, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 156
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\GatewayAccountReader.cs:line 113
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\Settings\CosmosAccountServiceConfiguration.cs:line 64
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6873
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1123
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.GetAsync(TKey key, Func`2 singleValueInitFunc, Func`2 forceRefresh) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\AsyncCacheNonBlocking.cs:line 185
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.Get
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TransactionalBatchCreateItemsTest

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TransactionalBatchCreateItemsTest

Initialization method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestInitAsync threw exception. System.Net.Http.HttpRequestException: No such host is known. (newthinclienttestpipelinesession.documents.azure.com:443) ---> System.Net.Sockets.SocketException: No such host is known..
Raw output
    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
    at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetOnlyGlobalEndpointAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 283
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 197
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountFromAnyLocationsAsync(Uri defaultEndpoint, IList`1 locations, IList`1 accountInitializationCustomEndpoints, Func`2 getDatabaseAccountFn, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 156
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\GatewayAccountReader.cs:line 113
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\Settings\CosmosAccountServiceConfiguration.cs:line 64
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6873
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1123
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.GetAsync(TKey key, Func`2 singleValueInitFunc, Func`2 forceRefresh) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\AsyncCacheNonBlocking.cs:line 185
   at Microsoft.Azure.Cosmos.DocumentClient.EnsureValidC
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]