Failing Test
Aspire.Deployment.EndToEnd.Tests.TypeScriptJavaScriptHostingDeploymentTests.DeployTypeScriptStaticWebsiteWithNodeApiToAzureContainerApps
Symptom
The test fails with:
System.InvalidOperationException : Command failed with non-zero exit code (detected ERR prompt at sequence 10).
The recorded terminal shows aspire deploy succeeding instantly (4/4 steps succeeded • Total time: 97ms) and then the verification step printing:
ERROR: (ResourceGroupNotFound) Resource group 'e2e-ts-js-hosting-<runid>-1' could not be found.
[ERR:1] $
Root Cause
After aspire init --language typescript --non-interactive, the test writes its custom AppHost content to apphost.ts in the workspace root:
https://github.com/microsoft/aspire/blob/main/tests/Aspire.Deployment.EndToEnd.Tests/TypeScriptJavaScriptHostingDeploymentTests.cs#L164
Since PR #16984 ("Use mts for TypeScript AppHosts"), aspire init --language typescript creates an apphost.mts in the workspace root. The custom apphost.ts written by the test is ignored; aspire deploy deploys the empty default apphost.mts, no resources are created, and the verification step fails because the resource group does not exist.
Fix
Write the custom AppHost content to apphost.mts instead of apphost.ts (overwriting the empty init file).
Affected Runs
This issue was created automatically by a workflow analyzing Deployment E2E test failures on main.
Failing Test
Aspire.Deployment.EndToEnd.Tests.TypeScriptJavaScriptHostingDeploymentTests.DeployTypeScriptStaticWebsiteWithNodeApiToAzureContainerAppsSymptom
The test fails with:
The recorded terminal shows
aspire deploysucceeding instantly (4/4 steps succeeded • Total time: 97ms) and then the verification step printing:Root Cause
After
aspire init --language typescript --non-interactive, the test writes its custom AppHost content toapphost.tsin the workspace root:https://github.com/microsoft/aspire/blob/main/tests/Aspire.Deployment.EndToEnd.Tests/TypeScriptJavaScriptHostingDeploymentTests.cs#L164
Since PR #16984 ("Use mts for TypeScript AppHosts"),
aspire init --language typescriptcreates anapphost.mtsin the workspace root. The customapphost.tswritten by the test is ignored;aspire deploydeploys the empty defaultapphost.mts, no resources are created, and the verification step fails because the resource group does not exist.Fix
Write the custom AppHost content to
apphost.mtsinstead ofapphost.ts(overwriting the empty init file).Affected Runs