Bug 127419 - Refactor diff_parser
Summary: Refactor diff_parser
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 02:30 PST by Dániel Bátyai
Modified: 2024-03-11 18:07 PDT (History)
7 users (show)

See Also:


Attachments
Proposed patch (15.73 KB, patch)
2014-01-22 02:31 PST, Dániel Bátyai
no flags Details | Formatted Diff | Diff
Proposed patch (15.75 KB, patch)
2014-01-22 02:37 PST, Dániel Bátyai
no flags Details | Formatted Diff | Diff
Proposed patch (15.90 KB, patch)
2014-01-24 01:06 PST, Dániel Bátyai
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dániel Bátyai 2014-01-22 02:30:17 PST
Refactor diff_parser.py, and change it to compile regexes up-front instead of caching them
Comment 1 Dániel Bátyai 2014-01-22 02:31:25 PST
Created attachment 221845 [details]
Proposed patch
Comment 2 WebKit Commit Bot 2014-01-22 02:32:36 PST
Attachment 221845 [details] did not pass style-queue:


ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:78:  no spaces around keyword / parameter equals  [pep8/E251] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:101:  too many blank lines (2)  [pep8/E303] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:102:  multiple spaces after operator  [pep8/E222] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:110:  missing whitespace around operator  [pep8/E225] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:113:  too many blank lines (2)  [pep8/E303] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:127:  too many blank lines (2)  [pep8/E303] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:131:  too many blank lines (2)  [pep8/E303] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:149:  too many blank lines (2)  [pep8/E303] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:154:  missing whitespace around operator  [pep8/E225] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser.py:160:  too many blank lines (2)  [pep8/E303] [5]
Total errors found: 10 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dániel Bátyai 2014-01-22 02:37:24 PST
Created attachment 221846 [details]
Proposed patch
Comment 4 Zoltan Horvath 2014-01-22 15:21:43 PST
Comment on attachment 221846 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=221846&action=review

> Tools/ChangeLog:3
> +        Refactor diff_parser

Although the patch looks reasonable, can you please include the addressed issues in the changelog?
Comment 5 Dániel Bátyai 2014-01-24 01:06:05 PST
Created attachment 222086 [details]
Proposed patch

Added addressed issues to changlelog
Comment 6 Ahmad Saleem 2024-03-11 18:07:56 PDT
Just looking quickly, it seems that we have one FIXME at least:

https://searchfox.org/wubkat/rev/711120e7edec012527620d07bf63d85713a180fd/Tools/Scripts/webkitpy/common/checkout/diff_parser.py#41

CCing - some people for input, whether it is good to merge this.

@Sam - appreciate your input. :-)