Skip to content

Add a sanity assert for stored_size at index generation time.#5804

Merged
HaoranYi merged 3 commits intoanza-xyz:masterfrom
HaoranYi:assert_store_alive_size_at_index_gen
Jul 1, 2025
Merged

Add a sanity assert for stored_size at index generation time.#5804
HaoranYi merged 3 commits intoanza-xyz:masterfrom
HaoranYi:assert_store_alive_size_at_index_gen

Conversation

@HaoranYi
Copy link
Copy Markdown

@HaoranYi HaoranYi commented Apr 14, 2025

Problem

We have recently fixed a bug related to stored_size in #5778.

In the review comments, we discussed that it would be useful to add a sanity check for the "alive accounts size".

#5778 (review)

Summary of Changes

Add a sanity assert for stored_size at index generation time.

Fixes #

@HaoranYi HaoranYi force-pushed the assert_store_alive_size_at_index_gen branch 4 times, most recently from 77c3e85 to e688d99 Compare June 24, 2025 16:14
@HaoranYi HaoranYi changed the title assert store alive size Add a sanity assert for stored_size at index generation time. Jun 24, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 24, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.3%. Comparing base (528d984) to head (01f95c9).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #5804     +/-   ##
=========================================
- Coverage    83.3%    83.3%   -0.1%     
=========================================
  Files         853      853             
  Lines      378185   378184      -1     
=========================================
- Hits       315297   315296      -1     
  Misses      62888    62888             
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@HaoranYi HaoranYi force-pushed the assert_store_alive_size_at_index_gen branch from d9f1e29 to 31df760 Compare June 30, 2025 18:31
@HaoranYi HaoranYi requested review from brooksprumo and roryharr July 1, 2025 16:06
Copy link
Copy Markdown

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

Lgtm. One format nit.

Comment thread accounts-db/src/accounts_db.rs Outdated
Co-authored-by: Brooks <brooks@prumo.org>
@HaoranYi HaoranYi requested a review from brooksprumo July 1, 2025 16:53
Copy link
Copy Markdown

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

:shipit:

@HaoranYi HaoranYi merged commit af62b25 into anza-xyz:master Jul 1, 2025
41 checks passed
@HaoranYi HaoranYi deleted the assert_store_alive_size_at_index_gen branch July 1, 2025 18:02
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