Skip to content

test(common): Ensure inserting a new first chunk is as expected #4810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Mar 18, 2025

This patch adds a debug_assert_eq to ensure the new first chunk is the one that matches the lazy_previous of the current first chunk.


@Hywan Hywan force-pushed the test-common-linked-chunk-lazy-loader-more-assert branch from 883edc6 to c0787d1 Compare March 18, 2025 16:37
@Hywan Hywan marked this pull request as ready for review March 18, 2025 16:37
@Hywan Hywan requested a review from a team as a code owner March 18, 2025 16:37
@Hywan Hywan requested review from bnjbvr and removed request for a team March 18, 2025 16:37
Copy link

codecov bot commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.41%. Comparing base (914b712) to head (351815b).
Report is 23 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4810   +/-   ##
=======================================
  Coverage   86.41%   86.41%           
=======================================
  Files         296      296           
  Lines       34486    34490    +4     
=======================================
+ Hits        29800    29806    +6     
+ Misses       4686     4684    -2     

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

Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

I like checking invariants, nice!

…ew first chunk.

This patch adds a new check when inserting a new first chunk. It makes
some tests to fail but because they were not realistic. This patch then
updates these tests.
@Hywan Hywan force-pushed the test-common-linked-chunk-lazy-loader-more-assert branch from c0787d1 to 351815b Compare March 19, 2025 10:04
@Hywan Hywan enabled auto-merge (rebase) March 19, 2025 10:05
@Hywan Hywan merged commit 9c37a03 into matrix-org:main Mar 19, 2025
42 checks passed
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