Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 1, 2025

Backport of #11734 to release/9.5

/cc @davidfowl @copilot

Customer Impact

While processing parameters for deploy, we don't exclude resources that should be excluded from publish. This runs logic that should not run which sometimes breaks because it shouldn't run and includes more parameters than necessary.

Testing

Automated and manual.

Risk

Low

Regression?

No

Copilot AI and others added 4 commits October 1, 2025 18:22
…ed resources

- Use DistributedApplicationExecutionContextOptions constructor in CollectDependentParameterResourcesAsync
- Copy ServiceProvider from existing execution context when available
- Skip resources excluded from publish using IsExcludedFromPublish()
- Add tests to verify ServiceProvider access and excluded resource filtering

Co-authored-by: davidfowl <[email protected]>
Use the executionContext from constructor instead of creating a new publishExecutionContext

Co-authored-by: davidfowl <[email protected]>
@github-actions
Copy link
Contributor Author

github-actions bot commented Oct 1, 2025

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

Or

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

Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

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

Targeted fix, low risk, Fixing experience of new feature. Approved

This was referenced Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants