Skip to content

feat(eval): differential fuzz target, pipeline-ordering test, threshold sweep#105

Merged
mostafa merged 1 commit into
mainfrom
feat/eval-opt-housekeeping
May 13, 2026
Merged

feat(eval): differential fuzz target, pipeline-ordering test, threshold sweep#105
mostafa merged 1 commit into
mainfrom
feat/eval-opt-housekeeping

Conversation

@mostafa
Copy link
Copy Markdown
Member

@mostafa mostafa commented May 13, 2026

Summary

  • Add fuzz_eval_matcher_diff cargo-fuzz target that differentially tests the optimizer: compares AnyOf(Contains(...)) against optimize_any_of(...) on arbitrary needle/haystack inputs generated by libfuzzer + arbitrary.
  • Add optimizer_runs_after_pipeline_transformation regression test verifying the compiler optimizer sees post-pipeline field names (a field_name_mapping pipeline renames CommandLine to process.command_line, and the rule with 8 |contains patterns still matches events using the ECS field name).
  • Expose compiler::optimizer::optimize_any_of as #[doc(hidden)] pub so the fuzz crate can call it directly.
  • Ran the existing eval_ac_threshold_sweep benchmark (p1/p2/p4/p8/p16/p32 x h100/h1K/h8K/h64K). Results confirm AHO_CORASICK_THRESHOLD = 8 is well-chosen: throughput flattens at p8, and p16/p32 perform nearly identically since the AC automaton scans the haystack once regardless of pattern count.

Test plan

  • cargo test --workspace passes
  • cargo fmt --all -- --check clean
  • cargo clippy --workspace --all-targets --all-features -- -D warnings clean
  • cargo check in fuzz/ compiles the new target
  • AC threshold sweep benchmark run and results reviewed

…sion test

Add fuzz_eval_matcher_diff cargo-fuzz target that compares optimized
(AhoCorasickSet / CaseInsensitiveGroup) matcher output against the
unoptimized AnyOf(Contains) path on arbitrary needle/haystack inputs.

Add optimizer_runs_after_pipeline_transformation regression test that
verifies the compiler optimizer sees post-pipeline field names.

Expose compiler::optimizer::optimize_any_of as pub so the fuzz crate
can drive it directly.
@mostafa mostafa merged commit 4d5f487 into main May 13, 2026
11 checks passed
@mostafa mostafa deleted the feat/eval-opt-housekeeping branch May 13, 2026 19:11
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