Skip to content

Add [Experimental] attribute to WithCompactResourceNaming API#14583

Merged
mitchdenny merged 1 commit intorelease/13.2from
copilot/add-experimental-attribute-api
Feb 23, 2026
Merged

Add [Experimental] attribute to WithCompactResourceNaming API#14583
mitchdenny merged 1 commit intorelease/13.2from
copilot/add-experimental-attribute-api

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Description

Marks the WithCompactResourceNaming() API introduced in #14442 as experimental with diagnostic ID ASPIREACANAMING001, following the existing naming convention (e.g., ASPIREACADOMAINS001).

  • Added [Experimental("ASPIREACANAMING001", UrlFormat = "https://aka.ms/aspire/diagnostics/{0}")] to WithCompactResourceNaming
  • Added #pragma warning disable in test file that calls the API

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
    • No
  • Does the change require an update in our Aspire docs?
    • Yes
    • No

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add experimental attribute to new API with unique number Add [Experimental] attribute to WithCompactResourceNaming API Feb 19, 2026
Copilot AI requested a review from eerhardt February 19, 2026 20:55
Copilot AI requested a review from eerhardt February 19, 2026 21:14
@eerhardt eerhardt changed the base branch from main to release/13.2 February 20, 2026 17:16
Co-authored-by: eerhardt <8291187+eerhardt@users.noreply.github.com>
@eerhardt eerhardt force-pushed the copilot/add-experimental-attribute-api branch from 897c2cd to 9841520 Compare February 20, 2026 17:19
@github-actions
Copy link
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 -- 14583

Or

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

@eerhardt eerhardt marked this pull request as ready for review February 20, 2026 17:19
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

This PR marks the recently introduced WithCompactResourceNaming() API as experimental by adding the [Experimental] attribute with diagnostic ID ASPIREACANAMING001. This follows the established pattern for Azure Container App experimental APIs (similar to ASPIREACADOMAINS001 for custom domains).

Changes:

  • Added [Experimental("ASPIREACANAMING001", UrlFormat = "https://aka.ms/aspire/diagnostics/{0}")] attribute to the WithCompactResourceNaming extension method
  • Added #pragma warning disable ASPIREACANAMING001 to test file AzureContainerAppsTests.cs to suppress warnings for test code using the experimental API
  • Added using System.Diagnostics.CodeAnalysis directive to support the Experimental attribute

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppExtensions.cs Added [Experimental] attribute to WithCompactResourceNaming() method and required using statement
tests/Aspire.Hosting.Azure.Tests/AzureContainerAppsTests.cs Added pragma directive to suppress experimental API warning in unit tests

@github-actions
Copy link
Contributor

🎬 CLI E2E Test Recordings

The following terminal recordings are available for commit 9841520:

Test Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ 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
CreateEmptyAppHostProject ▶️ View Recording
CreateStartAndStopAspireProject ▶️ View Recording
CreateStartWaitAndStopAspireProject ▶️ View Recording
CreateTypeScriptAppHostWithViteApp ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
ResourcesCommandShowsRunningResources ▶️ View Recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording

📹 Recordings uploaded automatically from CI run #22233861262

@mitchdenny mitchdenny merged commit d131e93 into release/13.2 Feb 23, 2026
348 checks passed
@mitchdenny mitchdenny deleted the copilot/add-experimental-attribute-api branch February 23, 2026 20:16
@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Feb 23, 2026
Copilot AI added a commit that referenced this pull request Mar 10, 2026
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: eerhardt <8291187+eerhardt@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.

5 participants