Skip to content

ledger: blockstore tests: start test shreds at FEC set boundaries - #15951

Merged
alexpyattaev merged 1 commit into
anza-xyz:masterfrom
alexpyattaev:simd504-blockstore-test-alignment
Oct 10, 2026
Merged

alexpyattaev merged 1 commit into
anza-xyz:masterfrom
alexpyattaev:simd504-blockstore-test-alignment

Conversation

@alexpyattaev

Copy link
Copy Markdown

Problem

Some blockstore tests shredded from indices not aligned to 32 shreds, fix these to produce valid shreds that would actually pass ingest.
ref #11790

Summary of Changes

adjust tests in blockstore
adjust tests in blockstore_processor

Testing

CI

Some blockstore tests shredded from indices not aligned to 32 shreds,
fix these to produce valid shreds that would actually pass ingest.
Hash::default(), // merkle_root
6, // next_shred_index,
6, // next_code_index
32, // next_shred_index,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

just lining up to 32, real FECs can not start at index 6

Hash::default(), // merkle_root
last_idx, // next_shred_index,
last_idx, // next_code_index
last_idx + 1, // next_shred_index,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

next FEC can not reuse index of last FEC

@alexpyattaev
alexpyattaev marked this pull request as ready for review October 9, 2026 19:36
@alexpyattaev
alexpyattaev requested a review from steviez October 9, 2026 19:37
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.2%. Comparing base (363cbef) to head (04fe515).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #15951      +/-   ##
==========================================
+ Coverage    72.0%    82.2%   +10.2%     
==========================================
  Files         931      938       +7     
  Lines      300448   373067   +72619     
==========================================
+ Hits       216378   306782   +90404     
+ Misses      84070    66285   -17785     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexpyattaev
alexpyattaev added this pull request to the merge queue Oct 10, 2026
Merged via the queue into anza-xyz:master with commit 4a388ee Oct 10, 2026
49 checks passed
@alexpyattaev
alexpyattaev deleted the simd504-blockstore-test-alignment branch October 10, 2026 08:03
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