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

Issue 2415793003: Setup basic Runtime with properties and platform.

Created:
4 years, 2 months ago by dnj
Modified:
3 years, 11 months ago
Reviewers:
iannucci, martiniss
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Setup basic Runtime with properties and platform. Create the recipe engine Runtime class, which contains runtime-global recipe engine state. Currently, that consists of the initial property set and the operating platform. Integrate Runtime into "run_recipe". Standardize on platform semantics, exposing it to the "platform" recipe module via the new PlatformClient recipe engine client. BUG=chromium:628770 TEST=unit

Patch Set 1 #

Total comments: 16

Patch Set 2 : Code review, cut some stuff out. #

Patch Set 3 : Split out, more immutables, better utilization. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -130 lines) Patch
M recipe_engine/doc.py View 1 chunk +2 lines, -1 line 0 comments Download
M recipe_engine/loader.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M recipe_engine/recipe_api.py View 1 2 2 chunks +44 lines, -5 lines 2 comments Download
M recipe_engine/run.py View 1 2 11 chunks +50 lines, -43 lines 0 comments Download
M recipe_engine/simulation_test.py View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M recipe_engine/types.py View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M recipe_engine/unittests/loader_test.py View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M recipe_engine/unittests/run_test.py View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M recipe_engine/util.py View 1 2 chunks +60 lines, -0 lines 0 comments Download
M recipe_modules/platform/api.py View 1 2 chunks +20 lines, -51 lines 0 comments Download
M recipe_modules/properties/api.py View 1 2 3 chunks +4 lines, -16 lines 0 comments Download
M recipes.py View 3 chunks +12 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 18 (4 generated)
dnj
PTAL. This is an initial effort to isolate global state. My intention is to add ...
4 years, 2 months ago (2016-10-13 01:06:29 UTC) #2
dnj
https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py File recipe_engine/run.py (left): https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py#oldcode203 recipe_engine/run.py:203: # NOTE(iannucci): 'root' was a terribly bad idea and ...
4 years, 2 months ago (2016-10-13 01:08:23 UTC) #3
iannucci
https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py File recipe_engine/run.py (right): https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py#newcode213 recipe_engine/run.py:213: properties_to_print.pop('use_mirror', None) I would ditch this https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py#newcode318 recipe_engine/run.py:318: # ...
4 years, 2 months ago (2016-10-15 00:39:45 UTC) #4
dnj
https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py File recipe_engine/run.py (right): https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py#newcode213 recipe_engine/run.py:213: properties_to_print.pop('use_mirror', None) On 2016/10/15 00:39:45, iannucci wrote: > I ...
4 years, 2 months ago (2016-10-15 00:59:27 UTC) #5
iannucci
lgtm https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py File recipe_engine/run.py (right): https://codereview.chromium.org/2415793003/diff/1/recipe_engine/run.py#newcode213 recipe_engine/run.py:213: properties_to_print.pop('use_mirror', None) On 2016/10/15 00:59:27, dnj wrote: > ...
4 years, 2 months ago (2016-10-15 01:04:09 UTC) #6
dnj
PTAL, made some more changes that seemed reasonable in this context. Namely, the Runtime stores ...
4 years, 2 months ago (2016-10-15 15:42:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2415793003/40001
4 years, 2 months ago (2016-10-17 21:17:45 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Recipes-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/31ed539482d23610)
4 years, 2 months ago (2016-10-17 21:24:15 UTC) #12
iannucci
not lgtm, as I'm not comfortable with the addition of mutable properties without additional explanation. ...
4 years, 2 months ago (2016-10-19 16:41:03 UTC) #13
dnj
https://codereview.chromium.org/2415793003/diff/40001/recipe_engine/recipe_api.py File recipe_engine/recipe_api.py (right): https://codereview.chromium.org/2415793003/diff/40001/recipe_engine/recipe_api.py#newcode102 recipe_engine/recipe_api.py:102: def mutable_properties(self): On 2016/10/19 16:41:03, iannucci wrote: > this ...
4 years, 2 months ago (2016-10-19 16:44:05 UTC) #14
iannucci
nvm, lgtm. I just got confused by the terminology. It's a mutable copy, not a ...
4 years, 2 months ago (2016-10-19 16:47:50 UTC) #15
iannucci
On 2016/10/19 16:47:50, iannucci wrote: > nvm, lgtm. I just got confused by the terminology. ...
4 years, 2 months ago (2016-10-19 16:48:53 UTC) #16
dnj
On 2016/10/19 16:48:53, iannucci wrote: > On 2016/10/19 16:47:50, iannucci wrote: > > nvm, lgtm. ...
4 years, 2 months ago (2016-10-19 21:31:48 UTC) #17
martiniss
3 years, 11 months ago (2017-01-10 19:13:50 UTC) #18
is this going to land?

Powered by Google App Engine
This is Rietveld 408576698