Repository navigation
Coalescer budget test controls its submission window - #864
Merged
Merged
Conversation
Hold the existing single-window premise with the manual loop clock and flush explicitly. Keep the budget, batch limits, inputs and all assertions. Signed-off-by: zlareb1 <[email protected]>
9 tasks done
This was referenced Nov 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #841
Changelog category (leave one):
Why
The coalescer budget test assumes 200 submissions enter one window but uses real loop time. A legal window expiry adds another pair of point writes and fails its two-write assertion. Control that test's loop clock with the existing manual clock and explicitly flush its intended window.
Scope and risk
Only the failing test changes, using the same clock-and-flush pattern as its existing neighbor. All four assertions, 200 inputs, values and byte budget are identical. The SDK's window duration, batch size, retry behavior and implementation remain unchanged. The test still verifies the request bound, point-write count, entry order and returned versions.
Compatibility, rollout and rollback
Tests
git diff --checkpass.python -m pytest -qand these nodes fromtests/unit/test_sdk_set_coalescer.py:test_unchecked_sets_go_out_again_in_batches_the_size_the_budget_checked,test_third_set_inside_the_window_starts_a_bulk,test_an_unchecked_set_and_the_later_sets_of_its_key_go_out_again_in_order,test_an_unchecked_set_too_long_even_first_in_a_request_goes_alone.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (Codex wrote the diff); the loop clock, explicit flush and unchanged assertions were checked.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.