Do not use github.com/nspcc-dev/neofs-api-go/v2 where unnecessary#3057
Closed
cthulhu-rider wants to merge 21 commits intomasterfrom
Closed
Do not use github.com/nspcc-dev/neofs-api-go/v2 where unnecessary#3057cthulhu-rider wants to merge 21 commits intomasterfrom
github.com/nspcc-dev/neofs-api-go/v2 where unnecessary#3057cthulhu-rider wants to merge 21 commits intomasterfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3057 +/- ##
==========================================
+ Coverage 22.36% 22.92% +0.56%
==========================================
Files 793 747 -46
Lines 58713 57115 -1598
==========================================
- Hits 13130 13093 -37
+ Misses 44682 43134 -1548
+ Partials 901 888 -13 ☔ View full report in Codecov by Sentry. |
a369d5e to
9aab13c
Compare
Contributor
Author
|
added temp commit "fixing" base branch to run tests manually. Results:
|
It makes no sense to create client just get underlying connection from it. Instead, direct gRPC dial should be used. This inlines `Client.Dial` to keep previous behavior as much as possible (some error texts could change only). URI parser is copy-pasted because it's internalized by the SDK. Even if it'd export it, we are not ready for the upgrade to the latest yet. Starting from here, `cmd/neofs-cli` packages (all CLI apps actually) no longer uses `github.com/nspcc-dev/neofs-api-go/v2` directly which is good considering the upcoming abandonment of it. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Regression from 9ac84e3. Detected by the linter: ``` cmd/neofs-cli/modules/control/shards_dump.go:65:2 ineffassign ineffectual assignment to err cmd/neofs-cli/modules/control/synchronize_tree.go:41:6 ineffassign ineffectual assignment to err ``` Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
This refactors storage node app making it to use gRPC connection to remote nodes without wrappers. The behavior is preserved with some error text added/changed for the better. The only place left will naturally be gone with the next SDK upgrade. One step closer to `github.com/nspcc-dev/neofs-api-go/v2` module deprecation. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
This was the only direct importer of to-be-deprecated `neofs-api-go/v2` module `pkg/local_object_storage` space. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
This will simplify subsequent refactoring with the abandonment of `github.com/nspcc-dev/neofs-api-go/v2` module: gRPC handlers are going to completely replace current `Server` interface definitions from `pkg/services` space. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
8850179 to
56c7d67
Compare
This inlines components previously defined as neofs-api-go `Server` interfaces wrapping each other one-by-one into the gRPC server handlers. The object service is big, and kept for now: it's going to be changed as well soon. In addition to reducing packages, components and code, this will make it easier to deprecate `github.com/nspcc-dev/neofs-api-go/v2` module in the near future. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Use op enum to have one method for all ops. Submit success and duration in one call. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
It's invisible outside anyway. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues b6fdbcc. This inlines one level of recurrent object services into the gRPC server implementation. The behavior is kept. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues f18a8ed. Now sign service is gone. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Split the node abstraction into FS chain and local storage ones. The service works only with these two root subsystems, so increasing the number of abstractions is not expected, while the structure of the real system is reflected better. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues f32a3b8. Now the service is gone. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues a5902bb. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues 4d60cee. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
This will simplify neofs-api-go module deprecation. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues 976e8b2. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues 4ed7f5f. Other ops are going to be changed the same way in future commits. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues 6c09882. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues f36289d. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues 068d746. All these ops are very similar, so refactored in one scope. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Continues 5d69dae. This completes elimination of the recurrent architecture of object requests' handling. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
56c7d67 to
fb1fd87
Compare
Contributor
Author
|
since the main branch is fixed, ive run tests here https://github.com/nspcc-dev/neofs-node/actions/runs/12515101826 |
Member
roman-khimov
left a comment
There was a problem hiding this comment.
- I've looked at the first two patches, they're OK, please move them into a separate PR.
- This PR does much more than needed and it's a BAD thing. We need to go step by step with thing, api-go deprecation first and then all of the other things separately. Not that they're bad, they're mostly for good, but pushing it all into a single PR slows us down considerably. Real team work can't be effective in a setting where you have unexpected massive changes floating around.
Contributor
Author
|
ok, i'll split changes into several PRs |
This was referenced Jan 9, 2025
roman-khimov
added a commit
that referenced
this pull request
Jan 28, 2025
This is yet another extraction from #3057, slightly adjusted. The most controversial thing here is ACL change, but otherwise it tries to use more of protobuf definitions and less of api-go definitions simplifying the structure along the way.
Merged
roman-khimov
added a commit
that referenced
this pull request
Jan 30, 2025
The last chunk from #3057. Less api-go overall, should be the same functionally.
Member
|
Merged in chunks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
self-reminder: check refs in commit messages before merging
a lot of changes, but this will maximally amortize coming update to the latest SDK