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

Issue 1231663003: Add functionality to download files from GCS, and include them in the Chromoting isolate. (Closed)

Created:
5 years, 5 months ago by anandc
Modified:
5 years, 5 months ago
Reviewers:
luqui, joedow
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add functionality to download files from GCS, and include them in the Chromoting isolate. For now, this is just downloading 1 file and adding them to the isolate, and only on the Linux builder. Once that is confirmed working reliably on our waterfall, we can add more. BUG= Committed: https://crrev.com/e42c9af4a6ad5608129517d5485273eb2f38f163 Cr-Commit-Position: refs/heads/master@{#338816}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Create separate file specifying Chromoting test files. Catch failures with GCS download and return error on failure. #

Patch Set 3 : Add copyright header. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -0 lines) Patch
M testing/chromoting/chromoting_integration_tests.isolate View 1 chunk +1 line, -0 lines 0 comments Download
A testing/chromoting/chromoting_test_files.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A testing/chromoting/download_test_files.py View 1 2 1 chunk +58 lines, -0 lines 2 comments Download
M testing/chromoting/integration_tests.gyp View 1 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
anandc
Hi Joe, PTAL. Thanks.
5 years, 5 months ago (2015-07-10 23:57:00 UTC) #2
joedow
https://codereview.chromium.org/1231663003/diff/1/testing/chromoting/download_test_files.py File testing/chromoting/download_test_files.py (right): https://codereview.chromium.org/1231663003/diff/1/testing/chromoting/download_test_files.py#newcode30 testing/chromoting/download_test_files.py:30: source: path to file in GCS. nit: capitalize first ...
5 years, 5 months ago (2015-07-13 19:10:12 UTC) #3
anandc
Thanks Joe. PTAL at patch-set #2. https://codereview.chromium.org/1231663003/diff/1/testing/chromoting/download_test_files.py File testing/chromoting/download_test_files.py (right): https://codereview.chromium.org/1231663003/diff/1/testing/chromoting/download_test_files.py#newcode30 testing/chromoting/download_test_files.py:30: source: path to ...
5 years, 5 months ago (2015-07-14 01:03:07 UTC) #5
joedow
lgtm
5 years, 5 months ago (2015-07-14 04:15:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231663003/40001
5 years, 5 months ago (2015-07-14 16:54:44 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/78608)
5 years, 5 months ago (2015-07-14 17:02:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231663003/60001
5 years, 5 months ago (2015-07-14 17:55:21 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/16316)
5 years, 5 months ago (2015-07-14 18:14:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231663003/60001
5 years, 5 months ago (2015-07-15 04:21:49 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 5 months ago (2015-07-15 04:49:42 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e42c9af4a6ad5608129517d5485273eb2f38f163 Cr-Commit-Position: refs/heads/master@{#338816}
5 years, 5 months ago (2015-07-15 04:50:43 UTC) #19
luqui
https://codereview.chromium.org/1231663003/diff/60001/testing/chromoting/download_test_files.py File testing/chromoting/download_test_files.py (right): https://codereview.chromium.org/1231663003/diff/60001/testing/chromoting/download_test_files.py#newcode49 testing/chromoting/download_test_files.py:49: cp_cmd = ['gsutil cp %s %s' % (line, output_file)] ...
5 years, 5 months ago (2015-07-15 18:00:52 UTC) #21
luqui
5 years, 5 months ago (2015-07-15 18:02:07 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/1231663003/diff/60001/testing/chromoting/down...
File testing/chromoting/download_test_files.py (right):

https://codereview.chromium.org/1231663003/diff/60001/testing/chromoting/down...
testing/chromoting/download_test_files.py:49: cp_cmd = ['gsutil cp %s %s' %
(line, output_file)]
On 2015/07/15 18:00:51, luqui wrote:
> 1. this should be gsutil.py.
> 
> 2. the arguments should be separated, i.e.
> 
>    cp_cmd = ['gsutil.py', 'cp', line, output_file]
> 
> otherwise it's looking for an executable file named "gsutil cp ...".

Oh I see, you have shell=True, so (2) isn't necessary.  But really I think you
should do it the way I suggest without shell=True.

Powered by Google App Engine
This is Rietveld 408576698