Fix channel ordering in aspire update - staging before daily#12760
Merged
Fix channel ordering in aspire update - staging before daily#12760
Conversation
Co-authored-by: eerhardt <8291187+eerhardt@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Aspire.Cli to list staging before pr-* in aspire update
Fix channel ordering in aspire update - staging before daily
Nov 6, 2025
eerhardt
approved these changes
Nov 6, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the channel ordering in the Aspire CLI packaging service to ensure the staging channel appears in the correct position when enabled. Previously, the staging channel was added after daily and PR channels; now it is correctly positioned between stable and daily channels.
Key Changes:
- Modified channel list construction to build incrementally rather than using collection initialization
- Added staging channel insertion point after stable, before daily and PR channels
- Added comprehensive tests verifying channel ordering in both enabled and disabled states
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Aspire.Cli/Packaging/PackagingService.cs | Refactored GetChannelsAsync to build channel list incrementally, ensuring staging channel appears between stable and daily when enabled |
| tests/Aspire.Cli.Tests/Packaging/PackagingServiceTests.cs | Added two tests verifying channel ordering with staging enabled and disabled, including assertions for multiple PR channels |
mitchdenny
approved these changes
Nov 6, 2025
Member
|
This doesn't need to go into release/13.0. We can just keep this in |
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12760Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12760" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes the ordering of channels displayed in
aspire update. Thestagingchannel now appears afterstableand beforedaily, instead of appearing after allpr-*channels.Before:
After:
Changes
PackagingService.GetChannelsAsync(): Restructured channel list construction to insertstagingbetweenstableanddailyFixes #12797
Checklist
<remarks />and<code />elements on your triple slash comments?doc-ideatemplatebreaking-changetemplatediagnostictemplateOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.