Skip to content

test(monitor-fuzz): bump FUZZ_GROW_MAX + FUZZ_INCLUDE_HUGE defaults now #405 landed - #443

Merged
fcostaoliveira merged 1 commit into
masterfrom
test/bump-monitor-fuzz-defaults
Jun 2, 2026
Merged

fcostaoliveira merged 1 commit into
masterfrom
test/bump-monitor-fuzz-defaults

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Jun 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • Smoke-checked locally: FUZZ_ITER=20 MEMTIER=<path> python3 tests/fuzz/fuzz_monitor_input.py — no crashes (SIGSEGV/ASAN/sanitizer). Timeouts from huge-payload mutations confirmed as expected behaviour (the fuzzer is now exercising multi-MB paths as intended).
  • Nightly CI (monitor-fuzz.yml) will now exercise the full intended coverage including 15_huge_single_line and 16_million_tiny_lines seeds.

Refs: 2.4 review #21 (Review 8).

🤖 Generated with Claude Code


Note

Low Risk
Only changes fuzz harness defaults and comments in tests/fuzz; no production or CI workflow file edits in the diff.

Overview
Now that PR #405 fixed the VLA stack overflow in arbitrary_command::split_command_to_args, the monitor-input fuzz driver raises default coverage instead of staying in a pre-fix safety mode.

FUZZ_GROW_MAX default goes from 256 KiB to 8 MiB, so the grow mutator can stress multi-megabyte monitor lines (still capped at 32 MiB per mutation). FUZZ_INCLUDE_HUGE defaults to on, so synthetic seeds 15_huge_single_line and 16_million_tiny_lines run in every fuzz session unless FUZZ_INCLUDE_HUGE=0. Comments and docstrings are updated to describe the new defaults and how to opt out.

Reviewed by Cursor Bugbot for commit 3bf0d34. Bugbot is set up for automated code reviews on this repo. Configure here.

Both were "temporary until #405 lands" guards added by PR #422. PR
#405 (heap-vector fix for split_command_to_args) has been merged for
weeks. The stale defaults meant the very regression path the fuzzer
was built to cover -- multi-MB monitor lines -- was never actually
exercised in the nightly run. Lifting the guards restores the
intended coverage.

Refs: 2.4 review #21 (Review 8).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@jit-ci

jit-ci Bot commented Jun 2, 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 b3ddbaa into master Jun 2, 2026
82 checks passed
fcostaoliveira added a commit that referenced this pull request Jun 9, 2026
* 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]>
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