Skip to content

Fix staging feed URL after org rename to microsoft/aspire - #15720

Merged
Jose Perez Rodriguez (joperezr) merged 1 commit into
release/13.2from
fix/staging-feed-url-org-rename
Mar 31, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 1 commit into
release/13.2from
fix/staging-feed-url-org-rename

Conversation

@joperezr

Copy link
Copy Markdown
Member

Description

Fix the staging channel feed URL after the repository migration from dotnet/aspire to microsoft/aspire.

The DARC-published feed prefix changed from darc-pub-dotnet-aspire-{hash} to darc-pub-microsoft-aspire-{hash} as part of the org rename. This updates the feed URL template in PackagingService.GetStagingFeedUrl() and the corresponding test assertions so the staging channel correctly resolves packages from the new feed.

Changes:

  • src/Aspire.Cli/Packaging/PackagingService.cs — URL template and comment
  • tests/Aspire.Cli.Tests/Packaging/PackagingServiceTests.cs — Two test URLs
  • tests/Aspire.Cli.Tests/Packaging/PackageChannelTests.cs — One test URL

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
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

…/aspire

The darc-pub feed prefix changed from darc-pub-dotnet-aspire to
darc-pub-microsoft-aspire when the repository moved to the microsoft
org. Update the feed URL template and corresponding test assertions.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings March 30, 2026 23:54
@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/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15720

Or

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

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

Updates Aspire CLI’s staging channel feed URL template to reflect the repo migration from dotnet/aspire to microsoft/aspire, ensuring staging resolves packages from the correct DARC-published Azure DevOps feed.

Changes:

  • Update PackagingService.GetStagingFeedUrl() to use the new darc-pub-microsoft-aspire-{hash} feed prefix.
  • Update unit tests to assert the new staging feed URLs.
  • Update the inline URL template comment to match the new prefix.

Reviewed changes

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

File Description
src/Aspire.Cli/Packaging/PackagingService.cs Switches staging feed URL prefix to darc-pub-microsoft-aspire-* (and updates the nearby template comment).
tests/Aspire.Cli.Tests/Packaging/PackagingServiceTests.cs Updates expected staging feed override URLs in tests.
tests/Aspire.Cli.Tests/Packaging/PackageChannelTests.cs Updates expected staging feed URL used in source details test.

Comment on lines 126 to 128
// Extract commit hash from assembly version to build staging feed URL
// Staging feed URL template: https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-aspire-{commitHash}/nuget/v3/index.json
// Staging feed URL template: https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-microsoft-aspire-{commitHash}/nuget/v3/index.json
var assembly = Assembly.GetExecutingAssembly();

Copilot AI Mar 30, 2026

Copy link

Choose a reason for hiding this comment

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

The comment describes a {commitHash} placeholder, but the implementation truncates the hash to 8 characters (truncatedHash). Update the template/comment to match the actual behavior (e.g., mention the 8-char prefix) so future readers don’t assume the full hash is used.

Copilot uses AI. Check for mistakes.
@github-actions

Copy link
Copy Markdown
Contributor

🎬 CLI E2E Test Recordings — 52 recordings uploaded (commit 6c9602f)

View recordings
Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
AddPackageWhileAppHostRunningDetached ▶️ View Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_DefaultSelection_InstallsSkillOnly ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
AspireAddPackageVersionToDirectoryPackagesProps ▶️ View Recording
AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View Recording
Banner_DisplayedOnFirstRun ▶️ View Recording
Banner_DisplayedWithExplicitFlag ▶️ View Recording
CertificatesClean_RemovesCertificates ▶️ View Recording
CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate ▶️ View Recording
CertificatesTrust_WithUntrustedCert_TrustsCertificate ▶️ View Recording
ConfigSetGet_CreatesNestedJsonFormat ▶️ View Recording
CreateAndRunAspireStarterProject ▶️ View Recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
CreateAndRunEmptyAppHostProject ▶️ View Recording
CreateAndRunJsReactProject ▶️ View Recording
CreateAndRunPythonReactProject ▶️ View Recording
CreateAndRunTypeScriptEmptyAppHostProject ▶️ View Recording
CreateAndRunTypeScriptStarterProject ▶️ View Recording
CreateStartAndStopAspireProject ▶️ 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
GlobalMigration_HandlesCommentsAndTrailingCommas ▶️ View Recording
GlobalMigration_HandlesMalformedLegacyJson ▶️ View Recording
GlobalMigration_PreservesAllValueTypes ▶️ View Recording
GlobalMigration_SkipsWhenNewConfigExists ▶️ View Recording
GlobalSettings_MigratedFromLegacyFormat ▶️ View Recording
InitTypeScriptAppHost_AugmentsExistingViteRepoAtRoot ▶️ View Recording
InvalidAppHostPathWithComments_IsHealedOnRun ▶️ View Recording
LegacySettingsMigration_AdjustsRelativeAppHostPath ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
PsFormatJsonOutputsOnlyJsonToStdout ▶️ View Recording
PublishWithDockerComposeServiceCallbackSucceeds ▶️ View Recording
RestoreGeneratesSdkFiles ▶️ View Recording
RunFromParentDirectory_UsesExistingConfigNearAppHost ▶️ View Recording
RunWithMissingAwaitShowsHelpfulError ▶️ 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
TypeScriptAppHostWithProjectReferenceIntegration ▶️ View Recording

📹 Recordings uploaded automatically from CI run #23773495610

@joperezr
Jose Perez Rodriguez (joperezr) merged commit 14bf8c4 into release/13.2 Mar 31, 2026
254 of 257 checks passed
@joperezr
Jose Perez Rodriguez (joperezr) deleted the fix/staging-feed-url-org-rename branch March 31, 2026 02:52
@github-actions github-actions Bot locked and limited conversation to collaborators May 15, 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.

4 participants