Skip to content

Initial placement#3830

Open
cthulhu-rider wants to merge 8 commits intomasterfrom
initial-placement
Open

Initial placement#3830
cthulhu-rider wants to merge 8 commits intomasterfrom
initial-placement

Conversation

@cthulhu-rider
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 104 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.11%. Comparing base (15d4c4a) to head (de597a6).

Files with missing lines Patch % Lines
pkg/services/object/put/distributed.go 72.22% 62 Missing and 13 partials ⚠️
cmd/neofs-cli/modules/container/get.go 0.00% 24 Missing ⚠️
pkg/services/object/put/util.go 60.00% 3 Missing and 1 partial ⚠️
pkg/services/object/put/streamer.go 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3830      +/-   ##
==========================================
+ Coverage   26.02%   26.11%   +0.08%     
==========================================
  Files         675      675              
  Lines       43760    43885     +125     
==========================================
+ Hits        11388    11459      +71     
- Misses      31315    31361      +46     
- Partials     1057     1065       +8     

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

@cthulhu-rider cthulhu-rider force-pushed the initial-placement branch 7 times, most recently from 96f2c39 to a4553c1 Compare February 26, 2026 17:02
@cthulhu-rider cthulhu-rider marked this pull request as ready for review February 26, 2026 17:11
@cthulhu-rider cthulhu-rider force-pushed the initial-placement branch 2 times, most recently from f87d1da to e605908 Compare February 27, 2026 09:02
})
}

initial := t.initialPolicy != nil && (t.sessionSigner != nil || !t.localOnly)
Copy link
Member

Choose a reason for hiding this comment

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

why sessionSigner is special for us?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if it is set, this is definitely the initial placement

@cthulhu-rider cthulhu-rider force-pushed the initial-placement branch 3 times, most recently from 0722ae9 to 2802bc0 Compare March 12, 2026 17:54
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

Changelog. Looks better overall.

return p
}

func (p *PutInitPrm) WithCopiesNumber(cn uint32) *PutInitPrm {
Copy link
Member

Choose a reason for hiding this comment

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

Should be documented as unsupported in changelog.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

This refactoring will help to support initial placement rules
(nspcc-dev/neofs-api#352) which will not apply
to system objects.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Such requests are specific, so it's clearer to handle them in a
separate branch. Also, avoid undefined field values.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
nspcc-dev/neofs-sdk-go@e6342b6...b703a48.

IR performs verification of initial rules against the main ones.

CLI supports initial rules specified in JSON file only for now.

SN allows such policies to be created, but is not yet able to serve
them. This will be supported in future updates.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
IR doesn't currently support such policies, but it's very easy to
support them in advance. It will also be useful for initial policies.

Refs #3592.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Follow nspcc-dev/neofs-api#382.

It is being overwhelmed by initial policy.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Refactoring which will be used to support initial policies.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Follow nspcc-dev/neofs-api#352.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@cthulhu-rider
Copy link
Contributor Author

seems like REST GW integration tests fail due to serialization divergence after nspcc-dev/neofs-sdk-go@32480e3 fix. Updating the SDK in GW should resolve the situation

@roman-khimov
Copy link
Member

REST is to be updated once node is released, yes. Refs. nspcc-dev/neofs-rest-gw#369

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.

3 participants