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

Issue 870143008: Move //tools/gs.py into //mojo/public/tools (Closed)

Created:
5 years, 10 months ago by blundell
Modified:
5 years, 10 months ago
Reviewers:
vtl, jamesr, viettrungluu
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@expose_downloading_network_service
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Move //tools/gs.py into //mojo/public/tools This move enables download_network_service.py to cleanly use this function. Since gs.py is now used from the SDK, it takes in the path to find_depot_tools in order to import it. download_network_service.py correspondingly takes in that path, similarly to download_shell_binary.py. R=viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/25540ebe3271805cd3697d5fb7e4d38b721fd49c

Patch Set 1 #

Patch Set 2 : Use function when downloading shell #

Total comments: 4

Patch Set 3 : Response to review #

Total comments: 6

Patch Set 4 : Response to review #

Total comments: 2

Patch Set 5 : Response to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -91 lines) Patch
M DEPS View 1 chunk +4 lines, -1 line 0 comments Download
M mojo/public/tools/download_network_service.py View 1 2 3 4 3 chunks +24 lines, -14 lines 0 comments Download
M mojo/public/tools/download_shell_binary.py View 1 2 3 4 3 chunks +10 lines, -33 lines 0 comments Download
A + mojo/public/tools/pylib/gs.py View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M mojo/tools/roll/roll_network_service.py View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
D tools/gs.py View 1 chunk +0 lines, -37 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
blundell
5 years, 10 months ago (2015-02-11 21:44:11 UTC) #2
vtl
Drive-by comments.... * Also remove the x bit from gs.py. * It's probably suboptimal to ...
5 years, 10 months ago (2015-02-11 21:52:09 UTC) #4
blundell
I'm happy to move the file under a pylib/ or utils/ subdir if you like ...
5 years, 10 months ago (2015-02-11 22:22:01 UTC) #5
jamesr
I'm happy with whatever Trung's happy with.
5 years, 10 months ago (2015-02-11 23:47:47 UTC) #6
viettrungluu
On 2015/02/11 22:22:01, blundell wrote: > I'm happy to move the file under a pylib/ ...
5 years, 10 months ago (2015-02-11 23:53:57 UTC) #7
viettrungluu
Also, you didn't remove the executable bit from gs.py.... https://codereview.chromium.org/870143008/diff/40001/mojo/public/tools/download_network_service.py File mojo/public/tools/download_network_service.py (right): https://codereview.chromium.org/870143008/diff/40001/mojo/public/tools/download_network_service.py#newcode67 mojo/public/tools/download_network_service.py:67: ...
5 years, 10 months ago (2015-02-11 23:54:50 UTC) #9
blundell
Thanks! PS3 set the mode of of gs.py to 644. Had I misunderstood your comment ...
5 years, 10 months ago (2015-02-12 09:06:33 UTC) #10
viettrungluu
https://codereview.chromium.org/870143008/diff/60001/mojo/public/tools/pylib/gs.py File mojo/public/tools/pylib/gs.py (right): https://codereview.chromium.org/870143008/diff/60001/mojo/public/tools/pylib/gs.py#newcode9 mojo/public/tools/pylib/gs.py:9: def download_from_public_bucket(gs_path, output_path, find_depot_tools_path): It occurs to me that ...
5 years, 10 months ago (2015-02-12 17:20:25 UTC) #11
viettrungluu
On 2015/02/12 09:06:33, blundell wrote: > Thanks! > > PS3 set the mode of of ...
5 years, 10 months ago (2015-02-12 17:23:27 UTC) #12
blundell
I think we need a find_find_depot_tools utility. https://codereview.chromium.org/870143008/diff/60001/mojo/public/tools/pylib/gs.py File mojo/public/tools/pylib/gs.py (right): https://codereview.chromium.org/870143008/diff/60001/mojo/public/tools/pylib/gs.py#newcode9 mojo/public/tools/pylib/gs.py:9: def download_from_public_bucket(gs_path, ...
5 years, 10 months ago (2015-02-12 19:31:28 UTC) #13
viettrungluu
lgtm
5 years, 10 months ago (2015-02-12 20:08:23 UTC) #14
blundell
5 years, 10 months ago (2015-02-13 08:47:14 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
25540ebe3271805cd3697d5fb7e4d38b721fd49c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698