Repository navigation
Test that a full store keeps its traces through an idle trickle of exports - #15
Merged
Merged
Conversation
RhysSullivan
force-pushed
the
test/cap-churn
branch
from
November 1, 2026 20:23
8361aa5 to
c17e619
Compare
RhysSullivan
marked this pull request as ready for review
November 2, 2026 21:21
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.
Tests the fix in #14.
The new
workerd.boundstest fills an 8 MiB store until it first evicts. It then checks two things:It also expects exactly one eviction pass in total.
On
main(45c0e60), the same 20 exports evict 5 of the stored traces. The first assertion fails as well: the store sits at 8,376,320 bytes, at the bound.No restart test: whether one pass finishes a drain depends on how many pages each eviction frees, so a deterministic one would need a contrived pass budget. The restart case was verified in a 1 GiB measurement instead (see #14): the drain reached 922 MiB after workerd unloaded the collector mid-drain.