Conversation
kizuna-lek
commented
Feb 27, 2026
- close: [Improvement] Report the execution result of kbagent when the action fails #10062
|
Auto Cherry-pick Instructions |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10063 +/- ##
==========================================
- Coverage 51.38% 51.31% -0.07%
==========================================
Files 540 540
Lines 58973 58985 +12
==========================================
- Hits 30306 30271 -35
- Misses 25688 25747 +59
+ Partials 2979 2967 -12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| return s.encode(nil, err), nil | ||
| } | ||
| resp, err := s.handleRequest(ctx, req) | ||
| result := string(resp) |
There was a problem hiding this comment.
kubeblocks/pkg/kbagent/service/action_utils.go
Lines 104 to 126 in 65dfc72
result would be nil if an error occurred? (line 123)
There was a problem hiding this comment.
yes, result maybe nil. but string(resp) works because resp has a known type ([]byte)
There was a problem hiding this comment.
I mean, you don't get any useful information because result is nil.
|
Check my previous PR #9454. Do you want the similar thing? |
yes, report result would be helpful for debug, especially in scenarios where action execution times out |
|
For now, if an action exits normally:
If we want to align with API definitions, we should always log stderr and never log stdout? @leon-ape what's your point? |