Fix deployment E2E tests: add --language csharp to aspire init#14958
Fix deployment E2E tests: add --language csharp to aspire init#14958davidfowl merged 1 commit intorelease/13.2from
Conversation
The aspire init command now shows a language selection prompt when multiple languages are available (C#, TypeScript). The 12 failing deployment tests did not handle this new prompt, causing them to timeout waiting for 'Aspire initialization complete'. Adding --language csharp explicitly skips the language prompt, restoring the expected test flow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14958Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14958" |
|
🚀 Deployment tests starting on PR #14958... This will deploy to real Azure infrastructure. Results will be posted here when complete. |
There was a problem hiding this comment.
Pull request overview
Updates Aspire deployment end-to-end tests to make aspire init non-blocking now that the CLI can prompt for language selection when multiple AppHost languages are available.
Changes:
- Add
--language csharptoaspire initinvocations across the affected deployment E2E tests to bypass the new language prompt. - Restore the expected terminal automation flow so tests don’t time out waiting for initialization completion.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Aspire.Deployment.EndToEnd.Tests/VnetStorageBlobInfraDeploymentTests.cs | Adds explicit C# language selection to aspire init in the VNet+Storage Blob infra flow. |
| tests/Aspire.Deployment.EndToEnd.Tests/VnetSqlServerInfraDeploymentTests.cs | Adds explicit C# language selection to aspire init in the VNet+SQL Server infra flow. |
| tests/Aspire.Deployment.EndToEnd.Tests/VnetKeyVaultInfraDeploymentTests.cs | Adds explicit C# language selection to aspire init in the VNet+Key Vault infra flow. |
| tests/Aspire.Deployment.EndToEnd.Tests/AzureStorageDeploymentTests.cs | Adds explicit C# language selection to aspire init to avoid the language prompt during setup. |
| tests/Aspire.Deployment.EndToEnd.Tests/AzureServiceBusDeploymentTests.cs | Adds explicit C# language selection to aspire init to keep terminal automation deterministic. |
| tests/Aspire.Deployment.EndToEnd.Tests/AzureLogAnalyticsDeploymentTests.cs | Adds explicit C# language selection to aspire init to prevent interactive blocking. |
| tests/Aspire.Deployment.EndToEnd.Tests/AzureKeyVaultDeploymentTests.cs | Adds explicit C# language selection to aspire init to avoid new prompt-induced timeouts. |
| tests/Aspire.Deployment.EndToEnd.Tests/AzureEventHubsDeploymentTests.cs | Adds explicit C# language selection to aspire init to restore expected flow. |
| tests/Aspire.Deployment.EndToEnd.Tests/AzureContainerRegistryDeploymentTests.cs | Adds explicit C# language selection to aspire init to prevent hanging at language selection. |
| tests/Aspire.Deployment.EndToEnd.Tests/AzureAppConfigDeploymentTests.cs | Adds explicit C# language selection to aspire init to skip language prompt. |
| tests/Aspire.Deployment.EndToEnd.Tests/AcaDeploymentErrorOutputTests.cs | Adds explicit C# language selection to aspire init in the ACA error-output scenario. |
| tests/Aspire.Deployment.EndToEnd.Tests/AcaCompactNamingDeploymentTests.cs | Adds explicit C# language selection to aspire init in the compact naming scenario. |
🎬 CLI E2E Test RecordingsThe following terminal recordings are available for commit
📹 Recordings uploaded automatically from CI run #22696857726 |
|
✅ Deployment E2E Tests passed Summary: 25 passed, 0 failed, 0 cancelled Passed Tests
🎬 Terminal Recordings
|
…soft#14958) The aspire init command now shows a language selection prompt when multiple languages are available (C#, TypeScript). The 12 failing deployment tests did not handle this new prompt, causing them to timeout waiting for 'Aspire initialization complete'. Adding --language csharp explicitly skips the language prompt, restoring the expected test flow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The aspire init command now shows a language selection prompt when multiple languages are available (C#, TypeScript). The 12 failing deployment tests did not handle this new prompt, causing them to timeout waiting for 'Aspire initialization complete'. Adding --language csharp explicitly skips the language prompt, restoring the expected test flow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Description
Fixes 12 broken deployment E2E tests that were timing out during
aspire init.Root cause: The
aspire initcommand now shows a language selection prompt ("Which language would you like to use?") when multiple languages are available (C#, TypeScript). The failing tests did not handle this new prompt, causing them to timeout waiting for "Aspire initialization complete" after 2 minutes.Fix: Add
--language csharpto allaspire initcalls in the 12 affected tests. This explicitly skips the language selection prompt, restoring the expected test flow.Affected tests:
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: