Skip to content

Conversation

@mitchdenny
Copy link
Member

Fix

Increases the WaitForSuccessPrompt timeout for the az aks update --attach-acr step from 3 minutes to 5 minutes in both AKS deployment E2E tests.

Root Cause

The nightly deployment E2E test AksStarterWithRedisDeploymentTests.DeployStarterTemplateWithRedisToAks failed on 2026-02-08 (workflow run) with:

System.TimeoutException: WaitUntil timed out after 00:03:00 waiting for condition.

The az aks update --attach-acr command was still reconciling addons (ReconcilingAddons .. spinner) when the 3-minute timeout expired. This Azure operation can realistically take 3–6 minutes depending on Azure-side latency. The next nightly run (2026-02-09) passed, confirming this is a flaky timing issue.

Changes

  • AksStarterWithRedisDeploymentTests.cs: 3min → 5min timeout on step 6
  • AksStarterDeploymentTests.cs: 3min → 5min timeout on step 6 (same vulnerability)

Fixes #14397

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.
Copilot AI review requested due to automatic review settings February 9, 2026 10:35
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14409

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14409"

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces flakiness in the AKS deployment end-to-end tests by increasing the WaitForSuccessPrompt timeout for the az aks update --attach-acr step, addressing intermittent Azure-side latency during addon reconciliation.

Changes:

  • Increase the az aks update --attach-acr step timeout from 3 minutes to 5 minutes in the AKS starter deployment E2E test.
  • Increase the same step timeout from 3 minutes to 5 minutes in the AKS starter + Redis deployment E2E test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/Aspire.Deployment.EndToEnd.Tests/AksStarterWithRedisDeploymentTests.cs Extends the az aks update --attach-acr wait timeout to reduce flakiness in the Redis AKS deployment E2E flow.
tests/Aspire.Deployment.EndToEnd.Tests/AksStarterDeploymentTests.cs Extends the az aks update --attach-acr wait timeout to reduce flakiness in the starter AKS deployment E2E flow.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

🎬 CLI E2E Test Recordings

The following terminal recordings are available for commit d5fe342:

Test Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
Banner_DisplayedOnFirstRun ▶️ View Recording
Banner_DisplayedWithExplicitFlag ▶️ View Recording
CreateAndDeployToDockerCompose ▶️ View Recording
CreateAndDeployToDockerComposeInteractive ▶️ View Recording
CreateAndPublishToKubernetes ▶️ View Recording
CreateAndRunAspireStarterProject ▶️ View Recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
CreateAndRunJsReactProject ▶️ View Recording
CreateAndRunPythonReactProject ▶️ View Recording
CreateEmptyAppHostProject ▶️ View Recording
CreateStartAndStopAspireProject ▶️ View Recording
CreateTypeScriptAppHostWithViteApp ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
ResourcesCommandShowsRunningResources ▶️ View Recording

📹 Recordings uploaded automatically from CI run #21821649495

@mitchdenny
Copy link
Member Author

/deployment-tests

@mitchdenny
Copy link
Member Author

/deployment-test

@github-actions
Copy link
Contributor

🚀 Deployment tests starting on PR #14409...

This will deploy to real Azure infrastructure. Results will be posted here when complete.

View workflow run

@github-actions
Copy link
Contributor

Deployment E2E Tests failed

Summary: 13 passed, 1 failed, 0 cancelled

View workflow run

Passed Tests

  • ✅ AksStarterDeploymentTests
  • ✅ AppServicePythonDeploymentTests
  • ✅ AcaStarterDeploymentTests
  • ✅ AppServiceReactDeploymentTests
  • ✅ AuthenticationTests
  • ✅ PythonFastApiDeploymentTests
  • ✅ AzureAppConfigDeploymentTests
  • ✅ AzureServiceBusDeploymentTests
  • ✅ AzureContainerRegistryDeploymentTests
  • ✅ AzureKeyVaultDeploymentTests
  • ✅ AzureStorageDeploymentTests
  • ✅ AzureLogAnalyticsDeploymentTests
  • ✅ AzureEventHubsDeploymentTests

Failed Tests

  • ❌ AksStarterWithRedisDeploymentTests

🎬 Terminal Recordings

Test Recording
DeployAzureAppConfigResource ▶️ View Recording
DeployAzureContainerRegistryResource ▶️ View Recording
DeployAzureEventHubsResource ▶️ View Recording
DeployAzureKeyVaultResource ▶️ View Recording
DeployAzureLogAnalyticsResource ▶️ View Recording
DeployAzureServiceBusResource ▶️ View Recording
DeployAzureStorageResource ▶️ View Recording
DeployPythonFastApiTemplateToAzureAppService ▶️ View Recording
DeployPythonFastApiTemplateToAzureContainerApps ▶️ View Recording
DeployReactTemplateToAzureAppService ▶️ View Recording
DeployStarterTemplateToAks ▶️ View Recording
DeployStarterTemplateToAzureContainerApps ▶️ View Recording
DeployStarterTemplateWithRedisToAks ▶️ View Recording

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Deployment E2E] Nightly test failure - 2026-02-08

1 participant