Update rad commands for concise output#11773
Conversation
Signed-off-by: Zach Casper <zachcasper@microsoft.com>
Signed-off-by: Zach Casper <zachcasper@microsoft.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #11773 +/- ##
==========================================
- Coverage 51.72% 51.68% -0.05%
==========================================
Files 726 724 -2
Lines 45608 45507 -101
==========================================
- Hits 23591 23520 -71
+ Misses 19793 19765 -28
+ Partials 2224 2222 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Zach Casper <zachcasper@microsoft.com>
Signed-off-by: Zach Casper <zachcasper@microsoft.com>
Signed-off-by: Zach Casper <zachcasper@microsoft.com>
DariuszPorowski
left a comment
There was a problem hiding this comment.
praise: Great standardization! It provides clean and consistent output.
zachcasper
left a comment
There was a problem hiding this comment.
@brooke-hamilton I addressed all of your great comments. There are two main issues:
-
-o behavior. I've chosen not to address the inconsistency in the rad CLI around -o and have instead opened a issue which should resolve this comprehensively. #11853
-
Resource Type identifier format. I've retained the ID format of a resource type as
Radius.Compute/containerssince that is what the user is typing in. We should not create a new identifier format in the CLI. Let me know if I'm missing a control plane ID format for resource types.
Signed-off-by: Zach Casper <zachcasper@microsoft.com>
Resolved conflict in pkg/cli/cmd/resource/delete/delete_test.go by keeping the concise-output behavior (no log on prompt cancel) and adding the new 'Success (force deleted)' test from main, adapted to the rad-outputs log formats. Updated DeleteResource mock expectations to the new 4-arg signature and fixed app delete force-test assertion to match the existing log format.
Signed-off-by: Zach Casper <zachcasper@microsoft.com>
Radius functional test overviewClick here to see the test run details
Test Status⌛ Building Radius and pushing container images for functional tests... |
This pull request standardizes and simplifies log messages across several CLI commands related to applications and environments. The changes focus on making log output more consistent, concise, and aligned with resource identifiers, while also cleaning up unnecessary progress or verbose messages. Corresponding test cases have been updated to match the new output formats.
Standardization of log messages:
Application delete commands now log messages using resource-style identifiers, such as
"Applications.Core/applications/%s deleted"and"Applications.Core/applications/%s not found", instead of more verbose or variable messages. [1] [2] [3] [4] [5] [6]Environment create, delete, and update commands (including preview variants) now use consistent messages like
"Applications.Core/environments/%s created","Applications.Core/environments/%s deleted","Applications.Core/environments/%s updated", and their"Radius.Core/environments/%s ..."equivalents for preview commands. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Removal of unnecessary or redundant log output:
Test updates for new log formats:
These changes improve the clarity and consistency of CLI output, making it easier for users to understand the results of their actions and for automated tools to parse log output.# Description
Type of change
Fixes: #11769
Contributor checklist
Please verify that the PR meets the following requirements, where applicable: