Skip to content

MOD-18654 Bound the json_nummultby_num_2 multiplier so the benchmark can run - #1643

Merged
LiranAbir merged 1 commit into
masterfrom
MOD-18654-nummultby-bounded-multiplier
Sep 23, 2026
Merged

LiranAbir merged 1 commit into
masterfrom
MOD-18654-nummultby-bounded-multiplier

Conversation

@LiranAbir

@LiranAbir LiranAbir commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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-benchmark exits 1 having written only a CSV header and redisbench-admin reports 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 no kpis floor at all — update_kpis.py only seeds one for a benchmark that returned a result. So JSON.NUMMULTBY is currently both unmeasured and ungated.

Multiplying by -1 flips 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 of 1 it is not an identity operation.

A 2 / 0.5 oscillation was considered first (MOD-18654), but redis-benchmark takes only one command per invocation, so it would have meant moving the test to memtier_benchmark and changing its throughput metric. -1 was agreed instead.

Follow-ups, deliberately not in this PR

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.py writes a kpis block 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_2 benchmark command changes from JSON.NUMMULTBY num $ 2 to JSON.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 so redis-benchmark can finish and KPI floors can be seeded again. The YAML name / description still say num_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.

…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>
@LiranAbir
LiranAbir merged commit e1c8194 into master Sep 23, 2026
18 of 60 checks passed
@LiranAbir
LiranAbir deleted the MOD-18654-nummultby-bounded-multiplier branch September 23, 2026 09:20
@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.97%. Comparing base (a3b2edb) to head (6e630c4).
⚠️ Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants