RESOLVED WONTFIX50372
nrwt multiprocessing - minor cleanup
https://bugs.webkit.org/show_bug.cgi?id=50372
Summary nrwt multiprocessing - minor cleanup
Dirk Pranke
Reported 2010-12-01 22:35:27 PST
new-run-webkit-tests: minor cleanup for multiprocessing work
Attachments
Patch (20.54 KB, patch)
2010-12-01 22:42 PST, Dirk Pranke
no flags
yet more cleanup (21.07 KB, patch)
2010-12-01 23:42 PST, Dirk Pranke
no flags
remove whitespace diffs / reformatting (41.25 KB, patch)
2010-12-02 12:27 PST, Dirk Pranke
no flags
upload the incremental diff, not the whole diff (13.40 KB, patch)
2010-12-02 13:56 PST, Dirk Pranke
no flags
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+
Dirk Pranke
Comment 1 2010-12-01 22:42:14 PST
Dirk Pranke
Comment 2 2010-12-01 23:42:14 PST
Created attachment 75356 [details] yet more cleanup
Eric Seidel (no email)
Comment 3 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. :)
Ojan Vafai
Comment 4 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?
Dirk Pranke
Comment 5 2010-12-02 12:27:04 PST
Created attachment 75404 [details] remove whitespace diffs / reformatting
Dirk Pranke
Comment 6 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?
Eric Seidel (no email)
Comment 7 2010-12-02 12:31:46 PST
I think you didn't mean to upload a squashed diff.
Dirk Pranke
Comment 8 2010-12-02 13:56:46 PST
Created attachment 75415 [details] upload the incremental diff, not the whole diff
Dirk Pranke
Comment 9 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.
Tony Chang
Comment 10 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
Dirk Pranke
Comment 11 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
Dirk Pranke
Comment 12 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.
Dirk Pranke
Comment 13 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).
Csaba Osztrogonác
Comment 14 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?
Eric Seidel (no email)
Comment 15 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).
Dirk Pranke
Comment 16 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.
Dirk Pranke
Comment 17 2010-12-14 20:48:14 PST
Marking as WONTFIX - will re-split up the patches and re-land a different way.
Note You need to log in before you can comment on or make changes to this bug.