YETUS-983. test-patch confused by multiple commits that include rename#384
YETUS-983. test-patch confused by multiple commits that include rename#384ndimiduk merged 3 commits intoapache:mainfrom
Conversation
Flip dryrun_both_files to prefer cumulative .diff over per-commit .patch. The cumulative diff represents the PR's net change, avoiding stale files left on disk when format-patch stanzas add then rename/delete the same file. Generate the local diff with git diff --binary to preserve binary file handling that GitHub's API .diff endpoint strips. Fall back to the API .diff when local generation fails.
|
Okay I think I tracked this down. Looks like The cumulative In the patch I swap the logic of |
d96abd1 to
cc0929f
Compare
cc0929f to
6a8a8ce
Compare
|
If I remember correctly, the problem was that the diff format didn't support binary files so tests and the like would be missing content. |
That's what I thought. Looks like the world has changed since then, at least, I think that's what my new test is showing. |
aw-was-here
left a comment
There was a problem hiding this comment.
at this point, i don't know if it really matters. let's just flip it and see if anyone complains. or i guess we could provide a flag or something and then also make it settable in the action.
|
That sound good @aw-was-here . I'll merge this one and see if it fixes that HBase PR and I'll follow up with a new config flag. |
|
Filed YETUS-1276 for the follow-up. |
Flip dryrun_both_files to prefer cumulative .diff over per-commit .patch. The cumulative diff represents the PR's net change, avoiding stale files left on disk when format-patch stanzas add then rename/delete the same file.
Generate the local diff with git diff --binary to preserve binary file handling that GitHub's API .diff endpoint strips. Fall back to the API .diff when local generation fails.