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

Issue 799673003: Always download google_play_services zip package instead of rsync. (Closed)

Created:
5 years, 11 months ago by navabi
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always download google_play_services zip package instead of rsync. On the bots the rsync technique to download packages (see bug for more details) takes too long. It takes almost 30 seconds even when the package is already on the bot. Instead always download the zip and unzip it. BUG=350151 Committed: https://crrev.com/24606e2106ec9029e042353feaa84555708aefd0 Cr-Commit-Position: refs/heads/master@{#310135}

Patch Set 1 #

Patch Set 2 : Fix comment length to be > 80 chars. #

Total comments: 13

Patch Set 3 : Only download if file does not exist, always extract. #

Patch Set 4 : Add clean to remove existing package. #

Total comments: 8

Patch Set 5 : Addressed cjhopman's review. #

Total comments: 4

Patch Set 6 : Remove unnecessary comment. #

Patch Set 7 : Don't manually check returncode. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -38 lines) Patch
M DEPS View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M build/download_sdk_extras.py View 1 2 3 4 5 6 2 chunks +27 lines, -36 lines 1 comment Download

Messages

Total messages: 29 (4 generated)
navabi
hinoka@ indicated that rsync may take a long time. I tested locally and it did ...
5 years, 11 months ago (2014-12-31 00:28:28 UTC) #2
navabi
> This changes it so that it always downloads and unzips a zip file for ...
5 years, 11 months ago (2014-12-31 00:30:11 UTC) #3
hinoka
https://codereview.chromium.org/799673003/diff/20001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/20001/build/download_sdk_extras.py#newcode36 build/download_sdk_extras.py:36: # If successfully read bucket, then this must be ...
5 years, 11 months ago (2014-12-31 00:32:56 UTC) #4
navabi
https://codereview.chromium.org/799673003/diff/20001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/20001/build/download_sdk_extras.py#newcode36 build/download_sdk_extras.py:36: # If successfully read bucket, then this must be ...
5 years, 11 months ago (2014-12-31 00:37:59 UTC) #5
cjhopman
https://codereview.chromium.org/799673003/diff/20001/DEPS File DEPS (right): https://codereview.chromium.org/799673003/diff/20001/DEPS#newcode561 DEPS:561: # Add package and zip file to .gitignore in ...
5 years, 11 months ago (2014-12-31 00:39:29 UTC) #6
cjhopman
https://codereview.chromium.org/799673003/diff/20001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/20001/build/download_sdk_extras.py#newcode43 build/download_sdk_extras.py:43: # Package zip is named <folder>_<package_name>_<version>.zip. Unzipping On 2014/12/31 ...
5 years, 11 months ago (2014-12-31 00:41:50 UTC) #7
nyquist
https://codereview.chromium.org/799673003/diff/20001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/20001/build/download_sdk_extras.py#newcode43 build/download_sdk_extras.py:43: # Package zip is named <folder>_<package_name>_<version>.zip. Unzipping On 2014/12/31 ...
5 years, 11 months ago (2014-12-31 00:42:43 UTC) #8
hinoka
An alternate solution is to use download_from_google_storage.py, where you'd check in a (or a series ...
5 years, 11 months ago (2014-12-31 00:45:14 UTC) #9
navabi
> But it seems like a quick optimization for this script would be to say ...
5 years, 11 months ago (2015-01-02 21:39:27 UTC) #10
cjhopman
On 2015/01/02 21:39:27, navabi wrote: > > But it seems like a quick optimization for ...
5 years, 11 months ago (2015-01-02 21:52:42 UTC) #11
navabi
PTAL. The newest patch will download the zip file only if it doesn't already exist. ...
5 years, 11 months ago (2015-01-06 00:32:09 UTC) #12
cjhopman
https://codereview.chromium.org/799673003/diff/20001/DEPS File DEPS (right): https://codereview.chromium.org/799673003/diff/20001/DEPS#newcode561 DEPS:561: # Add package and zip file to .gitignore in ...
5 years, 11 months ago (2015-01-06 02:04:04 UTC) #13
navabi
https://codereview.chromium.org/799673003/diff/60001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/60001/build/download_sdk_extras.py#newcode32 build/download_sdk_extras.py:32: cmd_lst = ['rm', '-rf', local_dir] On 2015/01/06 02:04:04, cjhopman ...
5 years, 11 months ago (2015-01-06 19:10:13 UTC) #14
navabi
Thanks cjhopman for the reviews. PTAL.
5 years, 11 months ago (2015-01-06 19:13:25 UTC) #15
cjhopman
lgtm https://codereview.chromium.org/799673003/diff/80001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/80001/build/download_sdk_extras.py#newcode51 build/download_sdk_extras.py:51: rc = subprocess.check_call([GSUTIL_PATH, '--force-version', '4.7', 'cp', don't need ...
5 years, 11 months ago (2015-01-06 19:14:23 UTC) #16
nyquist
https://codereview.chromium.org/799673003/diff/80001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/80001/build/download_sdk_extras.py#newcode51 build/download_sdk_extras.py:51: rc = subprocess.check_call([GSUTIL_PATH, '--force-version', '4.7', 'cp', Do you need ...
5 years, 11 months ago (2015-01-06 19:14:55 UTC) #17
cjhopman
https://codereview.chromium.org/799673003/diff/80001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/80001/build/download_sdk_extras.py#newcode51 build/download_sdk_extras.py:51: rc = subprocess.check_call([GSUTIL_PATH, '--force-version', '4.7', 'cp', On 2015/01/06 19:14:55, ...
5 years, 11 months ago (2015-01-06 19:16:44 UTC) #18
navabi
https://codereview.chromium.org/799673003/diff/80001/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/799673003/diff/80001/build/download_sdk_extras.py#newcode51 build/download_sdk_extras.py:51: rc = subprocess.check_call([GSUTIL_PATH, '--force-version', '4.7', 'cp', On 2015/01/06 19:16:42, ...
5 years, 11 months ago (2015-01-06 19:25:26 UTC) #19
nyquist
lgtm
5 years, 11 months ago (2015-01-06 19:26:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799673003/120001
5 years, 11 months ago (2015-01-06 19:30:09 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 11 months ago (2015-01-06 20:47:25 UTC) #23
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/24606e2106ec9029e042353feaa84555708aefd0 Cr-Commit-Position: refs/heads/master@{#310135}
5 years, 11 months ago (2015-01-06 20:48:13 UTC) #24
kjellander_chromium
Adding a comment about the bad assumption of having the depot tools four directories above ...
5 years, 10 months ago (2015-01-28 11:05:09 UTC) #26
Raphael Kubo da Costa (rakuco)
For the record, this is also affecting our downstream bots in Crosswalk, as the directory ...
5 years, 10 months ago (2015-01-29 00:21:06 UTC) #28
kjellander_chromium
5 years, 10 months ago (2015-02-01 19:06:23 UTC) #29
Message was sent while issue was closed.
On 2015/01/29 00:21:06, Raphael Kubo da Costa (rakuco) wrote:
> For the record, this is also affecting our downstream bots in Crosswalk, as
the
> directory structure is the one described by kjellander. They are bots, but
they
> are not Google bots.

I just filed https://code.google.com/p/chromium/issues/detail?id=454220 to track
this. It really needs to be fixed.

Powered by Google App Engine
This is Rietveld 408576698