Skip to content

test(filters): differential fuzzing vs upstream rsync (#1365) - #4277

Merged
oferchen merged 1 commit into
masterfrom
test/filter-rules-differential-fuzz-1365
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
test/filter-rules-differential-fuzz-1365

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds a second filter differential fuzz target, filter_rules_vs_upstream, that probes upstream rsync through --list-only and exercises the rule-list-clear directive (!) the existing filter_differential harness omits.
  • Adds tools/ci/run_filter_differential_fuzz.sh that drives the target for ${FUZZ_DURATION:-300} seconds and exits 0 when no divergence is found, 1 on a finding, and skips cleanly when nightly, cargo-fuzz, or an upstream rsync binary is unavailable.
  • Linux/macOS only; cargo-fuzz lacks sanitizer support on other targets, so the fuzz body is cfg-gated and the harness script exits cleanly on Windows.

Test plan

  • bash tools/ci/run_filter_differential_fuzz.sh skips cleanly when nightly/cargo-fuzz/upstream rsync is absent.
  • With nightly + cargo-fuzz + upstream rsync available, the script runs the target for 300s and exits 0 with no findings.
  • If a synthetic divergence is injected, the harness exits 1 with artifacts under fuzz/artifacts/filter_rules_vs_upstream/.

Adds a second filter differential fuzz target, `filter_rules_vs_upstream`,
that probes upstream rsync through `--list-only` and exercises the
rule-list-clear directive (`!`) that the existing `filter_differential`
harness omits. Comparison surface stays the same: build oc-rsync's
`FilterSet` from the rule text, run upstream with the same `--filter=...`
chain against a synthetic tree, and panic on a verdict mismatch so
libFuzzer minimises the reproducer.

Also adds `tools/ci/run_filter_differential_fuzz.sh` that drives the
target for `${FUZZ_DURATION:-300}` seconds and exits 0 when no
divergence is found, 1 on a finding, and skips cleanly when nightly,
cargo-fuzz, or an upstream rsync binary is unavailable.

Linux/macOS only; cargo-fuzz lacks sanitizer support on other targets.
@oferchen
oferchen merged commit dbdda03 into master May 17, 2026
17 of 18 checks passed
@github-actions github-actions Bot added the test label May 17, 2026
oferchen added a commit that referenced this pull request May 18, 2026
#4277)

Adds a second filter differential fuzz target, `filter_rules_vs_upstream`,
that probes upstream rsync through `--list-only` and exercises the
rule-list-clear directive (`!`) that the existing `filter_differential`
harness omits. Comparison surface stays the same: build oc-rsync's
`FilterSet` from the rule text, run upstream with the same `--filter=...`
chain against a synthetic tree, and panic on a verdict mismatch so
libFuzzer minimises the reproducer.

Also adds `tools/ci/run_filter_differential_fuzz.sh` that drives the
target for `${FUZZ_DURATION:-300}` seconds and exits 0 when no
divergence is found, 1 on a finding, and skips cleanly when nightly,
cargo-fuzz, or an upstream rsync binary is unavailable.

Linux/macOS only; cargo-fuzz lacks sanitizer support on other targets.
oferchen added a commit that referenced this pull request May 18, 2026
#4277)

Adds a second filter differential fuzz target, `filter_rules_vs_upstream`,
that probes upstream rsync through `--list-only` and exercises the
rule-list-clear directive (`!`) that the existing `filter_differential`
harness omits. Comparison surface stays the same: build oc-rsync's
`FilterSet` from the rule text, run upstream with the same `--filter=...`
chain against a synthetic tree, and panic on a verdict mismatch so
libFuzzer minimises the reproducer.

Also adds `tools/ci/run_filter_differential_fuzz.sh` that drives the
target for `${FUZZ_DURATION:-300}` seconds and exits 0 when no
divergence is found, 1 on a finding, and skips cleanly when nightly,
cargo-fuzz, or an upstream rsync binary is unavailable.

Linux/macOS only; cargo-fuzz lacks sanitizer support on other targets.
@oferchen
oferchen deleted the test/filter-rules-differential-fuzz-1365 branch May 19, 2026 19:28
oferchen added a commit that referenced this pull request Aug 24, 2026
#4277)

Adds a second filter differential fuzz target, `filter_rules_vs_upstream`,
that probes upstream rsync through `--list-only` and exercises the
rule-list-clear directive (`!`) that the existing `filter_differential`
harness omits. Comparison surface stays the same: build oc-rsync's
`FilterSet` from the rule text, run upstream with the same `--filter=...`
chain against a synthetic tree, and panic on a verdict mismatch so
libFuzzer minimises the reproducer.

Also adds `tools/ci/run_filter_differential_fuzz.sh` that drives the
target for `${FUZZ_DURATION:-300}` seconds and exits 0 when no
divergence is found, 1 on a finding, and skips cleanly when nightly,
cargo-fuzz, or an upstream rsync binary is unavailable.

Linux/macOS only; cargo-fuzz lacks sanitizer support on other targets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant