kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

chore: report result when action fails

Open kizuna-lek opened this issue 9 months ago • 7 comments

  • close: #10062

kizuna-lek avatar Feb 27 '26 07:02 kizuna-lek

Auto Cherry-pick Instructions

Usage:
  - /nopick: Not auto cherry-pick when PR merged.
  - /pick: release-x.x [release-x.x]: Auto cherry-pick to the specified branch when PR merged.

Example:
  - /nopick
  - /pick release-1.1

apecloud-bot avatar Feb 27 '26 07:02 apecloud-bot

Codecov Report

:x: Patch coverage is 55.55556% with 8 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 51.31%. Comparing base (ea54720) to head (ee670af). :warning: Report is 53 commits behind head on main.

Files with missing lines Patch % Lines
pkg/kbagent/service/action_utils.go 55.55% 6 Missing and 2 partials :warning:
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     
Flag Coverage Δ
unittests 51.31% <55.55%> (-0.07%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Feb 27 '26 07:02 codecov[bot]

Check my previous PR https://github.com/apecloud/kubeblocks/pull/9454. Do you want the similar thing?

cjc7373 avatar Feb 28 '26 08:02 cjc7373

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

kizuna-lek avatar Feb 28 '26 08:02 kizuna-lek

For now, if an action exits normally:

  • stdout is logged
  • stderr is not logged

If we want to align with API definitions, we should always log stderr and never log stdout? @leon-ape what's your point?

cjc7373 avatar Mar 04 '26 08:03 cjc7373

For now, if an action exits normally:

  • stdout is logged
  • stderr is not logged

If we want to align with API definitions, we should always log stderr and never log stdout? @leon-ape what's your point?

+1, it is reasonable for general action calls.

leon-ape avatar Mar 10 '26 06:03 leon-ape

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment

github-actions[bot] avatar Apr 27 '26 00:04 github-actions[bot]