Bug 118592 - check-webkit-style: Ignore false positive: Instance of 'Popen' has no 'pid' member
Summary: check-webkit-style: Ignore false positive: Instance of 'Popen' has no 'pid' m...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 118612
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-12 03:28 PDT by Brian Holt
Modified: 2013-07-15 09:32 PDT (History)
7 users (show)

See Also:


Attachments
Patch (1.28 KB, patch)
2013-07-12 03:33 PDT, Brian Holt
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 (489.15 KB, application/zip)
2013-07-12 06:27 PDT, Build Bot
no flags Details
Patch with unit test (3.67 KB, patch)
2013-07-12 10:10 PDT, Brian Holt
no flags Details | Formatted Diff | Diff
Updated patch with unit test (3.66 KB, patch)
2013-07-12 11:40 PDT, Brian Holt
no flags Details | Formatted Diff | Diff
Updated patch with unit test (3.66 KB, patch)
2013-07-12 12:22 PDT, Brian Holt
no flags Details | Formatted Diff | Diff
Patch (3.65 KB, patch)
2013-07-15 02:25 PDT, Brian Holt
no flags Details | Formatted Diff | Diff
Final patch (3.65 KB, patch)
2013-07-15 06:12 PDT, Brian Holt
no flags Details | Formatted Diff | Diff
Final patch (3.64 KB, patch)
2013-07-15 06:29 PDT, Brian Holt
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Holt 2013-07-12 03:28:49 PDT
$ Tools/Scripts/check-webkit-style Tools/Scripts/webkitpy/port/common.py
Tools/Scripts/webkitpy/port/common.py:129:  [RunSubprocess] Instance of 'Popen' has no 'pid' member (but some types could not be inferred)  [pylint/E1103] [5]
Tools/Scripts/webkitpy/port/common.py:132:  [RunSubprocess] Instance of 'Popen' has no 'pid' member (but some types could not be inferred)  [pylint/E1103] [5]
Tools/Scripts/webkitpy/port/common.py:133:  [RunSubprocess] Instance of 'Popen' has no 'pid' member (but some types could not be inferred)  [pylint/E1103] [5]

This is clearly an error because Popen does have a pid member: http://docs.python.org/2/library/subprocess.html
Popen.pid
    The process ID of the child process.
    Note that if you set the shell argument to True, this is the process ID of the spawned shell.

As recommended by dpranke in https://bugs.webkit.org/show_bug.cgi?id=101285#c16, this bug is to add the "Instance of 'Popen' has no 'pid' member" to the list of pylint false positives.
Comment 1 Brian Holt 2013-07-12 03:33:47 PDT
Created attachment 206520 [details]
Patch
Comment 2 Build Bot 2013-07-12 06:27:32 PDT
Comment on attachment 206520 [details]
Patch

Attachment 206520 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1063099

New failing tests:
fullscreen/full-screen-iframe-with-max-width-height.html
Comment 3 Build Bot 2013-07-12 06:27:34 PDT
Created attachment 206535 [details]
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-16  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.3
Comment 4 Brian Holt 2013-07-12 06:33:10 PDT
(In reply to comment #3)
> Created an attachment (id=206535) [details]
> Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2
> 
> The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
> Bot: webkit-ews-16  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.3

The failing test is clearly unrelated to the patch.
Comment 5 Martin Robinson 2013-07-12 08:05:38 PDT
Comment on attachment 206520 [details]
Patch

This could probably use a new test.
Comment 6 Brian Holt 2013-07-12 10:10:50 PDT
Created attachment 206552 [details]
Patch with unit test
Comment 7 WebKit Commit Bot 2013-07-12 10:12:49 PDT
Attachment 206552 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/webkitpy/style/checkers/python.py', u'Tools/Scripts/webkitpy/style/checkers/python_unittest.py', u'Tools/Scripts/webkitpy/style/checkers/python_unittest_falsepositives.py']" exit_code: 1
Tools/Scripts/webkitpy/style/checkers/python_unittest.py:77:  [PythonCheckerTest.test_pylint_false_positives] Undefined variable '_mock_handle_style_error'  [pylint/E0602] [5]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 WebKit Commit Bot 2013-07-12 11:37:23 PDT
Comment on attachment 206552 [details]
Patch with unit test

Clearing flags on attachment: 206552

Committed r152599: <http://trac.webkit.org/changeset/152599>
Comment 9 WebKit Commit Bot 2013-07-12 11:37:26 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Brian Holt 2013-07-12 11:40:04 PDT
Created attachment 206559 [details]
Updated patch with unit test
Comment 11 WebKit Commit Bot 2013-07-12 12:02:38 PDT
Re-opened since this is blocked by bug 118612
Comment 12 Brian Holt 2013-07-12 12:22:22 PDT
Created attachment 206562 [details]
Updated patch with unit test

Uploading again so that the bots can test.
Comment 13 Brian Holt 2013-07-12 13:45:46 PDT
Comment on attachment 206562 [details]
Updated patch with unit test

This patch is not applying cleanly, so I'm removing the review request and will upload a new version on Monday.
Comment 14 Brian Holt 2013-07-15 02:25:09 PDT
Created attachment 206649 [details]
Patch
Comment 15 Brian Holt 2013-07-15 06:12:27 PDT
Created attachment 206660 [details]
Final patch

All webkitpy tests now pass
Comment 16 Brian Holt 2013-07-15 06:25:39 PDT
Comment on attachment 206660 [details]
Final patch

Whoops! Just noticed that the ChangeLog is not correct.  My apologies for the churn.
Comment 17 Brian Holt 2013-07-15 06:29:14 PDT
Created attachment 206661 [details]
Final patch

Corrected ChangeLog, aplogoes for the churn.
Comment 18 WebKit Commit Bot 2013-07-15 09:32:16 PDT
Comment on attachment 206661 [details]
Final patch

Clearing flags on attachment: 206661

Committed r152639: <http://trac.webkit.org/changeset/152639>
Comment 19 WebKit Commit Bot 2013-07-15 09:32:21 PDT
All reviewed patches have been landed.  Closing bug.