RESOLVED FIXED 82112
nrwt: remove --worker-model flag
https://bugs.webkit.org/show_bug.cgi?id=82112
Summary nrwt: remove --worker-model flag
Dirk Pranke
Reported 2012-03-23 18:33:47 PDT
nrwt: remove --worker-model flag
Attachments
Patch (23.38 KB, patch)
2012-03-23 18:35 PDT, Dirk Pranke
abarth: review+
Dirk Pranke
Comment 1 2012-03-23 18:35:12 PDT
Adam Barth
Comment 2 2012-03-24 21:24:01 PDT
Comment on attachment 133609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=133609&action=review > Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:763 > - if self._options.worker_model == 'inline': > + if self._options.child_processes == 1: Should we use self._options.child_processes == 0 for inline (rather than child_processes == 1)? In the inline model, there aren't any child processes, right?
Dirk Pranke
Comment 3 2012-03-24 23:10:18 PDT
(In reply to comment #2) > (From update of attachment 133609 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=133609&action=review > > > Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:763 > > - if self._options.worker_model == 'inline': > > + if self._options.child_processes == 1: > > Should we use self._options.child_processes == 0 for inline (rather than child_processes == 1)? In the inline model, there aren't any child processes, right? Depends on how you look at it, but the real answer is that child_processes is actually kind of a bad name, it should really be --workers or --jobs.
Dirk Pranke
Comment 4 2012-03-25 13:59:46 PDT
(In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 133609 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=133609&action=review > > > > > Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:763 > > > - if self._options.worker_model == 'inline': > > > + if self._options.child_processes == 1: > > > > Should we use self._options.child_processes == 0 for inline (rather than child_processes == 1)? In the inline model, there aren't any child processes, right? > > Depends on how you look at it, but the real answer is that child_processes is actually kind of a bad name, it should really be --workers or --jobs. Another way of looking at it is that --child-processes actually refers to the # of DRTs running in parallel; what's going on in the Python code is beside the point.
Adam Barth
Comment 5 2012-03-26 14:12:05 PDT
Comment on attachment 133609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=133609&action=review I like that this patch deletes a bunch of code. I'm slightly worried about overloading the semantics of --child-processes, but I don't think that's a big deal. > Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:790 > + This change seems spurious.
Dirk Pranke
Comment 6 2012-03-26 14:20:32 PDT
(In reply to comment #5) > (From update of attachment 133609 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=133609&action=review > > I like that this patch deletes a bunch of code. I'm slightly worried about overloading the semantics of --child-processes, but I don't think that's a big deal. I'd be surprised if anybody but me really used --worker-model=inline much. > > > Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:790 > > + > > This change seems spurious. Indeed. Will fix. Thanks for the review!
Dirk Pranke
Comment 7 2012-03-26 20:16:30 PDT
Change committed in http://trac.webkit.org/changeset/112171. The changelog on that change is wrong due to a bad merge (or possibly a bug in webkit-patch, I'm not sure).
Note You need to log in before you can comment on or make changes to this bug.