Skip to content

E2E Deployment Test Failure: Aspire.Deployment.EndToEnd.Tests.TypeScriptJavaScriptHostingDeploymentTests.DeployTypeScriptStaticWebsiteWithNodeApiToAzureContainerApps #17429

@mitchdenny

Description

@mitchdenny

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions