Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 3, 2025

Backport of #12603 to release/13.0

/cc @davidfowl @copilot

Customer Impact

Fit an finish. When the pipeline fails it guides users to know what to do next.

Testing

Manual.

Risk

Low

Regression?

No

Copilot AI and others added 7 commits November 3, 2025 01:51
- Modified ConsoleActivityLogger to accept optional commandName in SetFinalResult
- Display help message when pipeline fails with command name
- Updated PipelineCommandBase to pass command name to logger

Co-authored-by: davidfowl <[email protected]>
Store the succeeded value from SetFinalResult in _pipelineSucceeded field
and use !_pipelineSucceeded instead of checking if string contains "PIPELINE FAILED"

Co-authored-by: davidfowl <[email protected]>
Move command name from SetFinalResult parameter to constructor parameter.
This is cleaner since the command name doesn't change throughout the
lifecycle of the logger.

Co-authored-by: davidfowl <[email protected]>
The commandName parameter is always provided from PipelineCommandBase.Name
and should never be null. Changed constructor signature to make it a
required parameter and removed null checks.

Co-authored-by: davidfowl <[email protected]>
Move _finalStatusHeader and _pipelineSucceeded fields to the top with
other private fields for better organization and consistency.

Co-authored-by: davidfowl <[email protected]>
- Changed message to generic "For more details, add --log-level debug/trace to the command."
- Suppress help message when user already passed --log-level debug or trace
- Replaced commandName parameter with isDebugOrTraceLoggingEnabled flag

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

github-actions bot commented Nov 3, 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 -- 12617

Or

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

@davidfowl davidfowl merged commit 4837202 into release/13.0 Nov 3, 2025
296 checks passed
@davidfowl davidfowl deleted the backport/pr-12603-to-release/13.0 branch November 3, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants