Repository navigation
Update README.md - #5
Merged
Merged
Conversation
add missing dependency
fcostaoliveira
added a commit
that referenced
this pull request
May 10, 2026
Adds four RLTest cases that observably exercise the Bugbot-found bugs that previously had no automated coverage (verified only via local smoke tests): - test_arbitrary_spop_with_count_empty_array_is_miss (#7) Pre-loads 3 sets * 5 members, runs SPOP key COUNT 1; without the *0 null-sentinel fix, every call would record a hit. With the fix only ~15 destructive pops succeed and the rest report misses. - test_arbitrary_blpop_variadic_keys_single_bucket (#6) Pre-loads memtier-1 with enough items for every BLPOP call to return immediately, and verifies "Per-Key Misses" carries exactly key[0] (not key[0..2]). Without the fix, response->get_hits()=2 from the [key, value] reply would mark two of three buckets as hit and one as miss per call. - test_arbitrary_xread_keyword_spec_evaluates_correctly (#4 Keyword) Pre-loads 3 streams; XREAD COUNT 1 STREAMS __key__ 0 across a 10-key range must produce both hits and misses, proving the Keyword begin_search resolved correctly. Without the args[idx] fix, the STREAMS keyword search would land on the wrong slot. - test_arbitrary_eval_keynum_spec_runs_cleanly (#4 Keynum) EVAL return 1 1 __key__ exercises the Keynum begin_search path. EVAL is NotMissable, so we assert no Per-Key entry but Count > 0, proving resolve_command_meta read numkeys from the right slot. Findings #2 (lazy resize), #5 (empty bulk), #8 (alloc hygiene), #9 (mbulk NULL), #10 (default switch) and #11 (Range step>1) remain without dedicated tests because they're either parser-collapsed (#5), defensive/unreachable (#9, #10, #11), or non-functional (#8); documented in PR comments. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
4 tasks
fcostaoliveira
added a commit
that referenced
this pull request
May 27, 2026
Adds four RLTest cases that observably exercise the Bugbot-found bugs that previously had no automated coverage (verified only via local smoke tests): - test_arbitrary_spop_with_count_empty_array_is_miss (#7) Pre-loads 3 sets * 5 members, runs SPOP key COUNT 1; without the *0 null-sentinel fix, every call would record a hit. With the fix only ~15 destructive pops succeed and the rest report misses. - test_arbitrary_blpop_variadic_keys_single_bucket (#6) Pre-loads memtier-1 with enough items for every BLPOP call to return immediately, and verifies "Per-Key Misses" carries exactly key[0] (not key[0..2]). Without the fix, response->get_hits()=2 from the [key, value] reply would mark two of three buckets as hit and one as miss per call. - test_arbitrary_xread_keyword_spec_evaluates_correctly (#4 Keyword) Pre-loads 3 streams; XREAD COUNT 1 STREAMS __key__ 0 across a 10-key range must produce both hits and misses, proving the Keyword begin_search resolved correctly. Without the args[idx] fix, the STREAMS keyword search would land on the wrong slot. - test_arbitrary_eval_keynum_spec_runs_cleanly (#4 Keynum) EVAL return 1 1 __key__ exercises the Keynum begin_search path. EVAL is NotMissable, so we assert no Per-Key entry but Count > 0, proving resolve_command_meta read numkeys from the right slot. Findings #2 (lazy resize), #5 (empty bulk), #8 (alloc hygiene), #9 (mbulk NULL), #10 (default switch) and #11 (Range step>1) remain without dedicated tests because they're either parser-collapsed (#5), defensive/unreachable (#9, #10, #11), or non-functional (#8); documented in PR comments. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced May 30, 2026
fcostaoliveira
added a commit
that referenced
this pull request
Jun 1, 2026
Add the first slice of the differential test harness proposed in #414: a pytest module that pins memtier's externally-observable behavior against redis-benchmark and redis-cli driving the same Redis. Opt-in via RUN_DIFFERENTIAL=1 so default CI is unaffected; skip-when-missing for both redis-server, redis-benchmark and redis-cli so runners without redis-tools never hard-fail. Five checks from the 10-check matrix are implemented (#4, #5, #6, #7, #8). Wire-byte equivalence checks (#1, #2, #3) are wired up via a tiny tests/redis_tap.py userspace proxy + RESP canonicalizer but the canonical-diff assertions are left as TODOs for the follow-up PR — the canonicalizer already preserves the expected SETEX vs SET..EX divergence. Tolerances are env-tunable (DIFF_OPS_REL_TOL, DIFF_HIT_REL_TOL, DIFF_LAT_REL_TOL, DIFF_THR_REL_TOL) and documented in the module docstring with the empirical justification for each default. Fixes #414 (partial — wire-byte checks remain TODO). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
7 tasks done
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.
add missing dependency