Skip to content

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

Open
def- wants to merge 1 commit into
MaterializeInc:mainfrom
def-:fix-vacuous-settle-carry-test
Open

timely-util: fix settle carry threshold test#38073
def- wants to merge 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
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.

1 participant