Test
Aspire.Deployment.EndToEnd.Tests.AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.DeployTypeScriptApiWithCertManagerToAzureKubernetesEnvironment
Symptom
Test fails reading apphost.ts from the freshly-created TypeScript project:
Xunit.MicrosoftTestingPlatform.XunitException: System.IO.FileNotFoundException :
Could not find file '/tmp/Aspire.Cli.Tests/TemporaryWorkspaces/<guid>/AksCertManagerTs/apphost.ts'.
at System.IO.File.ReadAllText(String path, Encoding encoding)
at AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs:136
Reached:
Step 5: Adding Azure Kubernetes hosting package...
Step 6: Modifying apphost.ts at: /tmp/Aspire.Cli.Tests/TemporaryWorkspaces/<guid>/AksCertManagerTs/apphost.ts
Root cause analysis
The test at AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs:131-136 expects apphost.ts at <projectDir>/apphost.ts, but the TypeScript Express/React starter template produced by aspire new no longer puts the file there (likely moved under a subdirectory or renamed). The C# variant of the same scenario (AksAzureKubernetesEnvironmentCertManagerDeploymentTests) passes, so this is specific to the TS template layout.
Reproduction
Sibling failures pointing at TS apphost infra:
Suggested fix
Update the test to look for apphost.ts at the new location used by the TS starter template (run aspire new aspire-ts-express-react locally to discover the current layout).
Priority
High — blocks AKS + cert-manager TS E2E coverage every nightly run.
/cc @mitchdenny
Test
Aspire.Deployment.EndToEnd.Tests.AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.DeployTypeScriptApiWithCertManagerToAzureKubernetesEnvironmentSymptom
Test fails reading
apphost.tsfrom the freshly-created TypeScript project:Reached:
Root cause analysis
The test at
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs:131-136expectsapphost.tsat<projectDir>/apphost.ts, but the TypeScript Express/React starter template produced byaspire newno longer puts the file there (likely moved under a subdirectory or renamed). The C# variant of the same scenario (AksAzureKubernetesEnvironmentCertManagerDeploymentTests) passes, so this is specific to the TS template layout.Reproduction
Deployment Testsruns onmain: consistently failing on the last 5 nightly runs.Sibling failures pointing at TS apphost infra:
Suggested fix
Update the test to look for
apphost.tsat the new location used by the TS starter template (runaspire new aspire-ts-express-reactlocally to discover the current layout).Priority
High — blocks AKS + cert-manager TS E2E coverage every nightly run.
/cc @mitchdenny