feat(transfer): wire --debug=FUZZY producer emissions (3.4.1 parity)#4109
Merged
Conversation
Adds byte-for-byte FUZZY debug emissions matching upstream rsync's generator.c: - FUZZY,1 "fuzzy basis selected for <target>: <basis>" at the receiver basis search site whenever the fuzzy matcher returns a candidate. - FUZZY,2 "fuzzy distance for <candidate> = <score>.<frac>" per scored candidate inside FuzzyMatcher::find_fuzzy_basis search loop. - FUZZY,2 "fuzzy size/modtime match for <candidate>" helper exported for future wiring sites. Includes per-emission shape tests and a receiver-side integration test confirming the FUZZY,1 line fires through find_basis_file_with_config under --debug=FUZZY. Refs #2185.
Merged
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4109) * feat(transfer): wire --debug=FUZZY producer emissions (3.4.1 parity) Adds byte-for-byte FUZZY debug emissions matching upstream rsync's generator.c: - FUZZY,1 "fuzzy basis selected for <target>: <basis>" at the receiver basis search site whenever the fuzzy matcher returns a candidate. - FUZZY,2 "fuzzy distance for <candidate> = <score>.<frac>" per scored candidate inside FuzzyMatcher::find_fuzzy_basis search loop. - FUZZY,2 "fuzzy size/modtime match for <candidate>" helper exported for future wiring sites. Includes per-emission shape tests and a receiver-side integration test confirming the FUZZY,1 line fires through find_basis_file_with_config under --debug=FUZZY. Refs #2185. * style: cargo fmt
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4109) * feat(transfer): wire --debug=FUZZY producer emissions (3.4.1 parity) Adds byte-for-byte FUZZY debug emissions matching upstream rsync's generator.c: - FUZZY,1 "fuzzy basis selected for <target>: <basis>" at the receiver basis search site whenever the fuzzy matcher returns a candidate. - FUZZY,2 "fuzzy distance for <candidate> = <score>.<frac>" per scored candidate inside FuzzyMatcher::find_fuzzy_basis search loop. - FUZZY,2 "fuzzy size/modtime match for <candidate>" helper exported for future wiring sites. Includes per-emission shape tests and a receiver-side integration test confirming the FUZZY,1 line fires through find_basis_file_with_config under --debug=FUZZY. Refs #2185. * style: cargo fmt
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
--debug=FUZZYflag to actual producer emissions matching upstream rsync 3.4.1'sgenerator.cbyte-for-byte."fuzzy basis selected for <target>: <basis>"headline at FUZZY,1 inside the receiver basis search wheneverFuzzyMatcherreturns a candidate."fuzzy distance for <name> = <score>.00000"line at FUZZY,2 inside the directory scan, plus an exportedtrace_fuzzy_size_mtime_matchhelper ready for the size+mtime fast path.Test plan
crates/matching/src/fuzzy/trace.rs.fuzzy_basis_selection_emits_debug_fuzzy_linedrivesfind_basis_file_with_configunder FUZZY=1 and asserts the upstream-format selection line lands on the diagnostic bus.Closes #2185