Repository navigation
MOD-18654 Bound the json_nummultby_num_2 multiplier so the benchmark can run - #1643
Merged
Merged
Conversation
…can run The benchmark multiplied the same key by 2 for 5,000,000 requests. The value runs away within the first fraction of a percent of the run and every subsequent call errors, so redis-benchmark exits 1 having written only a CSV header. It has produced no result since at least 2026-08-09 and has no `kpis` floor, because update_kpis.py only seeds a floor for a benchmark that returned one. Multiplying by -1 flips the sign and leaves the magnitude untouched, so the value is bounded by construction at any client count and with any interleaving. It exercises the same path as before (parse, resolve `$`, multiply, write back) at the same rate, and unlike a multiplier of 1 it is not an identity operation. Per MOD-18654, agreed with Aviv David. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
AvivDavid23
approved these changes
Sep 23, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1643 +/- ##
=======================================
Coverage 85.97% 85.97%
=======================================
Files 15 15
Lines 5306 5306
=======================================
Hits 4562 4562
Misses 744 744 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
LiranAbir
added a commit
that referenced
this pull request
Sep 23, 2026
Brings in #1643 (MOD-18654), which bounds json_nummultby_num_2 so the benchmark runs again -- the premise this branch was written against.
LiranAbir
added a commit
that referenced
this pull request
Sep 23, 2026
#1643 bounds that benchmark's multiplier, and it produced a result for the first time since at least 2026-08-09: 102,553 rps on the push-to-integ run of e1c8194. So --known-broken json_nummultby_num_2 is no longer a safety valve, it is a hole -- if that benchmark stops running again the gate would wave it through. The workflow passes no --known-broken at all now; the flag stays, unused, for the next benchmark that breaks for good. It still has no `kpis` floor, since update_kpis.py seeds one only from a run that returned a result and none had. So it is still reported as ungated, and the wording follows the reason: "no floor seeded yet" rather than MOD-18654. Seeding one is a update_kpis.py run and a PR, which it now qualifies for. Four-night replay unchanged with no exemption passed (8 and 12 breaches on 09-19 and 09-21). On the 09-23 integ run the gate reports it as "UNGATED: json_nummultby_num_2 (no floor)" -- measured, unfloored -- alongside 7 breaches, which are the sustained step-change from 09-21 (MOD-18823).
LiranAbir
added a commit
that referenced
this pull request
Sep 23, 2026
Two findings on the previous commit, both about the same blind spot: an ungated benchmark is reported by every shard, but only the shard that was given it has a number. The summary merged those copies with unique_by, which keeps whichever came first, so the nightly table and the Slack block could say "no result" for a benchmark another shard had timed. It now dedupes on (benchmark, status) preferring the copy with a measured value. This only became visible with #1643: before it, json_nummultby_num_2 had no result on any shard. And verdict() classified an unusable result before checking for a floor, so a floor-less benchmark with an unreadable result produced an UNREADABLE row with floor=None, which the summary table formats as a number -- TypeError, after findings.json was already written. Ungated is now decided first: with no floor there is nothing for an unusable result to be measured against. Covered in --self-test, which also renders the step summary for that row rather than only checking the verdict. Four-night replay unchanged. Reported by Cursor Bugbot.
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.
One line:
JSON.NUMMULTBY num $ 2->JSON.NUMMULTBY num $ -1.Why
The benchmark multiplies the same key by 2 for 5,000,000 requests. The value runs away almost immediately and every subsequent call errors, so
redis-benchmarkexits 1 having written only a CSV header andredisbench-adminreports a 0-second run. It has produced no result since at least 2026-08-09 (failed on all of 09-18 -> 09-22), and consequently has nokpisfloor at all —update_kpis.pyonly seeds one for a benchmark that returned a result. SoJSON.NUMMULTBYis currently both unmeasured and ungated.Multiplying by
-1flips the sign and leaves the magnitude unchanged, so the value is bounded by construction — at any client count, under any interleaving. It exercises the same code path at the same rate as before (parse, resolve$, multiply, write back), and unlike a multiplier of1it is not an identity operation.A 2 / 0.5 oscillation was considered first (MOD-18654), but
redis-benchmarktakes only one command per invocation, so it would have meant moving the test tomemtier_benchmarkand changing its throughput metric.-1was agreed instead.Follow-ups, deliberately not in this PR
benchmark-flow.ymlthat documents this benchmark as expected-red, and the--known-broken json_nummultby_num_2exemption added in MOD-18822 Fail the benchmark job on any KPI floor breach and report it for triage #1642, both become stale once this lands. MOD-18822 Fail the benchmark job on any KPI floor breach and report it for triage #1642 should drop that exemption — otherwise a genuine future failure of this benchmark would be silently tolerated.name:anddescription:in the yml still readnum_2. Left alone to keep the diff to one line; the result-file and Grafana series identity isname:, so renaming is a separate call.Verification
Its floor seeds automatically from the first run that produces a result, so the intended outcome is: benchmark completes, a result json appears for it, and
update_kpis.pywrites akpisblock on the follow-up baseline PR.Closes MOD-18654.
🤖 Generated with Claude Code
Note
Low Risk
Single-line change to a benchmark definition only; no production or runtime code paths.
Overview
The
json_nummultby_num_2benchmark command changes fromJSON.NUMMULTBY num $ 2toJSON.NUMMULTBY num $ -1, so repeated multiplies no longer blow up the stored value and cause every request to fail.The benchmark still hits the same RedisJSON path (parse,
$, multiply, write) at the same load (5M requests, 16 clients, etc.), but magnitude stays bounded soredis-benchmarkcan finish and KPI floors can be seeded again. The YAMLname/descriptionstill saynum_2; that identity is unchanged in this diff.Reviewed by Cursor Bugbot for commit 6e630c4. Bugbot is set up for automated code reviews on this repo. Configure here.