Skip to content

Refine polyglot exports for Aspire.Hosting.Azure.Redis - #15010

Merged
Sébastien Ros (sebastienros) merged 1 commit into
release/13.2from
sebros/polyglot-redis
Mar 7, 2026
Merged

Sébastien Ros (sebastienros) merged 1 commit into
release/13.2from
sebros/polyglot-redis

Conversation

@sebastienros

@sebastienros Sébastien Ros (sebastienros) commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Adds and completes AspireExport / AspireExportIgnore coverage for Aspire.Hosting.Azure.Redis.
  • Updates the TypeScript ValidationAppHost and regenerated SDK for the Azure Managed Redis hosting integration.
  • Keeps validation limited to targeted build plus TypeScript compilation, without runtime execution.

Copilot AI review requested due to automatic review settings March 6, 2026 17:48
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

🚀 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 -- 15010

Or

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves polyglot (ATS) export surface for the Aspire.Hosting.Azure.Redis integration and updates the TypeScript validation app host + regenerated SDK to reflect the new exported properties/capabilities.

Changes:

  • Export AzureManagedRedisResource properties to polyglot app hosts ([AspireExport(ExposeProperties = true)]) while explicitly ignoring non-polyglot-friendly members.
  • Expand the TypeScript ValidationAppHost to cover additional configuration paths and newly-exported properties.
  • Regenerate the TypeScript .modules/aspire.ts SDK for the Azure Redis validation app host.

Reviewed changes

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

File Description
src/Aspire.Hosting.Azure.Redis/AzureManagedRedisResource.cs Exposes resource properties to ATS and adds AspireExportIgnore for members not available to polyglot app hosts.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.Redis/ValidationAppHost/apphost.ts Updates the validation app host to exercise multiple Redis resources and exported properties.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.Redis/ValidationAppHost/.modules/aspire.ts Regenerated TS SDK reflecting updated export surface (new handles/types/properties).

@github-actions

github-actions Bot commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

🎬 CLI E2E Test Recordings

The following terminal recordings are available for commit 10391a1:

Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
AddPackageWhileAppHostRunningDetached ▶️ View Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_DefaultSelection_InstallsSkillOnly ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ 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 ▶️ View Recording
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 ❌ Upload failed
StopAllAppHostsFromAppHostDirectory ▶️ View Recording
StopAllAppHostsFromUnrelatedDirectory ▶️ View Recording
StopNonInteractiveMultipleAppHostsShowsError ▶️ View Recording
StopNonInteractiveSingleAppHost ▶️ View Recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording
TypeScriptAppHostWithProjectReferenceIntegration ▶️ View Recording

📹 Recordings uploaded automatically from CI run #22775171920

/// </summary>
/// <remarks>This property is not available in polyglot app hosts.</remarks>
[AspireExportIgnore]
public BicepOutputReference NameOutputReference => new("name", this);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why?

@sebastienros
Sébastien Ros (sebastienros) merged commit 320d85e into release/13.2 Mar 7, 2026
765 of 768 checks passed
@sebastienros
Sébastien Ros (sebastienros) deleted the sebros/polyglot-redis branch March 7, 2026 01:59
@dotnet-policy-service dotnet-policy-service Bot added this to the 13.2 milestone Mar 7, 2026
Copilot AI pushed a commit that referenced this pull request Mar 10, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 6, 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