Repository navigation
Run stats assertions in CI and clarify cache contracts - #136
Merged
Merged
Conversation
arthurprs
marked this pull request as ready for review
November 21, 2026 23:43
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.
CI compiles stats but does not execute the ordinary stats tests. Add stats-enabled
cargo testcommands for the default, std and sharded lock backends in the existing OS matrix.Correct the API documentation to match executable behavior: entry callbacks receive a shared key, guarded mutation can change weight, and statistics count internal lookups and placeholder joins rather than one outcome per public call. Describe resident access counts, replacement resets, totals across clear and the 64-bit atomic requirement. Runtime code and counter units stay unchanged.
Five focused stats characterizations cover cold/retried loads, placeholder joins, async waiter delivery, entry actions/reset behavior and async entry probing. A separate local negative control initializes access counts to 99: the rebuilt default library suite passes, while the rebuilt stats-enabled
test_item_statsfails its 0-versus-99 assertion. That mutation is excluded from this branch.Validation on upstream
b971639with Rust 1.97.1:cargo testfor default, stats, std, std+stats, sharded-lock and sharded-lock+stats configurations.-D warnings) for the default and stats library builds.Hosted CI duration and cost are not measured locally.
The existing ignored Lifecycle doctest and stats test-build dead-code warning remain visible. Local validation runs on Linux; hosted macOS/Windows jobs are separate.