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

Issue 1259793008: Support dev servers defined in a mojoconfig file. (Closed)

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

Description

Support dev servers defined in a mojoconfig file. This patch allows one to define local servers to be set up by devtools (`mojo_run` / `mojo_test`) in a config file. Each server is described as a dictionary defining the host and the mappings: { 'host': 'https://core.mojoapps.io/', 'mappings': [ ('packages/', ['@{BUILD_DIR}/gen/dart-pkg/packages']), ('', ['@{BUILD_DIR}']), ], }, This allows us to support running 'exploded' dart apps, see https://github.com/domokit/devtools/issues/30 . This patch also adds an example config file for the setup we will want to use in the Mojo repo. As of this CL one has to explicitly pass --config-file mojoconfig to make use of the config file. We will probably want to make devtools discover this file automatically. R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/7b674fecee63ca43a90d32a3405eea5e2707883e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. #

Patch Set 3 : Address Ben's comments. #

Total comments: 4

Patch Set 4 : Address Ben's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -22 lines) Patch
M mojo/devtools/common/devtoolslib/http_server.py View 1 1 chunk +0 lines, -3 lines 0 comments Download
M mojo/devtools/common/devtoolslib/shell_arguments.py View 1 4 chunks +24 lines, -5 lines 0 comments Download
M mojo/devtools/common/devtoolslib/shell_config.py View 1 2 3 6 chunks +68 lines, -10 lines 0 comments Download
M mojo/devtools/common/mojo_run View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/devtools/common/mojo_test View 1 chunk +2 lines, -2 lines 0 comments Download
A mojoconfig View 1 2 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ppi
Hi Ben, ptal. cc: John
5 years, 4 months ago (2015-08-03 16:08:30 UTC) #1
qsr
https://codereview.chromium.org/1259793008/diff/1/mojo/devtools/common/devtoolslib/shell_config.py File mojo/devtools/common/devtoolslib/shell_config.py (right): https://codereview.chromium.org/1259793008/diff/1/mojo/devtools/common/devtoolslib/shell_config.py#newcode118 mojo/devtools/common/devtoolslib/shell_config.py:118: return collections.defaultdict(lambda: None, config_dict) I do not think you ...
5 years, 4 months ago (2015-08-04 14:06:45 UTC) #2
ppi
https://codereview.chromium.org/1259793008/diff/1/mojo/devtools/common/devtoolslib/shell_config.py File mojo/devtools/common/devtoolslib/shell_config.py (right): https://codereview.chromium.org/1259793008/diff/1/mojo/devtools/common/devtoolslib/shell_config.py#newcode118 mojo/devtools/common/devtoolslib/shell_config.py:118: return collections.defaultdict(lambda: None, config_dict) On 2015/08/04 14:06:45, qsr wrote: ...
5 years, 4 months ago (2015-08-04 16:04:51 UTC) #3
qsr
Documentation for the config file is wrong in the cl documentation.
5 years, 4 months ago (2015-08-05 08:06:44 UTC) #4
qsr
LGTM with nits. https://codereview.chromium.org/1259793008/diff/40001/mojo/devtools/common/devtoolslib/shell_arguments.py File mojo/devtools/common/devtoolslib/shell_arguments.py (right): https://codereview.chromium.org/1259793008/diff/40001/mojo/devtools/common/devtoolslib/shell_arguments.py#newcode186 mojo/devtools/common/devtoolslib/shell_arguments.py:186: return shell_args Why do you both ...
5 years, 4 months ago (2015-08-05 08:11:14 UTC) #5
ppi
Thanks! Fixed the commit description. https://codereview.chromium.org/1259793008/diff/40001/mojo/devtools/common/devtoolslib/shell_arguments.py File mojo/devtools/common/devtoolslib/shell_arguments.py (right): https://codereview.chromium.org/1259793008/diff/40001/mojo/devtools/common/devtoolslib/shell_arguments.py#newcode186 mojo/devtools/common/devtoolslib/shell_arguments.py:186: return shell_args On 2015/08/05 ...
5 years, 4 months ago (2015-08-05 10:54:01 UTC) #6
ppi
5 years, 4 months ago (2015-08-05 10:57:18 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
7b674fecee63ca43a90d32a3405eea5e2707883e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698