From d5fe3420e6057864251734944a1ca665ea2ac967 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Mon, 9 Feb 2026 21:35:12 +1100 Subject: [PATCH] Increase az aks update timeout from 3 to 5 minutes in AKS E2E tests The az aks update --attach-acr command can take 3-6 minutes due to Azure addon reconciliation. The 3-minute timeout caused flaky failures in nightly CI (issue #14397). Increase to 5 minutes in both AKS test files. --- .../AksStarterDeploymentTests.cs | 2 +- .../AksStarterWithRedisDeploymentTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Aspire.Deployment.EndToEnd.Tests/AksStarterDeploymentTests.cs b/tests/Aspire.Deployment.EndToEnd.Tests/AksStarterDeploymentTests.cs index 3b8b1a58bed..88cc136d200 100644 --- a/tests/Aspire.Deployment.EndToEnd.Tests/AksStarterDeploymentTests.cs +++ b/tests/Aspire.Deployment.EndToEnd.Tests/AksStarterDeploymentTests.cs @@ -160,7 +160,7 @@ private async Task DeployStarterTemplateToAksCore(CancellationToken cancellation sequenceBuilder .Type($"az aks update --resource-group {resourceGroupName} --name {clusterName} --attach-acr {acrName}") .Enter() - .WaitForSuccessPrompt(counter, TimeSpan.FromMinutes(3)); + .WaitForSuccessPrompt(counter, TimeSpan.FromMinutes(5)); // Step 7: Configure kubectl credentials output.WriteLine("Step 7: Configuring kubectl credentials..."); diff --git a/tests/Aspire.Deployment.EndToEnd.Tests/AksStarterWithRedisDeploymentTests.cs b/tests/Aspire.Deployment.EndToEnd.Tests/AksStarterWithRedisDeploymentTests.cs index 2da92fa996a..43cad30d999 100644 --- a/tests/Aspire.Deployment.EndToEnd.Tests/AksStarterWithRedisDeploymentTests.cs +++ b/tests/Aspire.Deployment.EndToEnd.Tests/AksStarterWithRedisDeploymentTests.cs @@ -159,7 +159,7 @@ private async Task DeployStarterTemplateWithRedisToAksCore(CancellationToken can sequenceBuilder .Type($"az aks update --resource-group {resourceGroupName} --name {clusterName} --attach-acr {acrName}") .Enter() - .WaitForSuccessPrompt(counter, TimeSpan.FromMinutes(3)); + .WaitForSuccessPrompt(counter, TimeSpan.FromMinutes(5)); // Step 7: Configure kubectl credentials output.WriteLine("Step 7: Configuring kubectl credentials...");