Skip to content

Fix LINK in slicer#725

Merged
cthulhu-rider merged 6 commits intomasterfrom
slicer-tests
Jul 15, 2025
Merged

Fix LINK in slicer#725
cthulhu-rider merged 6 commits intomasterfrom
slicer-tests

Conversation

@cthulhu-rider
Copy link
Copy Markdown
Contributor

@cthulhu-rider cthulhu-rider commented Jul 14, 2025

detected unexpectedly in nspcc-dev/neofs-node#3461

All objects must be under payload len limit, linker is no exception.
Moreover, f5ffd70 added check for this.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
One of splitting tests never actually done splitting before. Now it does.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
In these tests, only relative payload len is important, not the absolute
limit. Also, there is no "unknown limit" concept: the limit is always
known.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Defect of e1a82c5 or
44a2cc4.

Previously, slicer wrote resulting LINK object like this:
 1. pass full object to `ObjectWriter.ObjectPutInit`;
 2. write whole payload again to payload `io.Writer`.

Thus, the output was an incorrect object due to double payload.

Now LINK header is passed without payload.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.90%. Comparing base (3779db1) to head (1211ce3).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #725   +/-   ##
=======================================
  Coverage   58.90%   58.90%           
=======================================
  Files         164      164           
  Lines       20909    20909           
=======================================
  Hits        12317    12317           
  Misses       8325     8325           
  Partials      267      267           

☔ 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 marked this pull request as ready for review July 14, 2025 13:31
@cthulhu-rider cthulhu-rider merged commit c7038b4 into master Jul 15, 2025
10 checks passed
@cthulhu-rider cthulhu-rider deleted the slicer-tests branch July 15, 2025 07:06
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