Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(803)

Issue 1640001: Add -j option to gclient to run parallel updates (Closed)

Created:
10 years, 8 months ago by piman
Modified:
9 years, 7 months ago
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

Add -j option to gclient to run parallel updates On a chromeos checkout, -j 10 brings down null sync time from 2 minutes to 16 seconds Currently -j may break some assumptions about ordering of commands (which may be fine for some clients, but not all), so it's not on by default. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44869

Patch Set 1 #

Total comments: 12

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : python 2.4 #

Patch Set 7 : fix ctrl-c #

Patch Set 8 : fix bug with File() #

Patch Set 9 : updated test to catch last failure #

Patch Set 10 : rebase #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : update to tot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -127 lines) Patch
M gclient View 1 chunk +0 lines, -60 lines 0 comments Download
M gclient.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +139 lines, -62 lines 0 comments Download
M gclient_utils.py View 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +140 lines, -0 lines 0 comments Download
M tests/gclient_utils_test.py View 11 12 13 14 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
piman
10 years, 8 months ago (2010-04-10 00:57:45 UTC) #1
M-A Ruel
I like the idea but even if it's optional, it could still be a breaking ...
10 years, 8 months ago (2010-04-10 01:16:58 UTC) #2
piman
Other than noted, I will do the suggested changes. I'll do more testing next week, ...
10 years, 8 months ago (2010-04-10 01:48:44 UTC) #3
M-A Ruel
lgtm
10 years, 8 months ago (2010-04-10 01:59:41 UTC) #4
piman
PTAL. If you'd rather wait on a week-end for the checkin, let me know. We ...
10 years, 8 months ago (2010-04-12 23:51:57 UTC) #5
M-A Ruel
On 2010/04/12 23:51:57, piman wrote: > PTAL. If you'd rather wait on a week-end for ...
10 years, 8 months ago (2010-04-13 01:15:09 UTC) #6
M-A Ruel
http://codereview.chromium.org/1640001/diff/10001/11001 File gclient.py (right): http://codereview.chromium.org/1640001/diff/10001/11001#newcode800 gclient.py:800: # Instead of duplicating the tests, it's less fragile ...
10 years, 8 months ago (2010-04-13 01:15:20 UTC) #7
piman
http://codereview.chromium.org/1640001/diff/10001/11001 File gclient.py (right): http://codereview.chromium.org/1640001/diff/10001/11001#newcode800 gclient.py:800: # Instead of duplicating the tests, it's less fragile ...
10 years, 8 months ago (2010-04-13 01:40:56 UTC) #8
piman
On Mon, Apr 12, 2010 at 6:40 PM, <piman@chromium.org> wrote: > > http://codereview.chromium.org/1640001/diff/10001/11001 > File ...
10 years, 8 months ago (2010-04-17 01:17:38 UTC) #9
M-A Ruel
On 2010/04/17 01:17:38, piman wrote: > I did some extra testing, and so did another ...
10 years, 8 months ago (2010-04-17 01:42:50 UTC) #10
piman
On Fri, Apr 16, 2010 at 6:42 PM, <maruel@chromium.org> wrote: > On 2010/04/17 01:17:38, piman ...
10 years, 8 months ago (2010-04-17 01:54:38 UTC) #11
piman
On Fri, Apr 16, 2010 at 6:54 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
10 years, 8 months ago (2010-04-17 02:55:07 UTC) #12
piman
PTAL. I fixed it to run with python 2.4: - fixed finally clause syntax - ...
10 years, 8 months ago (2010-04-20 23:22:40 UTC) #13
M-A Ruel
lgtm
10 years, 8 months ago (2010-04-21 00:56:42 UTC) #14
Nasser Grainawi
This seems to have some unwanted behavior when you try to Ctrl+C with -j1. It ...
10 years, 8 months ago (2010-04-21 15:57:45 UTC) #15
M-A Ruel
On 2010/04/21 15:57:45, Nasser Grainawi wrote: > This seems to have some unwanted behavior when ...
10 years, 8 months ago (2010-04-21 16:55:32 UTC) #16
Nasser Grainawi
maruel@chromium.org wrote: > On 2010/04/21 15:57:45, Nasser Grainawi wrote: >> This seems to have some ...
10 years, 8 months ago (2010-04-21 17:26:29 UTC) #17
piman
On Wed, Apr 21, 2010 at 10:26 AM, Nasser Grainawi <nasser@codeaurora.org>wrote: > maruel@chromium.org wrote: > ...
10 years, 8 months ago (2010-04-21 18:43:25 UTC) #18
piman
With this new version, ctrl-c works on python 2.5+, but I can't figure out how ...
10 years, 8 months ago (2010-04-22 03:57:31 UTC) #19
M-A Ruel
I don't think it's a big deal, 2.4 is slowly being phased so as long ...
10 years, 8 months ago (2010-04-22 12:50:10 UTC) #20
M-A Ruel
lgtm
10 years, 8 months ago (2010-04-22 16:01:47 UTC) #21
jamesr
I think you broke the build.webkit.org chromium builders, they are all dying with an error ...
10 years, 8 months ago (2010-04-27 01:51:07 UTC) #22
piman
PTAL... Hopefully that'll work this time. I ran update-webkit-chromium and that seems to work, but ...
10 years, 8 months ago (2010-04-27 03:01:39 UTC) #23
piman
On Mon, Apr 26, 2010 at 8:01 PM, <piman@chromium.org> wrote: > PTAL... Hopefully that'll work ...
10 years, 8 months ago (2010-04-27 03:08:19 UTC) #24
tony
The changes from patchset 7 LGTM.
10 years, 8 months ago (2010-04-27 03:21:37 UTC) #25
M-A Ruel
I don't fully grasp the subtlety in this area but it lgtm. Desperately need a ...
10 years, 7 months ago (2010-04-27 13:31:42 UTC) #26
piman
Ok, so after a long hiatus, this CL is back. I rebased to top-of-trunk. I ...
10 years, 6 months ago (2010-06-18 05:19:52 UTC) #27
M-A Ruel
I'm sorry to throttle you down but do you mind waiting for http://codereview.chromium.org/2627007. If you ...
10 years, 6 months ago (2010-06-18 13:58:38 UTC) #28
piman
10 years, 6 months ago (2010-06-18 21:14:10 UTC) #29
On Fri, Jun 18, 2010 at 6:58 AM, <maruel@chromium.org> wrote:

> I'm sorry to throttle you down but do you mind waiting for
> http://codereview.chromium.org/2627007.
>
> If you look at this review, you'll see each dependency in each DEPS file is
> a
> Dependency object on its own, making dependency management much saner than
> with
> a flat dict object. I've been splitting up this review in little bits for
> almost
> two weeks now, the last change to be reviewed being
> http://codereview.chromium.org/2839008/show.
>
> Note that I really want parallel checkout to be enabled ASAP but the
> refactor
> I've been doing conflicts a lot with this change. At least you won't need a
> closure anymore. Each Dependency() can have its own subprocess.Popen()
> handle
> and multiplex the output in a single thread, no need for multiple threads
> anymore either.


I'll wait and rewrite it then.
I'd like to get rid of threads if possible. I won't be able to get rid of
the closures, because some work happens after the subprocess spawns that
depend on their result, but closures aren't a bad thing. It may also fix the
ordering (which wasn't an issue in my experience, but I'd feel more
comfortable if fixed).


>
>
> http://codereview.chromium.org/1640001/show
>

Powered by Google App Engine
This is Rietveld 408576698