Repository navigation
test(cli-fuzz): tighten --connection-stage-timeout in fuzz harness - #449
Merged
Merged
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.
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
2 tasks
fcostaoliveira
added a commit
that referenced
this pull request
Jun 26, 2026
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.
2 tasks
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.
Summary
The nightly CLI fuzz on master (
03ef76e8) failed with:```
Failed: memtier_benchmark hung (>10s) on argv=['--authenticate', '']
```
PR #445 re-broadened the fuzz strategy to include
--authenticate(and other flags the connection-stage supervisor #431 is meant to bound). But the harness left--connection-stage-timeoutat its 30s default while the subprocess timeout is 10s — so cases like--authenticate ''against a no-auth server hit the harness timeout before the supervisor could fire.Pass
--connection-stage-timeout=3in the canonical args so the supervisor reliably terminates within the 10s harness window.extra_argsis appended after, so any fuzzed value of the same flag still wins (last-flag-wins).Test plan
--authenticate ''shapeNote
Low Risk
Test-only harness tweak with no production or runtime behavior changes.
Overview
The CLI fuzz harness in
tests/cli_fuzz.pynow passes--connection-stage-timeout=3in the canonicalmemtier_benchmarkargv built by_run_memtier, so the connection-stage supervisor (#431) can abort stuck connect/auth loops before the harness’s 10ssubprocesstimeout.That closes a gap where the binary’s 30s default let cases such as
--authenticate ''against a no-auth server run long enough to be reported as false hangs. Fuzzed flags are still appended after this default, so a generated--connection-stage-timeout=value continues to win via last-flag-wins semantics.Reviewed by Cursor Bugbot for commit 522eea0. Bugbot is set up for automated code reviews on this repo. Configure here.