Skip to content

Backmerge release/13.2 into main#14719

Merged
radical merged 22 commits into
mainfrom
merge/release-13.2-to-main
Feb 26, 2026
Merged

Backmerge release/13.2 into main#14719
radical merged 22 commits into
mainfrom
merge/release-13.2-to-main

Conversation

@joperezr

Copy link
Copy Markdown
Member

Description

Manual backmerge of release/13.2 into main to resolve conflicts from the automated backmerge workflow (fixes #14703).

⚠️ Merge Strategy

This PR should NOT be squashed. It must be merged using a merge commit to preserve the full release/13.2 history and avoid future merge conflicts. I will handle the merging.

Conflicts Resolved

1. tests/Aspire.Cli.EndToEnd.Tests/AgentCommandTests.cs — Content conflict (trivial whitespace)

2. tests/Shared/Hex1bTestHelpers.cs — Add/add conflict (identical content)

  • Cause: Both branches independently created the same shared Hex1bTestHelpers file as part of the E2E test centralization. The file content is identical on both sides; git could not auto-merge the trailing closing brace.
  • Resolution: Kept the single closing brace. No content difference between the two versions.

3. tests/Aspire.Cli.EndToEnd.Tests/DescribeCommandTests.cs — Modify/delete

  • Cause: A prior backmerge (7bcaa30) incorrectly dropped this file from main. That merge had a rename conflict — main's Centralize some E2E test code #14369 modified ResourcesCommandTests.cs while release's CLI: Grouped help, command renames, and ergonomics cleanup #14599 renamed it to DescribeCommandTests.cs — and the resolution deleted the file entirely. Then release's Backport E2E test refactoring #14667 modified the renamed file with centralized test helpers, producing this new modify/delete conflict.
  • Resolution: Accepted the file from release/13.2. It contains a valid E2E test (DescribeCommandShowsRunningResources) for the aspire describe command, and already uses the centralized CliE2ETestHelpers.CreateTestTerminal() helper consistent with all other E2E tests on main.

adamint and others added 22 commits February 24, 2026 21:00
…ings dialog (#14407) (#14654)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add backup/restore logic matching aspire update --self approach:
- Backup existing CLI executable before extraction with timestamp
- Restore from backup if extraction fails
- Clean up old backup files on successful extraction

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
…riber support (#14512)

Add server-side plumbing for TUI monitor support (13.3 preparation):

- BackchannelLoggerProvider: Add circular replay buffer (1000 entries) with
  pub-sub subscriber model. Subscribe() atomically returns a snapshot of
  buffered entries plus a per-subscriber channel for live entries, enabling
  multiple concurrent TUI clients without entry loss or draining.

- AppHostRpcTarget: Add GetAppHostLogEntriesAsync() that replays buffered
  entries then streams live entries via per-subscriber channel. Uses
  subscribe/unsubscribe lifecycle with proper cleanup in finally block.

- AuxiliaryBackchannelRpcTarget: Add GetAppHostLogEntriesAsync() delegate
  that forwards to AppHostRpcTarget for auxiliary backchannel clients.

- DistributedApplicationBuilder: Register BackchannelLoggerProvider as
  concrete singleton with ILoggerProvider forwarding, enabling direct
  resolution by AppHostRpcTarget.

- Tests: 4 new tests covering replay buffer fill, eviction at capacity,
  snapshot isolation, and concurrent subscriber fan-out.

Co-authored-by: Mitch Denny <mitch@mitchdeny.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add aspire start shortcut for detached AppHost launch

- Add detached AppHost launch to 'aspire start' when no resource specified
- Share detached launch behavior between start and run via AppHostLauncher
- Register --no-build option on StartCommand and forward to child process
- Restore JSON-safe detached output (human-readable to stderr for --format json)
- Restore detached child diagnostics (--log-file generation and error surfacing)
- Forward --no-build from 'aspire run --detach' to the detached child process

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

* Address review feedback: refactor AppHostLauncher, fix string references

- Make TimeProvider required (registered in DI as TimeProvider.System)
- Add period to log message (nit)
- Use option Name properties instead of hardcoded strings for --project/--isolated
- Extract BuildChildProcessArgs, StopExistingInstancesAsync, HandleLaunchFailure,
  DisplayLaunchResultAsync, and LaunchAndWaitForBackchannelAsync as separate methods
- Add s_projectOption to AppHostLauncher for shared use
- Display error when project not found (item #4)
- Fix string references: use SharedCommandStrings for relocated strings
- Fix async void to async Task on DisplayLaunchResultAsync

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The /test-scenario workflow dispatched exploratory testing tasks to
dotnet/aspire-playground via the Copilot agent. This infrastructure is
being superseded by GitHub's built-in agentic workflows feature which
provides similar capabilities natively.

Removes:
- tests/agent-scenarios/ directory (6 scenarios + README)
- .github/workflows/test-scenario.yml
- .github/instructions/test-scenario-prompt.instructions.md
- Pattern reference in AGENTS.md

Co-authored-by: Mitch Denny <mitch@mitchdeny.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add AspireExport coverage for Aspire.Hosting.Azure.ServiceBus

* Fix codegen issues

* Fix other languages tests
* Rename --project to --apphost

* Don't show fallback in help

* Update resource files and add tests
* Add AspireExport coverage for Aspire.Hosting.Azure.ServiceBus

* Fix codegen issues

* Add polyglot coverage for Azure Functions

* Update src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs

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

* Update src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…#14547)

* Suppress error notifications for extension cancellation in CLI

When a user cancels an input prompt in the VS Code extension, the CLI's
ExtensionBackchannel throws ExtensionOperationCanceledException. Previously,
the ExtensionInteractionService catch blocks in ConfirmAsync,
PromptForSelectionAsync, and PromptForSelectionsAsync would call DisplayError
before re-throwing, causing an error notification in VS Code even though
the cancellation was user-initiated.

Changes:
- ExtensionInteractionService: Skip DisplayError when the exception is
  ExtensionOperationCanceledException in prompt catch blocks and the
  task channel reader.
- Program.cs: Add ExtensionOperationCanceledException to the global
  handler's cancellation suppression check as a safety net.

* Update src/Aspire.Cli/Program.cs

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…on conflicts (#14659)

* Fix SecurityRule name generation to include "to" and to add an index on conflicts

Also update the test instructions in AGENTS.md to ensure agents don't use the dotnet test --filter syntax becuase that doesn't work. microsoft/testfx#7160

* Update src/Aspire.Hosting.Azure.Network/AzureVirtualNetworkExtensions.cs

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…anup (#14683)

* Add WithPurgeTask to Azure Container Registry for scheduled image cleanup

Add a WithPurgeTask extension method on IResourceBuilder<AzureContainerRegistryResource>
that provisions a ContainerRegistryTask with a timer-triggered acr purge command to
automatically remove old/unused container images on a schedule.

Features:
- Cron schedule validation using NCrontab
- Configurable filter, age threshold (--ago), and keep count
- Support for multiple purge tasks per registry with auto-indexed naming
- Custom task name support with duplicate detection
- Go-style duration formatting for the --ago parameter (e.g., 2d3h6m)

Also adds XML documentation for the GetAzureContainerRegistry method and tests for both
WithPurgeTask and GetAzureContainerRegistry.

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

* Address PR feedback: fix async tests, improve cron error message, use XML docs

- Remove async from 3 GetAzureContainerRegistry tests (no awaits)
- Wrap CrontabSchedule.Parse in try-catch with descriptive ArgumentException
- Convert multi-line comment on FormatAgo to XML doc summary

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Address 3 High severity Component Governance alerts:

- CVE-2026-22610: XSS vulnerability in @angular/compiler and @angular/core
  21.0.3. The Angular Template Compiler fails to recognize href and
  xlink:href attributes of SVG <script> elements as Resource URL context,
  enabling bypass of built-in sanitization. Fixed in 21.0.7.
  Bumps all @angular/* packages from ^21.0.3 to ^21.0.7.

- DOTNET-Security-10.0: .NET SDK 10.0.102 contains known security
  vulnerabilities patched in 10.0.103. Updated global.json to require
  10.0.103.

References:
- GHSA-jrmj-c5cx-3cw6
- https://aka.ms/dotnet-security-notes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix ATS diff workflow

It requires the polyglot flag to be set

* Update .github/workflows/generate-ats-diffs.yml

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add role assignent for storage polyglot

* Create enums for built in Azure roles

* Improve testing
…-13.2-to-main

# Conflicts:
#	tests/Aspire.Cli.EndToEnd.Tests/AgentCommandTests.cs
#	tests/Aspire.Cli.EndToEnd.Tests/DescribeCommandTests.cs
#	tests/Shared/Hex1bTestHelpers.cs
@joperezr
joperezr requested a review from mitchdenny as a code owner February 26, 2026 04:33
Copilot AI review requested due to automatic review settings February 26, 2026 04:33
@github-actions

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 -- 14719

Or

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

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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@github-actions

Copy link
Copy Markdown
Contributor

🎬 CLI E2E Test Recordings

The following terminal recordings are available for commit 93a08e4:

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 ▶️ View Recording
StopAllAppHostsFromUnrelatedDirectory ▶️ View Recording
StopNonInteractiveMultipleAppHostsShowsError ▶️ View Recording
StopNonInteractiveSingleAppHost ▶️ View Recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording

📹 Recordings uploaded automatically from CI run #22427970759

@radical
radical merged commit ab42387 into main Feb 26, 2026
344 checks passed
@radical
radical deleted the merge/release-13.2-to-main branch February 26, 2026 05:21
@dotnet-policy-service dotnet-policy-service Bot added this to the 13.3 milestone Feb 26, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 28, 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.

[Backmerge] Merge conflicts between release/13.2 and main

10 participants