Bug 90513 - nrwt: reimplement manager_worker_broker in a much simpler form
Summary: nrwt: reimplement manager_worker_broker in a much simpler form
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords: NRWT
Depends on:
Blocks: 89725
  Show dependency treegraph
 
Reported: 2012-07-03 19:41 PDT by Dirk Pranke
Modified: 2012-07-12 13:23 PDT (History)
4 users (show)

See Also:


Attachments
Patch (37.36 KB, patch)
2012-07-03 20:20 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
merge to r122394 (36.42 KB, patch)
2012-07-11 18:14 PDT, Dirk Pranke
ojan: review+
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-07-03 19:41:35 PDT
nrwt: reimplement manager_worker_broker in a much simpler form
Comment 1 Dirk Pranke 2012-07-03 20:20:14 PDT
Created attachment 150711 [details]
Patch
Comment 2 Dirk Pranke 2012-07-11 18:14:01 PDT
Created attachment 151830 [details]
merge to r122394
Comment 3 Ojan Vafai 2012-07-12 10:50:24 PDT
Comment on attachment 151830 [details]
merge to r122394

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

That's a lot of deleted code!

> Tools/ChangeLog:19
> +        I'm removing manager_worker_broker_unittest.py as well; we get
> +        nearly complete coverage from the integration tests, and will
> +        get more coverage when test-webkitpy moves to use this as well,
> +        so having unit tests seems like unnecessary overhead. (running
> +        coverage numbers with test-webkitpy shows that pretty much the only
> +        uncovered lines are lines that are only run in the child processes,
> +        which coverage doesn't handle at the moment).

I'm a little torn about this. I think it makes it harder to make changes to this code in the future and have confidence. On the other hand, I believe you that integration tests cover most of the code paths.

abarth, wdyt?

> Tools/Scripts/webkitpy/layout_tests/controllers/manager_worker_broker.py:98
> +            worker.running_inline = self._running_inline

Should running_inline and manager just be arguments to the constructor? There doesn't seem to be benefit to setting those after the constructor.
Comment 4 Adam Barth 2012-07-12 10:54:59 PDT
> abarth, wdyt?

IMHO, it's fine.  We run the integration tests by default, so we're not missing out on too much test coverage.
Comment 5 Dirk Pranke 2012-07-12 12:30:28 PDT
(In reply to comment #3)
> > Tools/Scripts/webkitpy/layout_tests/controllers/manager_worker_broker.py:98
> > +            worker.running_inline = self._running_inline
> 
> Should running_inline and manager just be arguments to the constructor? There doesn't seem to be benefit to setting those after the constructor.

Sure, I can make that change.
Comment 6 Dirk Pranke 2012-07-12 13:23:20 PDT
Committed r122497: <http://trac.webkit.org/changeset/122497>