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

Issue 1844943004: devtools: download shell binaries and set origin when run w/ --mojo-version. (Closed)

Created:
4 years, 8 months ago by ppi
Modified:
4 years, 8 months ago
Reviewers:
qsr
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, viettrungluu, P.Y.
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

devtools: download shell binaries and set origin when run w/ --mojo-version. Before, a user of devtools that wanted to use prebuilt mojo at particular version, had to: - set up DEPS hooks and use GN build rules that together downloaded and copied the shell and the network service at the correct version to the output directory - set the --origin to point to deployed mojo services at particular version This patch adds a --mojo-version flag that does all of the above, downloading binaries as needed and setting the origin accordingly. Once consumers switch over to --mojo-version, we can retire the GN rules for downloading prebuilt shells. Fixes https://github.com/domokit/devtools/issues/62. Fixes https://github.com/domokit/devtools/issues/63. R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/da012592f169e8c531e4a92cdf00d3c39413dd34

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Now with documentation. #

Patch Set 4 : Address Ben's comments. #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -41 lines) Patch
M mojo/devtools/common/.gitignore View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/devtools/common/devtoolslib/download.py View 1 2 3 1 chunk +99 lines, -0 lines 0 comments Download
M mojo/devtools/common/devtoolslib/paths.py View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/devtools/common/devtoolslib/shell_arguments.py View 5 chunks +31 lines, -5 lines 0 comments Download
M mojo/devtools/common/devtoolslib/shell_config.py View 1 2 3 4 4 chunks +23 lines, -23 lines 0 comments Download
M mojo/devtools/common/docs/mojo_run.md View 1 2 2 chunks +20 lines, -13 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
ppi
Hi Ben, ptal. cc: PY, Trung
4 years, 8 months ago (2016-03-31 14:22:34 UTC) #3
ppi
Updated docs in `mojo_run.md` in patch set 3.
4 years, 8 months ago (2016-03-31 14:35:52 UTC) #4
qsr
https://codereview.chromium.org/1844943004/diff/20001/mojo/devtools/common/devtoolslib/download.py File mojo/devtools/common/devtoolslib/download.py (right): https://codereview.chromium.org/1844943004/diff/20001/mojo/devtools/common/devtoolslib/download.py#newcode1 mojo/devtools/common/devtoolslib/download.py:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 8 months ago (2016-03-31 14:39:15 UTC) #5
ppi
Thanks, ptal. https://codereview.chromium.org/1844943004/diff/20001/mojo/devtools/common/devtoolslib/download.py File mojo/devtools/common/devtoolslib/download.py (right): https://codereview.chromium.org/1844943004/diff/20001/mojo/devtools/common/devtoolslib/download.py#newcode1 mojo/devtools/common/devtoolslib/download.py:1: # Copyright 2015 The Chromium Authors. All ...
4 years, 8 months ago (2016-03-31 15:08:51 UTC) #6
qsr
lgtm
4 years, 8 months ago (2016-03-31 15:18:01 UTC) #7
ppi
4 years, 8 months ago (2016-04-01 22:54:29 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
da012592f169e8c531e4a92cdf00d3c39413dd34 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698