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

Issue 940633003: Catch AccessDeniedException on bots without permission to download SDK extras. (Closed)

Created:
5 years, 10 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

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 Committed: https://crrev.com/30bc93f3361397f8cde5d319923f1609508bb909 Cr-Commit-Position: refs/heads/master@{#316973}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add TODO to move hook. #

Patch Set 3 : Exit early if this is not an Android bot. #

Patch Set 4 : If OS=android not in GYP_DEFINES then not Android bot, return 0. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M build/download_sdk_extras.py View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
navabi
5 years, 10 months ago (2015-02-18 20:57:33 UTC) #2
navabi
5 years, 10 months ago (2015-02-18 21:29:36 UTC) #4
hshi1
https://codereview.chromium.org/940633003/diff/1/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/940633003/diff/1/build/download_sdk_extras.py#newcode56 build/download_sdk_extras.py:56: ' If this bot compiles for Android, it may ...
5 years, 10 months ago (2015-02-18 21:32:27 UTC) #6
hinoka
Maybe just wrap main(), or make sure this script never returns a non-zero code, since ...
5 years, 10 months ago (2015-02-18 21:33:07 UTC) #8
navabi
https://codereview.chromium.org/940633003/diff/1/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/940633003/diff/1/build/download_sdk_extras.py#newcode52 build/download_sdk_extras.py:52: subprocess.check_call(['python', GSUTIL_PATH, '--force-version', '4.7', On 2015/02/18 21:33:07, hinoka wrote: ...
5 years, 10 months ago (2015-02-18 22:47:03 UTC) #9
navabi
On 2015/02/18 21:33:07, hinoka wrote: > Maybe just wrap main(), or make sure this script ...
5 years, 10 months ago (2015-02-18 22:48:37 UTC) #10
hinoka
Why not make it a failure step on android bots before compiling? Eg pre-compile if ...
5 years, 10 months ago (2015-02-18 23:14:40 UTC) #11
hinoka
I need to question why are we downloading things that are off-limited to the external ...
5 years, 10 months ago (2015-02-18 23:16:07 UTC) #12
navabi
> Why not make it a failure step on android bots before compiling? Eg pre-compile ...
5 years, 10 months ago (2015-02-19 00:40:20 UTC) #13
navabi
> Why not make it a failure step on android bots before compiling? Eg pre-compile ...
5 years, 10 months ago (2015-02-19 00:40:21 UTC) #14
hinoka
lgtm % add crbug.com/459819 as a big todo somewhere.
5 years, 10 months ago (2015-02-19 01:05:14 UTC) #15
Sam Clegg
https://codereview.chromium.org/940633003/diff/1/build/download_sdk_extras.py File build/download_sdk_extras.py (right): https://codereview.chromium.org/940633003/diff/1/build/download_sdk_extras.py#newcode56 build/download_sdk_extras.py:56: ' If this bot compiles for Android, it may ...
5 years, 10 months ago (2015-02-19 01:24:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/940633003/20001
5 years, 10 months ago (2015-02-19 01:25:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/940633003/60001
5 years, 10 months ago (2015-02-19 02:02:24 UTC) #23
cjhopman
lgtm
5 years, 10 months ago (2015-02-19 02:07:11 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-19 02:21:29 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 02:22:29 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/30bc93f3361397f8cde5d319923f1609508bb909
Cr-Commit-Position: refs/heads/master@{#316973}

Powered by Google App Engine
This is Rietveld 408576698