Skip to content

fix(dedup): report fuzzy count in summary when exact_merges is 0 (#1857)#1860

Open
thejesh23 wants to merge 1 commit into
Graphify-Labs:v8from
thejesh23:fix/1857-dedup-fuzzy-summary
Open

fix(dedup): report fuzzy count in summary when exact_merges is 0 (#1857)#1860
thejesh23 wants to merge 1 commit into
Graphify-Labs:v8from
thejesh23:fix/1857-dedup-fuzzy-summary

Conversation

@thejesh23

Copy link
Copy Markdown

Summary

  • Rebuilds the dedup summary line as a parts list so (N fuzzy) prints whether or not there were exact merges — previously the if fuzzy_merges branch was nested inside if exact_merges, and a doc-only / semantic-only run with exact_merges == 0 printed Deduplicated N node(s). with no breakdown.
  • Adds two regression tests in tests/test_dedup.py:
    • test_dedup_summary_prints_fuzzy_count_when_no_exact_merges — cross-file long labels, entropy-gated, JW-close → exact=0, fuzzy=1; asserts "fuzzy" appears in the log and "exact" does not.
    • test_dedup_summary_still_reports_exact_only — same-file identical normalized labels → exact=1, fuzzy=0; pins the reverse case.

Closes #1857.

Test plan

  • uv run --frozen pytest tests/test_dedup.py -q → 36 passed (up from 34).
  • uv run --frozen pytest tests/ -q → 3195 passed, 3 skipped (baseline was 3193; delta = the two new tests).
  • uv run --frozen pre-commit run --files graphify/dedup.py tests/test_dedup.py → skillgen + ruff green.

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.

dedup summary log silently omits the fuzzy-merge count when exact_merges == 0

1 participant