Skip to content

Add polyglot exports for Aspire.Hosting.Milvus#14909

Merged
davidfowl merged 3 commits intorelease/13.2from
sebros/polyglot-milvus
Mar 4, 2026
Merged

Add polyglot exports for Aspire.Hosting.Milvus#14909
davidfowl merged 3 commits intorelease/13.2from
sebros/polyglot-milvus

Conversation

@sebastienros
Copy link
Contributor

Related to #14069

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

github-actions bot commented Mar 3, 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/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14909

Or

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

Copilot AI review requested due to automatic review settings March 3, 2026 19:06
Copy link
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 polyglot (TypeScript) export surface for Aspire.Hosting.Milvus and checks it via a TypeScript validation AppHost playground.

Changes:

  • Added [AspireExport] attributes to Milvus hosting extension methods to expose them to polyglot app hosts.
  • Introduced a TypeScript “ValidationAppHost” playground project for Milvus, including generated .modules runtime/helpers.
  • Added TS build/runtime configuration (tsconfig.json, package.json, Aspire settings, run profile).

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/Aspire.Hosting.Milvus/MilvusBuilderExtensions.cs Exposes Milvus APIs to the polyglot export system via AspireExport attributes.
playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/tsconfig.json Adds TS compiler configuration for the validation host.
playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/package.json Adds Node/TS project scaffolding for running and building the validation host.
playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/apphost.ts Minimal TypeScript app host entrypoint to exercise the generated modules.
playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/apphost.run.json Adds local run profile/environment variables for the validation host.
playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/.modules/transport.ts Adds JSON-RPC transport client and handle/callback/cancellation infrastructure.
playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/.modules/base.ts Adds base polyglot types (reference expressions, list/dict wrappers) and re-exports.
playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/.modules/.codegen-hash Records codegen hash for generated module set.
playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/.aspire/settings.json Configures Aspire polyglot settings to use the TS app host and Milvus package.
Files not reviewed (1)
  • playground/polyglot/TypeScript/Aspire.Hosting.Milvus/ValidationAppHost/package-lock.json: Language not supported

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

github-actions bot commented Mar 3, 2026

🎬 CLI E2E Test Recordings

The following terminal recordings are available for commit a88c56e:

Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
AddPackageWhileAppHostRunningDetached ▶️ View Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
AgentInitCommand_WithMalformedMcpJson_ShowsErrorAndExitsNonZero ▶️ View Recording
AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View Recording
Banner_DisplayedOnFirstRun ▶️ View Recording
Banner_DisplayedWithExplicitFlag ▶️ View Recording
CreateAndDeployToDockerCompose ▶️ View Recording
CreateAndDeployToDockerComposeInteractive ▶️ View Recording
CreateAndPublishToKubernetes ▶️ View Recording
CreateAndRunAspireStarterProject ▶️ View Recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
CreateAndRunJsReactProject ▶️ View Recording
CreateAndRunPythonReactProject ▶️ View Recording
CreateAndRunTypeScriptStarterProject ▶️ View Recording
CreateEmptyAppHostProject ▶️ View Recording
CreateStartAndStopAspireProject ▶️ View Recording
CreateStartWaitAndStopAspireProject ▶️ View Recording
CreateTypeScriptAppHostWithViteApp ▶️ View Recording
DescribeCommandResolvesReplicaNames ▶️ View Recording
DescribeCommandShowsRunningResources ▶️ View Recording
DetachFormatJsonProducesValidJson ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ❌ Upload failed
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
PsFormatJsonOutputsOnlyJsonToStdout ▶️ View Recording
SecretCrudOnDotNetAppHost ▶️ View Recording
SecretCrudOnTypeScriptAppHost ▶️ View Recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording
StopAllAppHostsFromAppHostDirectory ▶️ View Recording
StopAllAppHostsFromUnrelatedDirectory ▶️ View Recording
StopNonInteractiveMultipleAppHostsShowsError ▶️ View Recording
StopNonInteractiveSingleAppHost ▶️ View Recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording

📹 Recordings uploaded automatically from CI run #22649519238

- Add [AspireExport("withAttu")] to WithAttu method in MilvusBuilderExtensions
- Update TypeScript validation apphost to exercise all exported methods:
  addMilvus, addDatabase, withAttu, withDataVolume, withDataBindMount,
  withConfigurationFile, and withReference from core
- Regenerate TypeScript SDK with withAttu support
- Clean up settings.json (remove sdkVersion and package versions)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
.withAttu();

// ── 15. withReference: use Milvus database from a container resource ───────
const api = await builder.addContainer("api", "myregistry/myapp");
Copy link
Contributor

Choose a reason for hiding this comment

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

does this work?

@davidfowl davidfowl merged commit 5a50ec0 into release/13.2 Mar 4, 2026
384 checks passed
@davidfowl davidfowl deleted the sebros/polyglot-milvus branch March 4, 2026 02:05
@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Mar 4, 2026
Copilot AI pushed a commit that referenced this pull request Mar 10, 2026
* Add polyglot exports for Aspire.Hosting.Milvus

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Refine AspireExport descriptions for polyglot-milvus

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add AspireExport to Milvus WithAttu and update validation apphost

- Add [AspireExport("withAttu")] to WithAttu method in MilvusBuilderExtensions
- Update TypeScript validation apphost to exercise all exported methods:
  addMilvus, addDatabase, withAttu, withDataVolume, withDataBindMount,
  withConfigurationFile, and withReference from core
- Regenerate TypeScript SDK with withAttu support
- Clean up settings.json (remove sdkVersion and package versions)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

3 participants