Skip to content

test(cli-fuzz): tighten --connection-stage-timeout in fuzz harness - #449

Merged
fcostaoliveira merged 1 commit into
masterfrom
fix/cli-fuzz-supervisor-timeout
Jun 3, 2026
Merged

fcostaoliveira merged 1 commit into
masterfrom
fix/cli-fuzz-supervisor-timeout

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Jun 3, 2026 •

Copy link
Copy Markdown
Collaborator

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-timeout at 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=3 in the canonical args so the supervisor reliably terminates within the 10s harness window. extra_args is appended after, so any fuzzed value of the same flag still wins (last-flag-wins).

Test plan

  • Nightly fuzz no longer reports spurious hangs on the --authenticate '' shape
  • CI green

Note

Low Risk
Test-only harness tweak with no production or runtime behavior changes.

Overview
The CLI fuzz harness in tests/cli_fuzz.py now passes --connection-stage-timeout=3 in the canonical memtier_benchmark argv built by _run_memtier, so the connection-stage supervisor (#431) can abort stuck connect/auth loops before the harness’s 10s subprocess timeout.

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.

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-ci

jit-ci Bot commented Jun 3, 2026

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@fcostaoliveira
fcostaoliveira merged commit 1142696 into master Jun 3, 2026
82 checks passed
fcostaoliveira added a commit that referenced this pull request Jun 26, 2026
#493)

Test/CI-only backports so the nightly fuzzers pass on 2.4: cli-fuzz --connection-stage-timeout (#449), soak slope/timeout thresholds (#464, #467). Verified: full 500-example cli-fuzz passes on 2.4 (with the master-side per-leg detect_leaks=0 in #492).
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.
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.

1 participant