Bug 167164

Summary: check-webkit-style does not work with files being added with a property change and svn 1.9
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: REOPENED ---    
Severity: Normal CC: buildbot, commit-queue, dbates, glenn, lforschler, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=166948
https://bugs.webkit.org/show_bug.cgi?id=167167
https://bugs.webkit.org/show_bug.cgi?id=174551
Attachments:
Description Flags
Patch
none
Patch none

Description Jonathan Bedard 2017-01-18 10:08:12 PST
check-webkit-style will output error messages when a file is added and it's properties are changed in svn 1.9.
Comment 1 Radar WebKit Bug Importer 2017-01-18 10:10:05 PST
<rdar://problem/30077060>
Comment 2 Jonathan Bedard 2017-01-18 12:14:30 PST
This error should also occur when simply changing a file's properties, but there is another bug in svn-create-patch, so this issue will only reproduce if a file is both changed and it's properties are changed.  Bug 167167 tracks this issue.
Comment 3 Jonathan Bedard 2017-01-18 14:29:49 PST
Created attachment 299183 [details]
Patch
Comment 4 WebKit Commit Bot 2017-01-18 14:32:01 PST
Attachment 299183 [details] did not pass style-queue:


ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser_unittest.py:144:  trailing whitespace  [pep8/W291] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser_unittest.py:146:  trailing whitespace  [pep8/W291] [5]
Total errors found: 2 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Jonathan Bedard 2017-01-18 15:28:42 PST
(In reply to comment #4)
> Attachment 299183 [details] did not pass style-queue:
> 
> 
> ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser_unittest.py:144: 
> trailing whitespace  [pep8/W291] [5]
> ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser_unittest.py:146: 
> trailing whitespace  [pep8/W291] [5]
> Total errors found: 2 in 3 files
> 
> 
> If any of these errors are false positives, please file a bug against
> check-webkit-style.

These are a unique case for check-webkit-style.  They are referencing style errors in strings which are representing patches.  Bug 167181 tracks this.
Comment 6 Jonathan Bedard 2017-03-21 12:43:52 PDT
Created attachment 305013 [details]
Patch
Comment 7 Build Bot 2017-03-22 02:31:13 PDT
Attachment 305013 [details] did not pass style-queue:


ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser_unittest.py:144:  trailing whitespace  [pep8/W291] [5]
ERROR: Tools/Scripts/webkitpy/common/checkout/diff_parser_unittest.py:146:  trailing whitespace  [pep8/W291] [5]
Total errors found: 2 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 Jonathan Bedard 2017-07-17 10:21:54 PDT
Comment on attachment 305013 [details]
Patch

Sam has a better fix for this issue in <https://bugs.webkit.org/show_bug.cgi?id=174551>
Comment 9 Jonathan Bedard 2017-07-17 10:23:04 PDT
Resolved in <https://trac.webkit.org/changeset/219540/webkit>.
Comment 10 Jonathan Bedard 2017-07-17 11:01:34 PDT
I had initially tested this incorrectly.  Sam's fix did not address this issue.