Skip to content

Add AspireExport coverage for Aspire.Hosting.Azure.ServiceBus#14665

Merged
sebastienros merged 3 commits intorelease/13.2from
sebros/polyglot-servicebus
Feb 25, 2026
Merged

Add AspireExport coverage for Aspire.Hosting.Azure.ServiceBus#14665
sebastienros merged 3 commits intorelease/13.2from
sebros/polyglot-servicebus

Conversation

@sebastienros
Copy link
Copy Markdown
Contributor

@sebastienros sebastienros commented Feb 25, 2026

Related to #14069

Copilot AI review requested due to automatic review settings February 25, 2026 00:43
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 25, 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 -- 14665

Or

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

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

This PR advances the TypeScript (polyglot) AppHost effort for Aspire.Hosting.Azure.ServiceBus by annotating the integration surface with [AspireExport]/[AspireDto] so it can be discovered by ATS capability scanning and used from generated TypeScript SDKs (per #14069).

Changes:

  • Adds [AspireExport] coverage for key Azure Service Bus builder extension methods (and hides non-polyglot-compatible overloads via [AspireExportIgnore]).
  • Exposes Service Bus queue/topic/subscription resources to polyglot SDKs via [AspireExport(ExposeProperties = true)] and marks unsupported properties with [AspireExportIgnore].
  • Adds DTO annotations for rule/filter types and a new TypeScript ValidationAppHost playground to exercise generated APIs.

Reviewed changes

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

Show a summary per file
File Description
src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusTopicResource.cs Exports topic resource type; ignores non-polyglot properties.
src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusSubscriptionResource.cs Exports subscription resource type; ignores non-polyglot properties.
src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusQueueResource.cs Exports queue resource type; ignores non-polyglot properties.
src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusRule.cs Marks rule type as DTO for polyglot serialization.
src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusCorrelationFilter.cs Marks correlation filter type as DTO for polyglot serialization.
src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusExtensions.cs Adds [AspireExport] for add/configure APIs; adds string-based role assignment overload for polyglot.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.ServiceBus/ValidationAppHost/tsconfig.json Adds TS config for the validation app host.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.ServiceBus/ValidationAppHost/package.json Adds npm scripts/deps for the validation app host.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.ServiceBus/ValidationAppHost/package-lock.json Locks npm dependency graph for the validation app host.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.ServiceBus/ValidationAppHost/apphost.ts Adds a TS AppHost script intended to validate generated exports.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.ServiceBus/ValidationAppHost/apphost.run.json Adds run profile configuration for the validation app host.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.ServiceBus/ValidationAppHost/.aspire/settings.json Adds Aspire CLI settings for the validation app host.
Files not reviewed (1)
  • playground/polyglot/TypeScript/Aspire.Hosting.Azure.ServiceBus/ValidationAppHost/package-lock.json: Language not supported

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 25, 2026

🎬 CLI E2E Test Recordings

The following terminal recordings are available for commit 27c4d4f:

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
CreateEmptyAppHostProject ▶️ View Recording
CreateStartAndStopAspireProject ▶️ View Recording
CreateStartWaitAndStopAspireProject ▶️ View Recording
CreateTypeScriptAppHostWithViteApp ▶️ View Recording
DescribeCommandShowsRunningResources ▶️ View Recording
DetachFormatJsonProducesValidJson ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording
StopAllAppHostsFromAppHostDirectory ❌ Upload failed
StopAllAppHostsFromUnrelatedDirectory ❌ Upload failed
StopNonInteractiveMultipleAppHostsShowsError ▶️ View Recording
StopNonInteractiveSingleAppHost ▶️ View Recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording

📹 Recordings uploaded automatically from CI run #22378908208

@sebastienros sebastienros merged commit fda1b2c into release/13.2 Feb 25, 2026
672 of 679 checks passed
@sebastienros sebastienros deleted the sebros/polyglot-servicebus branch February 25, 2026 05:24
@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Feb 25, 2026
Copilot AI pushed a commit that referenced this pull request Mar 10, 2026
* Add AspireExport coverage for Aspire.Hosting.Azure.ServiceBus

* Fix codegen issues

* Fix other languages tests
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants