Skip to content

timely-util: fix settle carry threshold test - #38073

Merged
def- merged 1 commit into
MaterializeInc:mainfrom
def-:fix-vacuous-settle-carry-test
Aug 12, 2026
Merged

timely-util: fix settle carry threshold test#38073
def- merged 1 commit into
MaterializeInc:mainfrom
def-:fix-vacuous-settle-carry-test

Conversation

@def-

@def- def- commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

settle_carry_commits_at_target sized its chunks assuming a 24-byte row, but the test row has four fixed-width leaves and serializes to 32 bytes. Chunks came out at ~2.0 MiB, above at_commit_size, so settle committed all four as-is and the carry never coalesced. The monotone and the old windowed predicate agree at that size, so the test could not catch a revert to the windowed form it exists to guard.

Size chunks at ~1.5 MiB so the carry has to coalesce, and assert that coalescing happened so the fixture cannot drift back over the threshold silently.

Follow-up to #37955.

`settle_carry_commits_at_target` sized its chunks assuming a 24-byte row,
but the test row has four fixed-width leaves and serializes to 32 bytes.
Chunks came out at ~2.0 MiB, above `at_commit_size`, so settle committed
all four as-is and the carry never coalesced. The monotone and the old
windowed predicate agree at that size, so the test could not catch a
revert to the windowed form it exists to guard.

Size chunks at ~1.5 MiB so the carry has to coalesce, and assert that
coalescing happened so the fixture cannot drift back over the threshold
silently.

Follow-up to MaterializeInc#37955.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@def-
def- requested a review from DAlperin August 6, 2026 08:58
@def-
def- requested a review from a team as a code owner August 6, 2026 08:58

@DAlperin DAlperin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks

@def-
def- merged commit ea7b8b5 into MaterializeInc:main Aug 12, 2026
84 checks passed
@def-
def- deleted the fix-vacuous-settle-carry-test branch August 12, 2026 17:30
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