Skip to content

Initial placement#3830

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

Initial placement#3830
cthulhu-rider wants to merge 6 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 13.80597% with 231 lines in your changes missing coverage. Please review.
✅ Project coverage is 25.76%. Comparing base (db0bf32) to head (e605908).

Files with missing lines Patch % Lines
pkg/services/object/put/distributed.go 10.55% 190 Missing and 5 partials ⚠️
cmd/neofs-cli/modules/container/get.go 0.00% 24 Missing ⚠️
pkg/services/object/put/ec.go 42.85% 4 Missing and 4 partials ⚠️
pkg/services/object/put/util.go 50.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3830      +/-   ##
==========================================
- Coverage   25.83%   25.76%   -0.08%     
==========================================
  Files         669      669              
  Lines       43074    43287     +213     
==========================================
+ Hits        11127    11151      +24     
- Misses      30930    31114     +184     
- Partials     1017     1022       +5     

☔ 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
Copy link
Contributor Author

rdy overall. The only thing left from me is MaxReplicas tests

@cthulhu-rider cthulhu-rider marked this pull request as ready for review February 26, 2026 17:11
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>
Except policies with set `max_replicas` which will be supported
separately. Requests to such containers are denied for now.

Requests with `copies_number` now behave like ones with initial
`max_replicas`.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Support `max_replicas` and `prefer_local` settings.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
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.

1 participant