Skip to content

Feat/revisioned containers V2 - #4197

Merged
roman-khimov merged 4 commits into
masterfrom
feat/revisioned-containers-v2
Sep 29, 2026
Merged

roman-khimov merged 4 commits into
masterfrom
feat/revisioned-containers-v2

Conversation

@carpawell

Copy link
Copy Markdown
Member

No description provided.

@carpawell
carpawell force-pushed the feat/revisioned-containers-v2 branch 2 times, most recently from b956969 to 123aae9 Compare September 28, 2026 16:51
@carpawell
carpawell marked this pull request as ready for review September 28, 2026 16:51
@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 6.12245% with 46 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.61%. Comparing base (129e800) to head (d45940b).

Files with missing lines Patch % Lines
cmd/neofs-cli/modules/container/set_eacl.go 0.00% 19 Missing ⚠️
pkg/services/container/server.go 18.75% 13 Missing ⚠️
pkg/services/object/common.go 0.00% 9 Missing ⚠️
pkg/services/object/server.go 0.00% 3 Missing ⚠️
cmd/neofs-cli/modules/container/get.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4197      +/-   ##
==========================================
- Coverage   31.68%   31.61%   -0.07%     
==========================================
  Files         678      677       -1     
  Lines       41540    41560      +20     
==========================================
- Hits        13160    13140      -20     
- Misses      28380    28420      +40     

☔ View full report in Codecov by Harness.
📢 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.

@carpawell
carpawell force-pushed the feat/revisioned-containers-v2 branch from 123aae9 to 9581a26 Compare September 28, 2026 17:02
@carpawell

Copy link
Copy Markdown
Member Author

Tests failed cause it is now required to have a revision attached, but tests do not use the new container-revision flag for neofs-cli. Not sure whether it should be set implicitly to 1 by the cli, or whether tests should just be adjusted.

@roman-khimov

Copy link
Copy Markdown
Member

CLI should check for the current version and attach whatever is appropriate by default (if not overridden by the new flag).

@roman-khimov roman-khimov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Much simpler this way. Fix tests ASAP.

if err != nil {
return fmt.Errorf("fetching container from FS chain: %w", err)
}
if srvCnrRev := cnr.Revision(); clientCnrRev != srvCnrRev {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It just occurred to me that this check can be made even stronger if revision is to be passed to contract call (and checked at the contract state level). But that's for the future.

@carpawell
carpawell force-pushed the feat/revisioned-containers-v2 branch from 9581a26 to b632f07 Compare September 28, 2026 21:58
Signed-off-by: Pavel Karpy <carpawell@nspcc.io>
It is stated in API.

Signed-off-by: Pavel Karpy <carpawell@nspcc.io>
bf79cba524a96b75bfdc96c4a8fc549729f5e033 was used. It is done mainly to bring
revisioned containers.

Signed-off-by: Pavel Karpy <carpawell@nspcc.io>
6c1b768 was reconsidered in API: container
revision is now part of requests' bodies, not an X-Header. For container
operations (only for SetEACL currently) it is required for clients v2.27+, for
object operations (PUT, DELETE, SEARCH) it is an option.

Signed-off-by: Pavel Karpy <carpawell@nspcc.io>
@carpawell
carpawell force-pushed the feat/revisioned-containers-v2 branch from b632f07 to d45940b Compare September 28, 2026 22:59
@roman-khimov
roman-khimov merged commit dd2c14f into master Sep 29, 2026
20 of 22 checks passed
@roman-khimov
roman-khimov deleted the feat/revisioned-containers-v2 branch September 29, 2026 05:57
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