Skip to content

Add Empty (Python AppHost) top-level template entry#16714

Closed
mitchdenny wants to merge 4 commits intomainfrom
mitchdenny/fix-16662-python-empty-apphost-entry
Closed

Add Empty (Python AppHost) top-level template entry#16714
mitchdenny wants to merge 4 commits intomainfrom
mitchdenny/fix-16662-python-empty-apphost-entry

Conversation

@mitchdenny
Copy link
Copy Markdown
Member

@mitchdenny mitchdenny commented May 4, 2026

Description

Add a top-level Empty (Python AppHost) template entry to aspire new, mirroring the existing Java pattern.

Bug: When experimental polyglot languages are enabled, aspire new exposes a dedicated top-level empty AppHost entry for Java but not for Python:

Empty (Java AppHost)
Empty (TypeScript AppHost)
Empty AppHost

Python was only reachable through the generic Empty AppHost language picker, while Java was reachable both ways.

Fix: Add KnownTemplateId.PythonEmptyAppHost = "aspire-py-empty" and register a matching CallbackTemplate in CliTemplateFactory with languageId: KnownLanguageId.Python and isEmpty: true. The new entry is automatically gated behind KnownFeatures.ExperimentalPolyglotPython via the existing IsTemplateAvailableILanguageDiscovery.GetLanguageById path (Python returns null when the flag is off).

Behavior:

  • experimentalPolyglot:python enabled → Empty (Python AppHost) appears as a top-level entry alongside Java and TypeScript.
  • experimentalPolyglot:python disabled → entry is hidden (existing gating).

Drive-by fix: The new E2E test surfaced that PythonLanguageSupport.Scaffold was not emitting a .gitignore, while the Java and TypeScript scaffolders both do. Added a .gitignore to the Python scaffold output covering Aspire-generated artifacts (.modules/, .aspire/) and Python-specific build/runtime artifacts (.venv/, __pycache__/, *.pyc). This brings Python to parity with Java/TypeScript at the scaffolding level.

Adds an E2E test (PythonEmptyAppHostTemplateTests.CreateAndScaffoldPythonEmptyAppHostProject) that mirrors the structure of JavaEmptyAppHostTemplateTests, exercising the new top-level entry interactively and verifying the scaffolded .gitignore. The test intentionally omits aspire start/aspire stop (see Follow-up below).

Fixes #16662

Validation

Install this PR build:

# PowerShell
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16714"
# Bash
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16714

Scenario 1 — Python flag OFF (entry hidden)

# Make sure the experimental Python polyglot flag is OFF.
aspire config delete -g features.experimentalPolyglot:python

aspire new

Expected: Top-level template list does NOT include Empty (Python AppHost).

aspire new aspire-py-empty

Expected: Fails because the template is unavailable when the flag is off.

Scenario 2 — Python flag ON (entry visible alongside Java)

aspire config set -g features.experimentalPolyglot:python true
aspire config set -g features.experimentalPolyglot:java   true

aspire new

Expected: Top-level template list now includes:

Empty (Java AppHost)
Empty (Python AppHost)        ← new
Empty (TypeScript AppHost)
Empty AppHost

Pick Empty (Python AppHost) and confirm it scaffolds a Python AppHost project.

aspire new aspire-py-empty -o testpy
ls -la testpy/.gitignore   # should exist and contain .venv/, __pycache__/, .modules/, .aspire/

Expected: Succeeds and creates a Python AppHost in ./testpy, including a .gitignore.

Cleanup

aspire config delete -g features.experimentalPolyglot:python
aspire config delete -g features.experimentalPolyglot:java

Automated coverage

  • Unit tests (tests/Aspire.Cli.Tests/Commands/NewCommandTests.cs): verify the aspire-py-empty template is exposed when the flag is on and hidden when the flag is off.
  • E2E test (tests/Aspire.Cli.EndToEnd.Tests/PythonEmptyAppHostTemplateTests.cs): drives the interactive aspire new flow inside a Linux container, types Empty (Python AppHost), asserts the highlighted selection appears, completes scaffolding, and asserts the generated .gitignore contains .aspire/.

Follow-up: Python AppHost cold-start vs. CLI startup timeout (out of scope)

The E2E test deliberately stops at scaffolding rather than running aspire start / aspire stop. Python AppHost first-run cold-start (microvenv creation + pip install from .modules/PyPI) can exceed the CLI's hard-coded 120s "wait for AppHost to start" timeout (AppHostLauncher.cs:277) on resource-constrained CI runners. Java's empty AppHost doesn't hit this because its bring-up is just JVM start. This is a separate product concern (either bump the timeout, make it configurable per-language, or pre-warm the venv) and is not in scope for this PR, which is purely about exposing the top-level template entry.

Note

Issue #16661 (Python being shown in the generic Empty AppHost language picker even when the flag was off) is fixed in a separate PR (#16713). This PR is purely additive and doesn't alter the language-picker filtering behavior.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

When the experimentalPolyglot:python feature flag is enabled, expose a dedicated 'Empty (Python AppHost)' template via 'aspire new', mirroring the existing Java pattern. Previously Python was only reachable through the generic 'Empty AppHost' language picker, leading to inconsistent behavior across enabled experimental AppHost languages.

Adds KnownTemplateId.PythonEmptyAppHost ('aspire-py-empty') and the matching CallbackTemplate registration in CliTemplateFactory. The template is automatically gated by ILanguageDiscovery.GetLanguageById, which already returns null for Python when the experimentalPolyglot:python feature flag is off.

Fixes #16662

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 4, 2026 02:00
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 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/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16714

Or

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

Copy link
Copy Markdown
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

Adds a dedicated top-level aspire new template entry for an Empty (Python AppHost), bringing Python in line with the existing “Empty (Java AppHost)” behavior when the experimental polyglot Python feature flag is enabled.

Changes:

  • Introduces KnownTemplateId.PythonEmptyAppHost (aspire-py-empty) for a Python empty AppHost CLI template.
  • Registers a new CallbackTemplate in CliTemplateFactory for Empty (Python AppHost) with languageId: KnownLanguageId.Python and isEmpty: true, relying on existing language-discovery gating to hide it when the feature is off.
  • Adds CLI unit tests validating that the Python empty AppHost subcommand is exposed only when ExperimentalPolyglotPython is enabled.

Reviewed changes

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

File Description
tests/Aspire.Cli.Tests/Commands/NewCommandTests.cs Adds coverage for the presence/absence of the Python empty AppHost subcommand based on the Python polyglot feature flag.
src/Aspire.Cli/Templating/KnownTemplateId.cs Defines the new known template ID constant for the Python empty AppHost template.
src/Aspire.Cli/Templating/CliTemplateFactory.cs Registers the new top-level Empty (Python AppHost) callback template entry gated by language discovery.

Adds CreateAndRunPythonEmptyAppHostProject which mirrors
CreateAndRunJavaEmptyAppHostProject, exercising the new top-level
Empty (Python AppHost) entry that surfaces when
features.experimentalPolyglot:python is enabled.

Adds the supporting shared infrastructure:
- AspireTemplate.PythonEmptyAppHost enum value
- Selection cases in Hex1bAutomatorTestHelpers (async automator API)
  and Hex1bTestHelpers (legacy builder API) that type
  "Empty (Python AppHost)" and verify the highlighted entry
- EnableExperimentalPythonSupportAsync helper in CliE2EAutomatorHelpers

Uses the default DockerfileVariant.DotNet image, which already
includes Python (matches PythonReactTemplateTests).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mitchdenny and others added 2 commits May 4, 2026 12:24
The Python language scaffolder did not emit a .gitignore, leaving Aspire-
generated runtime artifacts (.venv, .modules, .aspire) and Python build
artifacts (__pycache__, *.pyc) untracked-by-default but uncommitted-by-
default — i.e., subject to accidental commit. Java and TypeScript both
ship a .gitignore from their scaffolders.

Add a .gitignore to PythonLanguageSupport.Scaffold mirroring the Java/
TypeScript pattern, with Python-specific additions for .venv/,
__pycache__/, and *.pyc.

Discovered by the new PythonEmptyAppHostTemplateTests.CreateAndRunPython
EmptyAppHostProject E2E test, which mirrors the Java equivalent and
asserts the scaffolded project's .gitignore contains '.aspire/'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The aspire start/stop steps were exceeding the CLI's hard 120s
"Wait for AppHost to start" timeout in CI runners. Python AppHost
cold-start (microvenv creation + pip install of packages from
.modules/PyPI) is genuinely slower than the Java/.NET equivalents
because Java's startup is just JVM bring-up while Python has to
materialize a virtual environment from scratch.

That cold-start time vs the CLI's hard timeout cap is a separate
product concern that is not in scope for #16662 (which is about
exposing the "Empty (Python AppHost)" top-level template entry).

The remaining test still:
  - Drives the interactive aspire new flow.
  - Asserts the highlighted "> Empty (Python AppHost)" selection
    appears (via AspireNewAsync's PythonEmptyAppHost case).
  - Asserts the scaffolded project includes a .gitignore with
    .aspire/ (parity with Java/TypeScript scaffolds).

The renamed test method (CreateAndScaffoldPythonEmptyAppHostProject)
reflects the narrower scope.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

🎬 CLI E2E Test Recordings — 77 recordings uploaded (commit f28aef9)

View all recordings
Status Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
AddPackageWhileAppHostRunningDetached ▶️ View Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_DefaultSelection_InstallsSkillOnly ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
AspireAddPackageVersionToDirectoryPackagesProps ▶️ View Recording
AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View Recording
Banner_DisplayedOnFirstRun ▶️ View Recording
Banner_DisplayedWithExplicitFlag ▶️ View Recording
Banner_NotDisplayedWithNoLogoFlag ▶️ View Recording
CertificatesClean_RemovesCertificates ▶️ View Recording
CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate ▶️ View Recording
CertificatesTrust_WithUntrustedCert_TrustsCertificate ▶️ View Recording
ConfigSetGet_CreatesNestedJsonFormat ▶️ View Recording
CreateAndRunAspireStarterProject ▶️ View Recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
CreateAndRunEmptyAppHostProject ▶️ View Recording
CreateAndRunJavaEmptyAppHostProject ▶️ View Recording
CreateAndRunJsReactProject ▶️ View Recording
CreateAndRunPythonReactProject ▶️ View Recording
CreateAndRunTypeScriptEmptyAppHostProject ▶️ View Recording
CreateAndRunTypeScriptStarterProject ▶️ View Recording
CreateAndScaffoldPythonEmptyAppHostProject ▶️ View Recording
CreateJavaAppHostWithViteApp ▶️ View Recording
CreateTypeScriptAppHostWithViteApp_UsesConfiguredToolchain ▶️ View Recording
DashboardRunWithOtelTracesReturnsNoTraces ▶️ View Recording
DeployK8sBasicApiService ▶️ View Recording
DeployK8sWithGarnet ▶️ View Recording
DeployK8sWithMongoDB ▶️ View Recording
DeployK8sWithMySql ▶️ View Recording
DeployK8sWithPostgres ▶️ View Recording
DeployK8sWithRabbitMQ ▶️ View Recording
DeployK8sWithRedis ▶️ View Recording
DeployK8sWithSqlServer ▶️ View Recording
DeployK8sWithValkey ▶️ View Recording
DeployTypeScriptAppToKubernetes ▶️ View Recording
DescribeCommandResolvesReplicaNames ▶️ View Recording
DescribeCommandShowsRunningResources ▶️ View Recording
DetachFormatJsonProducesValidJson ▶️ View Recording
DetachFormatJsonProducesValidJsonWhenRestartingExistingInstance ▶️ View Recording
DoListStepsShowsPipelineSteps ▶️ View Recording
DocsCommand_RendersInteractiveMarkdownFromLocalSource ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
DoctorCommand_TypeScriptAppHostReportsMissingConfiguredToolchain ▶️ View Recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
GlobalMigration_HandlesCommentsAndTrailingCommas ▶️ View Recording
GlobalMigration_HandlesMalformedLegacyJson ▶️ View Recording
GlobalMigration_PreservesAllValueTypes ▶️ View Recording
GlobalMigration_SkipsWhenNewConfigExists ▶️ View Recording
GlobalSettings_MigratedFromLegacyFormat ▶️ View Recording
InitTypeScriptAppHost_AugmentsExistingViteRepoAtRoot ▶️ View Recording
InteractiveCSharpInitCreatesExpectedFiles ▶️ View Recording
InvalidAppHostPathWithComments_IsHealedOnRun ▶️ View Recording
LatestCliCanStartStableChannelAppHost ▶️ View Recording
LatestCliCanStartStableChannelTypeScriptAppHost ▶️ View Recording
LegacySettingsMigration_AdjustsRelativeAppHostPath ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
OtelLogsReturnsStructuredLogsFromStarterAppCore ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
PsFormatJsonOutputsOnlyJsonToStdout ▶️ View Recording
PublishWithConfigureEnvFileUpdatesEnvOutput ▶️ View Recording
PublishWithDockerComposeServiceCallbackSucceeds ▶️ View Recording
PublishWithoutOutputPathUsesAppHostDirectoryDefault ▶️ View Recording
RestoreGeneratesSdkFiles ▶️ View Recording
RestoreGeneratesSdkFiles_WithConfiguredToolchain ▶️ View Recording
RestoreRefreshesGeneratedSdkAfterAddingIntegration ▶️ View Recording
RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes ▶️ View Recording
RunFromParentDirectory_UsesExistingConfigNearAppHost ▶️ View Recording
SecretCrudOnDotNetAppHost ▶️ View Recording
SecretCrudOnTypeScriptAppHost ▶️ View Recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording
StartAndWaitForTypeScriptSqlServerAppHostWithNativeAssets ▶️ View Recording
StopAllAppHostsFromAppHostDirectory ▶️ View Recording
StopNonInteractiveSingleAppHost ▶️ View Recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording
UnAwaitedChainsCompileWithAutoResolvePromises ▶️ View Recording

📹 Recordings uploaded automatically from CI run #25298551254

@mitchdenny
Copy link
Copy Markdown
Member Author

/deployment-test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

🚀 Deployment tests starting on PR #16714...

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

View workflow run

@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot had a problem deploying to deployment-testing May 4, 2026 04:35 Failure
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot had a problem deploying to deployment-testing May 4, 2026 04:35 Failure
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot had a problem deploying to deployment-testing May 4, 2026 04:35 Failure
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot had a problem deploying to deployment-testing May 4, 2026 04:35 Failure
@github-actions github-actions Bot had a problem deploying to deployment-testing May 4, 2026 04:35 Failure
@github-actions github-actions Bot had a problem deploying to deployment-testing May 4, 2026 04:35 Failure
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot had a problem deploying to deployment-testing May 4, 2026 04:35 Failure
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions github-actions Bot temporarily deployed to deployment-testing May 4, 2026 04:35 Inactive
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Deployment E2E Tests failed — 26 passed, 7 failed, 0 cancelled

View test results and recordings

View workflow run

Test Result Recording
Deployment.EndToEnd-NspStorageKeyVaultDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-KubernetesGatewayTlsDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AzureStorageDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-FrontDoorDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-TypeScriptExpressDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AzureLogAnalyticsDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AcaCompactNamingDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AzureServiceBusDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AppServiceReactDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AzureContainerRegistryDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AuthenticationTests ✅ Passed
Deployment.EndToEnd-AzureKeyVaultDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AksVnetWithAzureResourcesDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AzureAppConfigDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AzureEventHubsDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AcaExistingRegistryDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AksBlazorRedisDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AksVnetInfraDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AksWithAzureResourcesDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AcaCustomRegistryDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AcaStarterDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AcaManagedRedisDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AksMultipleNodePoolsDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AksStarterWithRedisHelmDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AksStarterDeploymentTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-AcaDeploymentErrorOutputTests ✅ Passed ▶️ View Recording
Deployment.EndToEnd-VnetKeyVaultInfraDeploymentTests ❌ Failed ▶️ View Recording
Deployment.EndToEnd-VnetKeyVaultConnectivityDeploymentTests ❌ Failed ▶️ View Recording
Deployment.EndToEnd-VnetSqlServerConnectivityDeploymentTests ❌ Failed ▶️ View Recording
Deployment.EndToEnd-VnetSqlServerInfraDeploymentTests ❌ Failed ▶️ View Recording
Deployment.EndToEnd-TypeScriptVnetSqlServerInfraDeploymentTests ❌ Failed ▶️ View Recording
Deployment.EndToEnd-VnetStorageBlobConnectivityDeploymentTests ❌ Failed ▶️ View Recording
Deployment.EndToEnd-VnetStorageBlobInfraDeploymentTests ❌ Failed ▶️ View Recording

Copy link
Copy Markdown
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

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

LGTM. Clean, consistent addition that mirrors the existing Java/TypeScript/Go empty AppHost patterns. Template registration, feature gating, .gitignore parity, and test coverage all look good.

@IEvangelist
Copy link
Copy Markdown
Member

I'm not certain if the added test cases include logic to help prevent this bug from surfacing again in future iterations, but we should consider having test coverage that validates all listed template options that required a template-callback have one.

@mitchdenny
Copy link
Copy Markdown
Member Author

Closing because this was addressed by: #16666

@mitchdenny mitchdenny closed this May 5, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.4 milestone May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aspire new has Java empty AppHost top-level entry but no Python equivalent

4 participants