-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve TestPatch to make it much quicker when there are no conflicts and large files #15314
Conversation
… and large files Signed-off-by: Andrew Thornton <art27@cantab.net>
This PR should save at least 12s in our tests. Was: Is: |
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Ready |
This comment has been minimized.
This comment has been minimized.
@a1012112796 All of your changes are covered in
and are much faster and better covered in that. git read-tree -m --aggressive handles renames correctly amongst other things - your changes do not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some logic simplify about else
:)
Now this function is a little long(near 190 lines) .......... |
Signed-off-by: Andrew Thornton <art27@cantab.net>
Have split it up and added a few more comments |
Codecov Report
@@ Coverage Diff @@
## main #15314 +/- ##
=======================================
Coverage 44.01% 44.01%
=======================================
Files 681 681
Lines 82351 82393 +42
=======================================
+ Hits 36249 36269 +20
- Misses 40194 40213 +19
- Partials 5908 5911 +3
Continue to review full report at Codecov.
|
this did not recognize a custom created conflict: to reproduce:
|
Damn - I'll take a look. In the meantime let me mark this as WIP |
Replaced by #18004 |
Prior to this PR essentially the test patch code was git diff -p --binary mergebase base head | git apply --check --cached
This is extremely slow if there are large binary files and the implementation dumped large temporary files on to the system.
We therefore propose a different option here:
Signed-off-by: Andrew Thornton art27@cantab.net