Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
dnj bbc2129e4c download_sdk_extras: Catch the correct error.
Catch the error raised by 'check_call' rather than the error emitted by
the called process.

BUG=chromium:460693,chromium:459681
TEST=local
  - Ran without fix, setting CHROME_HEADLESS=1. Script failed with the exception
    in the bug.
  - Ran with fix, 'gsutil' failed with AccessDeniedException output
    and the calling script successfully emitted a warning message.

R=hinoka@chromium.org, navabi@chromium.org

Review URL: https://codereview.chromium.org/949813002

Cr-Original-Commit-Position: refs/heads/master@{#317608}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 63ab4fead51b043cb1f21ae2b31f9e593cbdc3ca
2015-02-23 18:22:40 +00:00
navabi 69aaffc21b Catch AccessDeniedException on bots without permission to download SDK extras.
BUG=460463

Review URL: https://codereview.chromium.org/945803007

Cr-Original-Commit-Position: refs/heads/master@{#317383}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 70b983128e5d59a37902bf5259eccb25c0378a4a
2015-02-20 20:16:51 +00:00
navabi 565f497b1f Catch AccessDeniedException on bots without permission to download SDK extras.
Non-android bots will not have credentials to download SDK packages from Google
Storage buckets. Thus, if a bot does not have credentials, the hook should print
a warning and continue.

BUG=459681

Review URL: https://codereview.chromium.org/940633003

Cr-Original-Commit-Position: refs/heads/master@{#316973}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 30bc93f3361397f8cde5d319923f1609508bb909
2015-02-19 02:22:19 +00:00
navabi c7df1a02f6 Use CHROME_HEADLESS to check if download_sdk_extras.py is running on a bot.
This will also change where depot_tools is found. Instead of assuming it is part of the build_bot checkout it will use find_depot_tools.

BUG=454220

Review URL: https://codereview.chromium.org/934753007

Cr-Original-Commit-Position: refs/heads/master@{#316737}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b0c3ed39916e25bed2900b653974672a39fcb254
2015-02-18 02:02:05 +00:00
navabi 99a2547a2b Use json file to determine sdk packages to download.
BUG=350151

Review URL: https://codereview.chromium.org/842753002

Cr-Original-Commit-Position: refs/heads/master@{#310429}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 16d60c6c9852a9c226358c7f8b1e707c1ada7d7e
2015-01-08 01:29:05 +00:00
navabi 202e159d99 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

Review URL: https://codereview.chromium.org/799673003

Cr-Original-Commit-Position: refs/heads/master@{#310135}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 24606e2106ec9029e042353feaa84555708aefd0
2015-01-06 20:47:38 +00:00
navabi c4a05b458f Add gclient hook to download SDK extras on bots.
BUG=350151
TBR=cjhopman@chromium.org

Review URL: https://codereview.chromium.org/709663002

Cr-Original-Commit-Position: refs/heads/master@{#309763}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6f0bb7619afcdd28daba7e763dacd7035504be4c
2014-12-30 19:22:28 +00:00