Skip to content

SDK 15#3606

Merged
roman-khimov merged 7 commits intomasterfrom
sdk15
Oct 2, 2025
Merged

SDK 15#3606
roman-khimov merged 7 commits intomasterfrom
sdk15

Conversation

@roman-khimov
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

❌ Patch coverage is 16.31579% with 159 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.66%. Comparing base (582380b) to head (1a88d82).
⚠️ Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/object/server.go 6.72% 110 Missing and 1 partial ⚠️
pkg/local_object_storage/engine/put.go 18.75% 26 Missing ⚠️
pkg/services/object/put/distributed.go 57.14% 8 Missing and 1 partial ⚠️
cmd/neofs-cli/internal/common/exit.go 0.00% 6 Missing ⚠️
pkg/services/object/acl/v2/service.go 45.45% 6 Missing ⚠️
cmd/neofs-node/meta.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3606      +/-   ##
==========================================
- Coverage   26.69%   26.66%   -0.04%     
==========================================
  Files         655      655              
  Lines       49744    49866     +122     
==========================================
+ Hits        13281    13296      +15     
- Misses      35415    35522     +107     
  Partials     1048     1048              

☔ 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.

@roman-khimov roman-khimov force-pushed the sdk15 branch 2 times, most recently from ba4b131 to 3609481 Compare September 30, 2025 16:12
Copy link
Member

@carpawell carpawell left a comment

Choose a reason for hiding this comment

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

Do we need additional support in neofs-cli?

const (
_ = iota
internal
aclDenied
awaitTimeout
alreadyRemoved
)
var code int
var accessErr = new(sdkstatus.ObjectAccessDenied)
switch {
case errors.Is(err, sdkstatus.ErrServerInternal):
code = internal
case errors.As(err, &accessErr):
code = aclDenied
err = fmt.Errorf("%w: %s", err, accessErr.Reason())
case errors.Is(err, ErrAwaitTimeout) || errors.Is(err, waiter.ErrConfirmationTimeout):
code = awaitTimeout
case errors.Is(err, sdkstatus.ErrObjectAlreadyRemoved):
code = alreadyRemoved
default:
code = internal
}

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Pool depletion cases.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@carpawell
Copy link
Member

carpawell commented Oct 1, 2025

Do we need additional support in neofs-cli?

What about this anyway? Busy and BadRequest look like common statuses that deserve a separate exit code.

@roman-khimov
Copy link
Member Author

We have a lot of other codes as well, but we only check for some specific ones in CLI. I don't have any strict preferences here for now.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov
Copy link
Member Author

Added incomplete/busy codes to CLI.

@roman-khimov roman-khimov requested a review from carpawell October 1, 2025 10:12
| 2 | Object access denied or unauthorized. |
| 3 | Await timeout expired for a certain condition. |
| 4 | Object already removed. |
| 5 | Incomplete success (like partial PUT or SEARCH).|
Copy link
Member

Choose a reason for hiding this comment

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

not aligned now

Copy link
Member Author

Choose a reason for hiding this comment

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

Intentional. It's not worth changing all lines here.

@roman-khimov roman-khimov merged commit 900e0a7 into master Oct 2, 2025
16 of 21 checks passed
@roman-khimov roman-khimov deleted the sdk15 branch October 2, 2025 09:39
@roman-khimov roman-khimov mentioned this pull request Oct 2, 2025
roman-khimov added a commit that referenced this pull request Nov 18, 2025
An omission of #3606.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit that referenced this pull request Nov 18, 2025
An omission of #3606.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
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