Skip to content

.NET: Re-enable AzureAIAgentsPersistent integration tests after Azure.AI.Agents.Persistent targets ME.AI 10.4.0+ #4769

@rogerbarreto

Description

@rogerbarreto

Context

PR #4613 updated Microsoft.Extensions.AI to 10.4.0, which renamed McpServerToolApprovalResponseContent to ToolApprovalResponseContent. The Azure.AI.Agents.Persistent package (currently 1.2.0-beta.9) still references the old type, causing TypeLoadException at runtime.

The upstream fix is tracked in Azure/azure-sdk-for-net#56929 and is expected in Azure.AI.Agents.Persistent 1.2.0-beta.10.

Disabled Tests

All 6 test classes in dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/ have been marked with [Trait("Category", "IntegrationDisabled")]:

  • AzureAIAgentsPersistentCreateTests (5 test methods)
  • AzureAIAgentsPersistentRunTests (5 inherited test methods from RunTests)
  • AzureAIAgentsPersistentRunStreamingTests (5 inherited test methods from RunStreamingTests)
  • AzureAIAgentsPersistentStructuredOutputRunTests (3 test methods)
  • AzureAIAgentsChatClientAgentRunTests (2 inherited test methods from ChatClientAgentRunTests)
  • AzureAIAgentsChatClientAgentRunStreamingTests (2 inherited test methods from ChatClientAgentRunStreamingTests)

Total: 22 test methods disabled

Action Required

  1. Update Azure.AI.Agents.Persistent to a version targeting ME.AI 10.4.0+ (likely 1.2.0-beta.10) in Directory.Packages.props
  2. Remove [Trait("Category", "IntegrationDisabled")] from all 6 test classes
  3. Remove the // Disabled: comments from each file
  4. Verify all tests pass in CI

Related

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions