Bug 50372 - nrwt multiprocessing - minor cleanup
Summary: nrwt multiprocessing - minor cleanup
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on: 50367
Blocks: 50374
  Show dependency treegraph
 
Reported: 2010-12-01 22:35 PST by Dirk Pranke
Modified: 2010-12-14 20:48 PST (History)
5 users (show)

See Also:


Attachments
Patch (20.54 KB, patch)
2010-12-01 22:42 PST, Dirk Pranke
no flags Details | Formatted Diff | Diff
yet more cleanup (21.07 KB, patch)
2010-12-01 23:42 PST, Dirk Pranke
no flags Details | Formatted Diff | Diff
remove whitespace diffs / reformatting (41.25 KB, patch)
2010-12-02 12:27 PST, Dirk Pranke
no flags Details | Formatted Diff | Diff
upload the incremental diff, not the whole diff (13.40 KB, patch)
2010-12-02 13:56 PST, Dirk Pranke
no flags Details | Formatted Diff | Diff
add port.default_worker_model, merge in fix from bug 50420, other review feedback (17.71 KB, patch)
2010-12-02 16:53 PST, 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 2010-12-01 22:35:27 PST
new-run-webkit-tests: minor cleanup for multiprocessing work
Comment 1 Dirk Pranke 2010-12-01 22:42:14 PST
Created attachment 75354 [details]
Patch
Comment 2 Dirk Pranke 2010-12-01 23:42:14 PST
Created attachment 75356 [details]
yet more cleanup
Comment 3 Eric Seidel (no email) 2010-12-02 09:21:27 PST
Comment on attachment 75356 [details]
yet more cleanup

I don't feel like line-wrapping patches are very useful.  But then again, I'm in the anti-80c camp. :)
Comment 4 Ojan Vafai 2010-12-02 10:17:27 PST
Comment on attachment 75356 [details]
yet more cleanup

I agree with Eric. We've decided not to do 80c in webkit python code, so changing a bunch of style to 80c just adds code churn. Can you upload this patch without the line-wrapping changes?
Comment 5 Dirk Pranke 2010-12-02 12:27:04 PST
Created attachment 75404 [details]
remove whitespace diffs / reformatting
Comment 6 Dirk Pranke 2010-12-02 12:28:51 PST
(In reply to comment #4)
> (From update of attachment 75356 [details])
> I agree with Eric. We've decided not to do 80c in webkit python code, so changing a bunch of style to 80c just adds code churn. Can you upload this patch without the line-wrapping changes?

Okay. Although I'm obviously in the 80c camp, I only was reformatting this stuff because the rest of the file had already been formatted to 80c, so the mix of < 80 and > 80 made things awkward (I figured consistency one way or another was better).

I've removed the line-wrapping, but I'm curious to your thoughts on the above?
Comment 7 Eric Seidel (no email) 2010-12-02 12:31:46 PST
I think you didn't mean to upload a squashed diff.
Comment 8 Dirk Pranke 2010-12-02 13:56:46 PST
Created attachment 75415 [details]
upload the incremental diff, not the whole diff
Comment 9 Dirk Pranke 2010-12-02 13:57:46 PST
(In reply to comment #7)
> I think you didn't mean to upload a squashed diff.

Whoops, you're right. Sorry! I was rushing out to meet someone for lunch. Fixed now.
Comment 10 Tony Chang 2010-12-02 16:26:05 PST
Comment on attachment 75415 [details]
upload the incremental diff, not the whole diff

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

> WebKitTools/Scripts/webkitpy/layout_tests/layout_package/message_broker.py:117
> +    def start_worker(self, worker_number):
> +        thread = super(_MultiThreadedBroker, self).start_worker(worker_number)

thread = _MultiThreadedBroker.start_worker(self, worker_number) for explicitness
Comment 11 Dirk Pranke 2010-12-02 16:53:43 PST
Created attachment 75434 [details]
add port.default_worker_model, merge in fix from bug 50420, other review feedback
Comment 12 Dirk Pranke 2010-12-02 16:56:08 PST
(In reply to comment #10)
> (From update of attachment 75415 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=75415&action=review
> 
> > WebKitTools/Scripts/webkitpy/layout_tests/layout_package/message_broker.py:117
> > +    def start_worker(self, worker_number):
> > +        thread = super(_MultiThreadedBroker, self).start_worker(worker_number)
> 
> thread = _MultiThreadedBroker.start_worker(self, worker_number) for explicitness

Actually, that would cause an infinite loop :) Correct version added.
Comment 13 Dirk Pranke 2010-12-02 16:56:56 PST
(In reply to comment #11)
> Created an attachment (id=75434) [details]
> add port.default_worker_model, merge in fix from bug 50420, other review feedback

This patch adds a way for us to do port-specific overrides to --worker-model, which I suspect we'll want as we stabilize this stuff and in case multiprocessing ends up not working that well on windows (or under cygwin).
Comment 14 Csaba Osztrogonác 2010-12-03 06:54:47 PST
http://trac.webkit.org/changeset/73222 has very strange commit log. (same as 73220) I think it might be a webkit-patch bug. Could you check it?
Comment 15 Eric Seidel (no email) 2010-12-03 08:32:27 PST
It's a problem when using git rebase.  It sometimes merges your changelog not to the top of the file.

We should have a SVN pre-commit hook, or webkit-patch step to validate that you're only adding to the top of the file (which is where we pull the commit message from).
Comment 16 Dirk Pranke 2010-12-03 13:55:24 PST
(In reply to comment #15)
> It's a problem when using git rebase.  It sometimes merges your changelog not to the top of the file.
> 
> We should have a SVN pre-commit hook, or webkit-patch step to validate that you're only adding to the top of the file (which is where we pull the commit message from).

In this case I think I was creating the patch using the -g foo..bar option, since I had a bunch of work on branches I was attempting to merge in. So I would bet this was user error, and not a bug in webkit-patch.

That said, I agree a presubmit check might be a good idea.
Comment 17 Dirk Pranke 2010-12-14 20:48:14 PST
Marking as WONTFIX - will re-split up the patches and re-land a different way.