-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not use github.com/nspcc-dev/neofs-api-go/v2
where unnecessary
#3057
base: master
Are you sure you want to change the base?
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
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Use op enum to have one method for all ops. Submit success and duration in one call. Signed-off-by: Leonard Lyubich <[email protected]>
It's invisible outside anyway. Signed-off-by: Leonard Lyubich <[email protected]>
Continues b6fdbcc. This inlines one level of recurrent object services into the gRPC server implementation. The behavior is kept. Signed-off-by: Leonard Lyubich <[email protected]>
Continues f18a8ed. Now sign service is gone. Signed-off-by: Leonard Lyubich <[email protected]>
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 <[email protected]>
Continues f32a3b8. Now the service is gone. Signed-off-by: Leonard Lyubich <[email protected]>
Continues a5902bb. Signed-off-by: Leonard Lyubich <[email protected]>
Continues 4d60cee. Signed-off-by: Leonard Lyubich <[email protected]>
This will simplify neofs-api-go module deprecation. Signed-off-by: Leonard Lyubich <[email protected]>
Continues 976e8b2. Signed-off-by: Leonard Lyubich <[email protected]>
Continues 4ed7f5f. Other ops are going to be changed the same way in future commits. Signed-off-by: Leonard Lyubich <[email protected]>
Continues 6c09882. Signed-off-by: Leonard Lyubich <[email protected]>
Continues f36289d. Signed-off-by: Leonard Lyubich <[email protected]>
Continues 068d746. All these ops are very similar, so refactored in one scope. Signed-off-by: Leonard Lyubich <[email protected]>
Continues 5d69dae. This completes elimination of the recurrent architecture of object requests' handling. Signed-off-by: Leonard Lyubich <[email protected]>
56c7d67
to
fb1fd87
Compare
since the main branch is fixed, ive run tests here https://github.com/nspcc-dev/neofs-node/actions/runs/12515101826 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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.
ok, i'll split changes into several PRs |
self-reminder: check refs in commit messages before merging
a lot of changes, but this will maximally amortize coming update to the latest SDK