Add ATS pipeline parity for polyglot AppHosts#15826
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15826Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15826" |
There was a problem hiding this comment.
Pull request overview
This PR addresses #15708 by exposing the distributed application builder pipeline to polyglot AppHosts via standard ATS exports (rather than TypeScript-only generator special-casing), and updates the generated TypeScript surface plus polyglot fixtures to use the shared shape.
Changes:
- Export
IDistributedApplicationPipelinethrough ATS and add ATS-friendlyaddStepandconfigurecapability exports. - Update the TypeScript ATS code generator and snapshot to include the builder-level
pipelinehandle and its methods. - Update TypeScript/Python/Java polyglot AppHost fixtures to exercise the builder-level pipeline API; hide an internal manifest publishing pipeline extension from the polyglot surface.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/PolyglotAppHosts/Aspire.Hosting/TypeScript/apphost.ts | Uses the generated builder-level pipeline handle (builder.pipeline.get()) and exercises addStep/configure. |
| tests/PolyglotAppHosts/Aspire.Hosting/Python/apphost.py | Uses the generated builder-level pipeline API (builder.pipeline) and exercises add_step/configure. |
| tests/PolyglotAppHosts/Aspire.Hosting/Java/AppHost.java | Uses the generated builder-level pipeline API (builder.pipeline()) and exercises addStep/configure. |
| tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.ts | Updates the verified generated TypeScript API surface to include pipeline handle/methods. |
| src/Aspire.Hosting/Publishing/ManifestPublishingExtensions.cs | Explicitly hides internal manifest publishing pipeline extension from ATS/polyglot export surface. |
| src/Aspire.Hosting/Ats/PipelineExports.cs | Adds ATS capability exports for pipeline addStep and configure. |
| src/Aspire.Hosting/Ats/AtsTypeMappings.cs | Adds assembly-level ATS type export for IDistributedApplicationPipeline. |
| src/Aspire.Hosting.CodeGeneration.TypeScript/AtsTypeScriptCodeGenerator.cs | Adjusts method/interface generation and callback codegen (including indentation handling). |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
JamesNK
left a comment
There was a problem hiding this comment.
Looks good — clean approach to exporting the pipeline surface through standard ATS exports. Two minor nits on pre-existing patterns in generated snapshots (Rust unused bindings, Go/Java nil guard on required callback). No blocking issues.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🎬 CLI E2E Test Recordings — 68 recordings uploaded (commit View recordings
📹 Recordings uploaded automatically from CI run #24350785976 |
* Add ATS pipeline parity for polyglot AppHosts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix polyglot codegen snapshot EOFs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Simplify callback close generation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix redundant ATS export IDs after mainline sync Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Remove redundant AppContainers export ID Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Sync latest main and harden StartStop E2E Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Harden remaining StartStop E2E waits Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: David Fowler <davidfowl@gmail.com>
Description
Fixes #15708 by exposing the builder pipeline through standard ATS exports instead of TypeScript-only generator special casing. This keeps the polyglot AppHost surface aligned across TypeScript, Python, and Java while preserving the existing C# pipeline API.
This change exports
IDistributedApplicationPipeline, adds ATS-friendlyaddStepandconfiguremethods on the pipeline handle, and updates the TypeScript generator snapshot plus the TypeScript, Python, and Java polyglot fixtures to use the shared generated shape. It also explicitly hides the internal manifest publishing pipeline extension from the polyglot surface. During self-review, I fixed a shared TypeScript callback-generation bug in the multi-parameterCancellationTokenpath.Dependencies required for this change: none.
Fixes #15708
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: