Skip to content

Fix incomplete status#3679

Merged
roman-khimov merged 5 commits intomasterfrom
incomplete-fix
Nov 18, 2025
Merged

Fix incomplete status#3679
roman-khimov merged 5 commits intomasterfrom
incomplete-fix

Conversation

@roman-khimov
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Nov 18, 2025

Codecov Report

❌ Patch coverage is 3.22581% with 60 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.36%. Comparing base (0614c1a) to head (5649499).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/object/server.go 0.00% 25 Missing ⚠️
cmd/neofs-cli/modules/object/delete.go 0.00% 8 Missing ⚠️
cmd/neofs-cli/internal/common/exit.go 0.00% 7 Missing ⚠️
cmd/neofs-cli/modules/object/put.go 0.00% 6 Missing ⚠️
cmd/neofs-cli/modules/object/search.go 0.00% 6 Missing ⚠️
pkg/services/object/delete/exec.go 0.00% 4 Missing ⚠️
cmd/internal/cmderr/errors.go 0.00% 2 Missing ⚠️
pkg/services/object/delete/util.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3679      +/-   ##
==========================================
+ Coverage   27.34%   27.36%   +0.02%     
==========================================
  Files         658      658              
  Lines       41693    41705      +12     
==========================================
+ Hits        11400    11413      +13     
- Misses      29229    29232       +3     
+ Partials     1064     1060       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov roman-khimov marked this pull request as ready for review November 18, 2025 15:52
@roman-khimov roman-khimov added this to the v0.50.0 milestone Nov 18, 2025
switch {
case errors.Is(err, sdkstatus.ErrServerInternal):
code = internal
hide = true // Everything relevant is printed by commands already.
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be for Incomplete case?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, fixed.

We have some data in this case that is printed, so we don't need error output,
but we still need to return proper exit code.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Fixes #3678. 3f4bade wasn't sufficient,
messages need to be constructed correctly with all relevant data.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
e0fc6ac wasn't sufficient, we need more data
in messages returned.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
An omission of #3606.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov roman-khimov merged commit a2812e8 into master Nov 18, 2025
17 of 22 checks passed
@roman-khimov roman-khimov deleted the incomplete-fix branch November 18, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants