Bug 78168 - nrwt: run_webkit_tests_integrationtest.py depends on being able to share a port w/ between master and worker
Summary: nrwt: run_webkit_tests_integrationtest.py depends on being able to share a po...
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: Dirk Pranke
URL:
Keywords: NRWT
Depends on:
Blocks: 103824
  Show dependency treegraph
 
Reported: 2012-02-08 15:40 PST by Dirk Pranke
Modified: 2012-12-05 16:54 PST (History)
7 users (show)

See Also:


Attachments
Patch (39.10 KB, patch)
2012-12-05 15:58 PST, Dirk Pranke
ojan: review+
gtk-ews: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2012-02-08 15:40:26 PST
Some of the integration tests in run_webkit_tests_integrationtest.py depend on being able to pass data back and forth in shared memory between 'manager' and 'worker'; this only happens to work when we have inline workers, and this causes complications in the manager_worker_broker interface (because we need to pass the shared host and port back and forth).

These tests should be rewritten to either be true unit tests or to be proper black-box integration tests that don't rely on custom ports.
Comment 1 Dirk Pranke 2012-12-05 15:58:05 PST
Created attachment 177853 [details]
Patch
Comment 2 Dirk Pranke 2012-12-05 15:59:58 PST
Note that the original problem in the description was that we had to jump through some hoops in the message_pool (nee manager_worker_broker) classes in order to pass the shared port across; this was fixed some time ago by proper use of MockHosts and propagating the host across. 

However, the test code was still ugly as a result of the faking/overriding going on, so this makes things (IMO) quite a bit cleaner and clearer.
Comment 3 WebKit Review Bot 2012-12-05 16:00:29 PST
Attachment 177853 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/webkitpy..." exit_code: 1
Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:155:  [get_test_results] Passing unexpected keyword argument 'logging_stream' in function call  [pylint/E1123] [5]
Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:160:  [get_test_results] Instance of 'int' has no 'result_summary' member (but some types could not be inferred)  [pylint/E1103] [5]
Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:161:  [get_test_results] Instance of 'int' has no 'result_summary' member (but some types could not be inferred)  [pylint/E1103] [5]
Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:163:  [get_test_results] Instance of 'int' has no 'retry_summary' member (but some types could not be inferred)  [pylint/E1103] [5]
Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:164:  [get_test_results] Instance of 'int' has no 'retry_summary' member (but some types could not be inferred)  [pylint/E1103] [5]
Total errors found: 5 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 kov's GTK+ EWS bot 2012-12-05 16:12:20 PST
Comment on attachment 177853 [details]
Patch

Attachment 177853 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/15158485
Comment 5 Dirk Pranke 2012-12-05 16:45:39 PST
I think the style failures are due to the style bot being behind; the code is correct and check-webkit-style runs cleanly on my machine. I've filed bug 104190 for that.
Comment 6 Dirk Pranke 2012-12-05 16:54:37 PST
Committed r136780: <http://trac.webkit.org/changeset/136780>