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

Add adapters to convert Azure.Core Response to SCM ClientResult to support SSE streams using SCM CollectionResult types #46827

updates

024b73d
Select commit
Loading
Failed to load commit list.
Azure Pipelines / net - ai - ci failed Oct 24, 2024 in 9m 4s

Build #20241024.8 had test failures

Details

Tests

  • Failed: 28 (4.17%)
  • Passed: 574 (85.42%)
  • Other: 70 (10.42%)
  • Total: 672
Code coverage

  • 1711 of 32749 line covered (5.22%)

Annotations

Check failure on line 33 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / net - ai - ci

Build log #L33

Git fetch failed with exit code: 128

Check failure on line 9 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / net - ai - ci

Build log #L9

Invalid file path 'D:\a\_work\1\s\eng\common\scripts\check-spelling-in-changed-files.ps1'. A path to a .ps1 file is required.

Check failure on line 19 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / net - ai - ci

Build log #L19

PowerShell exited with code '1'.

Check failure on line 26 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / net - ai - ci

Build log #L26

There were README verification failures, scroll up to see the issue(s)

Check failure on line 1 in Azure.AI.Projects.Tests.Sample_Agent_Functions.FunctionCallingExample

See this annotation in the file changed.

@azure-pipelines azure-pipelines / net - ai - ci

Azure.AI.Projects.Tests.Sample_Agent_Functions.FunctionCallingExample

System.ArgumentNullException : Value cannot be null. (Parameter 'connectionString')
Raw output
   at Azure.AI.Projects.Argument.AssertNotNullOrEmpty(String value, String name) in /_/sdk/ai/Azure.AI.Projects/src/Generated/Internal/Argument.cs:line 58
   at Azure.AI.Projects.ClientHelper.ParseConnectionString(String connectionString, String resourceName) in /_/sdk/ai/Azure.AI.Projects/src/Custom/ClientHelper.cs:line 15
   at Azure.AI.Projects.AgentClient..ctor(String connectionString, TokenCredential credential, AIProjectClientOptions options) in /_/sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentClient.cs:line 41
   at Azure.AI.Projects.AgentClient..ctor(String connectionString, TokenCredential credential) in /_/sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentClient.cs:line 28
   at Azure.AI.Projects.Tests.Sample_Agent_Functions.FunctionCallingExample() in /mnt/vss/_work/1/s/sdk/ai/Azure.AI.Projects/tests/Samples/Sample_Agent_Functions.cs:line 21
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 1 in Azure.AI.Projects.Tests.Sample_Agent_Streaming.Streaming

See this annotation in the file changed.

@azure-pipelines azure-pipelines / net - ai - ci

Azure.AI.Projects.Tests.Sample_Agent_Streaming.Streaming

System.ArgumentNullException : Value cannot be null. (Parameter 'connectionString')
Raw output
   at Azure.AI.Projects.Argument.AssertNotNullOrEmpty(String value, String name) in /_/sdk/ai/Azure.AI.Projects/src/Generated/Internal/Argument.cs:line 58
   at Azure.AI.Projects.ClientHelper.ParseConnectionString(String connectionString, String resourceName) in /_/sdk/ai/Azure.AI.Projects/src/Custom/ClientHelper.cs:line 15
   at Azure.AI.Projects.AgentClient..ctor(String connectionString, TokenCredential credential, AIProjectClientOptions options) in /_/sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentClient.cs:line 41
   at Azure.AI.Projects.AgentClient..ctor(String connectionString, TokenCredential credential) in /_/sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentClient.cs:line 28
   at Azure.AI.Projects.Tests.Sample_Agent_Streaming.Streaming() in /mnt/vss/_work/1/s/sdk/ai/Azure.AI.Projects/tests/Samples/Sample_Agent_Streaming.cs:line 18
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 1 in Azure.AI.Projects.Tests.Sample_Agent_Basics.BasicExample

See this annotation in the file changed.

@azure-pipelines azure-pipelines / net - ai - ci

Azure.AI.Projects.Tests.Sample_Agent_Basics.BasicExample

System.ArgumentNullException : Value cannot be null. (Parameter 'connectionString')
Raw output
   at Azure.AI.Projects.Argument.AssertNotNullOrEmpty(String value, String name) in /_/sdk/ai/Azure.AI.Projects/src/Generated/Internal/Argument.cs:line 58
   at Azure.AI.Projects.ClientHelper.ParseConnectionString(String connectionString, String resourceName) in /_/sdk/ai/Azure.AI.Projects/src/Custom/ClientHelper.cs:line 15
   at Azure.AI.Projects.AgentClient..ctor(String connectionString, TokenCredential credential, AIProjectClientOptions options) in /_/sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentClient.cs:line 41
   at Azure.AI.Projects.AgentClient..ctor(String connectionString, TokenCredential credential) in /_/sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentClient.cs:line 28
   at Azure.AI.Projects.Tests.Sample_Agent_Basics.BasicExample() in /mnt/vss/_work/1/s/sdk/ai/Azure.AI.Projects/tests/Samples/Sample_Agent_Basics.cs:line 22
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check failure on line 1 in Azure.AI.Projects.Tests.Sample_Agent_FileSearch.FilesSearchExample

See this annotation in the file changed.

@azure-pipelines azure-pipelines / net - ai - ci

Azure.AI.Projects.Tests.Sample_Agent_FileSearch.FilesSearchExample

System.ArgumentNullException : Value cannot be null. (Parameter 'connectionString')
Raw output
   at Azure.AI.Projects.Argument.AssertNotNullOrEmpty(String value, String name) in /_/sdk/ai/Azure.AI.Projects/src/Generated/Internal/Argument.cs:line 58
   at Azure.AI.Projects.ClientHelper.ParseConnectionString(String connectionString, String resourceName) in /_/sdk/ai/Azure.AI.Projects/src/Custom/ClientHelper.cs:line 15
   at Azure.AI.Projects.AgentClient..ctor(String connectionString, TokenCredential credential, AIProjectClientOptions options) in /_/sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentClient.cs:line 41
   at Azure.AI.Projects.AgentClient..ctor(String connectionString, TokenCredential credential) in /_/sdk/ai/Azure.AI.Projects/src/Custom/Agent/AgentClient.cs:line 28
   at Azure.AI.Projects.Tests.Sample_Agent_FileSearch.FilesSearchExample() in /mnt/vss/_work/1/s/sdk/ai/Azure.AI.Projects/tests/Samples/Samples_Agent_FileSearch.cs:line 21
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()