WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137904
PatchAnalysisTask._test_patch() needs refactoring
https://bugs.webkit.org/show_bug.cgi?id=137904
Summary
PatchAnalysisTask._test_patch() needs refactoring
Jake Nielsen
Reported
2014-10-20 17:39:48 PDT
As it stands, there are many special cases and mystifying helper objects. The special cases should be organized more uniformly, and the mystifying helper objects should be removed.
Attachments
Refactoring!
(35.41 KB, patch)
2014-10-21 18:36 PDT
,
Jake Nielsen
no flags
Details
Formatted Diff
Diff
Adds some comments, and fixes a bug
(35.91 KB, patch)
2014-10-22 11:45 PDT
,
Jake Nielsen
no flags
Details
Formatted Diff
Diff
Adds FIXMEs to tests, and sets the test expectations to agree with current behavior.
(11.61 KB, patch)
2014-10-22 15:38 PDT
,
Jake Nielsen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Jake Nielsen
Comment 1
2014-10-21 18:36:25 PDT
Created
attachment 240236
[details]
Refactoring!
Alexey Proskuryakov
Comment 2
2014-10-22 09:50:38 PDT
Comment on
attachment 240236
[details]
Refactoring! View in context:
https://bugs.webkit.org/attachment.cgi?id=240236&action=review
> Tools/Scripts/webkitpy/tool/bot/patchanalysistask.py:191 > + if (len(results.failing_tests()) - len(self._clean_tree_results.failing_tests())) <= 5: > + return False
I think that this code would benefit from somewhat more comments. E.g., here we could explain that the clean tree has so many failures that we can't be certain if having a few more means that the patch introduces a regression.
> Tools/Scripts/webkitpy/tool/bot/patchanalysistask.py:245 > - return False > + return True
I became confused here. Perhaps the best path forward is to walk over the patch line by line in person - or maybe you can get a review from someone who really knows Python and can read it more easily.
Jake Nielsen
Comment 3
2014-10-22 11:45:09 PDT
Created
attachment 240285
[details]
Adds some comments, and fixes a bug
WebKit Commit Bot
Comment 4
2014-10-22 13:04:36 PDT
Comment on
attachment 240285
[details]
Adds some comments, and fixes a bug Clearing flags on attachment: 240285 Committed
r175063
: <
http://trac.webkit.org/changeset/175063
>
WebKit Commit Bot
Comment 5
2014-10-22 13:04:39 PDT
All reviewed patches have been landed. Closing bug.
Jake Nielsen
Comment 6
2014-10-22 15:38:48 PDT
Created
attachment 240298
[details]
Adds FIXMEs to tests, and sets the test expectations to agree with current behavior.
Jake Nielsen
Comment 7
2014-10-22 15:39:37 PDT
Comment on
attachment 240298
[details]
Adds FIXMEs to tests, and sets the test expectations to agree with current behavior. Commented on the wrong bug..
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug