Skip to content

Commit 88c4ca5

Browse files
authored
Change resources used in Live AI tests (#53529)
* Remove KV resource and move live tests to eastus where VoiceLive is supported * Add asset restore: * Add asset restore * Use SpeecSDK instead of wav files or live tests * Shorten yaml * Remove assets usage * ignore inconsistent case * Ignore test case with flaky error behavior * Update Speech SDK reference. * Simplify test infrastructure and PR comments.
1 parent e0fd5a1 commit 88c4ca5

15 files changed

+39
-873
lines changed

eng/Packages.Data.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@
408408
<PackageReference Update="Microsoft.Azure.WebJobs.Extensions" Version="5.0.0" />
409409
<PackageReference Update="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.2.0" />
410410
<PackageReference Update="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.8.0" />
411+
<PackageReference Update="Microsoft.CognitiveServices.Speech" Version="1.47.0"/>
411412
<PackageReference Update="Microsoft.CSharp" Version="4.7.0" />
412413
<PackageReference Update="Microsoft.Data.SqlClient" Version="5.2.2" />
413414
<PackageReference Update="Microsoft.Extensions.Azure" Version="1.12.0" />

sdk/ai/Azure.AI.VoiceLive/tests/Azure.AI.VoiceLive.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
<PackageReference Include="Microsoft.NET.Test.Sdk" />
1919
<PackageReference Include="Moq" />
2020
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
21+
<PackageReference Include="Microsoft.CognitiveServices.Speech"/>
2122
</ItemGroup>
2223
</Project>

sdk/ai/Azure.AI.VoiceLive/tests/ContentLoggingPerformanceTests.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44
#nullable enable
55

66
using System;
7-
using System.Collections.Generic;
87
using System.Diagnostics;
9-
using System.Diagnostics.Tracing;
10-
using System.Linq;
11-
using System.Text;
128
using System.Threading;
139
using System.Threading.Tasks;
1410
using Azure.AI.VoiceLive.Diagnostics;
1511
using Azure.AI.VoiceLive.Tests.Infrastructure;
16-
using Azure.Core;
1712
using Azure.Core.TestFramework;
1813
using NUnit.Framework;
1914

@@ -139,6 +134,7 @@ public async Task SessionOperations_WithContentLogging_MaintainPerformance()
139134
Assert.LessOrEqual(overhead, 0.5, $"Content logging should add less than 50% overhead. Without: {timeWithoutLogging}ms, With: {timeWithLogging}ms, Overhead: {overhead:P}");
140135
}
141136

137+
[Ignore("Very inconsistent when run in batch of tests")]
142138
[Test]
143139
public void EventSource_EventCreation_IsEfficient()
144140
{

sdk/ai/Azure.AI.VoiceLive/tests/ContentLoggingTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ public ContentLoggingTests(bool isAsync) : base(isAsync)
3535
}
3636

3737
[SetUp]
38-
public override void Setup()
38+
public void Setup()
3939
{
4040
_capturedEvents.Clear();
4141
_eventListener = new TestEventListener(_capturedEvents);
4242

4343
var endpoint = new Uri("wss://test.example.com");
4444
var credential = new AzureKeyCredential("test-key");
4545
_client = InstrumentClient(new VoiceLiveClient(endpoint, credential));
46-
base.Setup();
4746
}
4847

4948
[TearDown]

sdk/ai/Azure.AI.VoiceLive/tests/Infrastructure/MockResponseGenerator.cs

Lines changed: 0 additions & 245 deletions
This file was deleted.

0 commit comments

Comments
 (0)