Repository navigation
ci: backport nightly fuzz/soak harness fixes to 2.4 (#449, #464, #467) - #493
Conversation
) The CLI fuzz nightly (#445) re-broadened FLAG_SPECS to include --authenticate and similar flags whose runaway behavior the connection-stage supervisor (#431) is supposed to bound. But the harness left --connection-stage-timeout at its 30 s default while the fuzz subprocess timeout is 10 s, so cases like `--authenticate ''` against a no-auth server hit the harness timeout before the supervisor could fire -- producing spurious 'hung (>10s)' failures. Pass --connection-stage-timeout=3 in the canonical args so the supervisor reliably terminates within the 10 s harness window. extra_args is appended after, so any fuzzed value of the same flag still wins (last-flag-wins). Refs: master nightly cli-fuzz failure on 03ef76e.
* test(soak): raise RSS slope/ratio caps above unbounded m_stats baseline The S1 long-run memory test was failing every nightly because the slope and ratio caps did not account for the unbounded one-second snapshot list that run_stats::roll_cur_stats (run_stats.cpp:204) appends to over the full 30-minute run. Observed steady-state is ~6.66 MB/min slope and ~4.7x final/initial ratio with --threads=4 --clients=50 --pipeline=4 -- all from the m_stats accumulator, not a leak. Raise the slope cap to 10.0 MB/min (1.5x headroom over observed) and the ratio cap to 6.0 (1.3x headroom). Genuine leaks above the known accumulator baseline are still flagged. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * ci(monitor-fuzz): raise FUZZ_TIMEOUT to 90s for ASAN+UBSan headroom PR #443 raised FUZZ_GROW_MAX to 8 MiB. Under ASAN+UBSan the per-iteration budget exceeds the previous 30s FUZZ_TIMEOUT reliably on mutated payloads, causing nightly fuzz failures that are timeout artefacts rather than parser bugs. Triple the timeout to 90s. timeout-minutes: 35 is unchanged because iteration counts (300 PR / 2000 nightly) are unaffected. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
…rogress) (#467) * test(soak): pass explicit timeout to benchmark.run() in long-running soak tests Benchmark.run() defaults to timeout=240s. Soak S7 (test_slow_network_smooth) uses test_time=300s (configurable via MEMTIER_SOAK_TEST_TIME), so memtier was being killed before it could write its summary, leaving the asserts on mb.stdout (p99 / totals presence) to fail with no useful diagnostic. Pass timeout=test_time+90 so the run has ~90s of slack for graceful shutdown. Audited the rest of tests/soak/: test_high_concurrency, test_connection_churn, test_cluster_turbulence, test_long_run_memory and test_retry_storm all drive memtier via their own subprocess.Popen() with their own explicit communicate(timeout=...), so none of them hit the Benchmark.run() default. test_large_payloads uses --requests=20 (no test_time), well under 240s. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * ci(differential): bump runner to ubuntu-24.04 for redis-tools 7.x CSV schema ubuntu-22.04 ships redis-tools 6.0.16, whose `redis-benchmark --csv` output does not expose the `p99_latency_ms` column. The differential parser (tests/differential_redis_benchmark.py:373) assumes that column exists and raises IndexError without it, which has been breaking the nightly differential test_diff_p99_latency_get run. ubuntu-24.04 (noble) carries redis-tools 7.x with the new CSV schema, so the parser sees the column and the test completes normally. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * test(fuzz): emit per-iteration progress in fuzz_monitor_input driver The driver previously printed only a startup banner and a final summary, which is fine on a clean run but leaves a diagnostic gap when the GH-hosted runner is preempted (or otherwise killed) mid-run: we cannot tell which seed or iteration was in flight, so the failure cannot be reproduced from the existing logs. Emit a one-line stderr progress record every FUZZ_PROGRESS_EVERY (default 50) iterations carrying iter/total, wall-clock elapsed, and current seed name. Setting FUZZ_PROGRESS_EVERY=0 disables it for callers that want a quiet driver. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8c9cb49. Configure here.
| # test_time>=300s would be killed before they could write a | ||
| # summary, so we pass an explicit upper bound that leaves | ||
| # ~90s of slack for graceful shutdown. | ||
| memtier_ok = benchmark.run(timeout=test_time + 90) |
There was a problem hiding this comment.
Benchmark.run lacks timeout kwarg
Medium Severity
The soak test calls benchmark.run(timeout=test_time + 90), but Benchmark.run in tests/mb.py is defined as run(self) with no timeout parameter. When this test runs, Python raises TypeError: run() got an unexpected keyword argument 'timeout' before memtier starts, so the intended longer soak timeout never applies.
Reviewed by Cursor Bugbot for commit 8c9cb49. Configure here.
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
Adds a [master, 2.4] branch matrix to the three nightly fuzzers (cli-fuzz, monitor-fuzz, soak), active on cron + manual dispatch; PRs keep the default checkout. Branch-scoped soak artifacts; cli-fuzz uses detect_leaks=0 on the 2.4 leg for a known benign abort-path leak. Verified: cli-fuzz (2.4) green (with #449/#493), full 500-example local run passes.


Backports three test/CI-only commits from master so the nightly fuzzers (now wired to also run against 2.4 via #492) pass on the 2.4 branch:
tests/cli_fuzz.py— append--connection-stage-timeout=3so AUTH-failure cases (e.g.--authenticate ''against a no-auth server) abort via the connection-stage supervisor before the harness's 10s "hung" check. Without it the supervisor sat at its 30s default → spurioushung (>10s).test_slow_networktimeout, differential runner, fuzz progress.No source changes —
.py/.ymlonly.Locally verified on 2.4:
--authenticate '' --connection-stage-timeout=3aborts in 3.0s (exit 2); without the flag it's still running at 8s (the hang the fuzzer caught). Confirms 2.4's memtier respects the supervisor — this was only a harness gap, not a code bug.Note:
monitor-fuzzon 2.4 remains red (it catches 5 pre-existing parser bugs fixed on master in #475 — reported separately, intentionally not backported here).🤖 Generated with Claude Code
Note
Low Risk
Changes are limited to Python test harnesses and GitHub Actions; no production binary or runtime behavior is modified.
Overview
Test and CI-only backports so nightly fuzz/soak and opt-in differential jobs behave on 2.4 (no memtier C++ changes).
The differential workflow moves from
ubuntu-22.04toubuntu-24.04soredis-benchmark --csvincludes thep99_latency_mscolumn the differential parser expects (older redis-tools 6.x lacked it and causedIndexError).CLI fuzz (
tests/cli_fuzz.py) now always passes--connection-stage-timeout=3before fuzzed args so AUTH/connect failures exit via the connection-stage supervisor before the harness’s 10s hang limit (default 30s looked like hangs, e.g.--authenticate ''on a no-auth server).Monitor-input fuzz raises
FUZZ_TIMEOUTto 90s in CI for ASAN/UBSan + large payloads, and the driver logs periodic progress (seed, iter, elapsed) so killed GH runs show where they stopped.Soak tests relax long-run RSS slope (2→10 MB/min) and final/initial ratio (1.5→6.0×) with comments tying caps to the known
run_statsper-second list growth baseline; slow-network soak callsbenchmark.run(timeout=test_time + 90)so runs ≥300s aren’t cut off by a ~240s default before summary output.Reviewed by Cursor Bugbot for commit 8c9cb49. Bugbot is set up for automated code reviews on this repo. Configure here.