fix(dedup): report fuzzy count in summary when exact_merges is 0 (#1857)#1860
Open
thejesh23 wants to merge 1 commit into
Open
fix(dedup): report fuzzy count in summary when exact_merges is 0 (#1857)#1860thejesh23 wants to merge 1 commit into
thejesh23 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
partslist so(N fuzzy)prints whether or not there were exact merges — previously theif fuzzy_mergesbranch was nested insideif exact_merges, and a doc-only / semantic-only run withexact_merges == 0printedDeduplicated N node(s).with no breakdown.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.