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

Issue 2934583003: [step] Remove config indirection. (Closed)

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

Description

[step] Remove config indirection. Currently, the path to poplating a recipe engine Step includes the generation of a "step" module config, a dict, JSON, and finally a StepConfig named tuple. Shift most of this logic out of the recipe engine and into the "step" recipe module, and remove the config. BUG=None TEST=expectations - Simulation passes, no changes to expectations. Review-Url: https://codereview.chromium.org/2934583003 Committed: https://github.com/luci/recipes-py/commit/264e3cab40de2ee04e33850810188e20d249f9d2

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 7

Patch Set 3 : comments #

Patch Set 4 : fix test #

Total comments: 6

Patch Set 5 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -285 lines) Patch
M recipe_engine/recipe_api.py View 1 2 4 chunks +132 lines, -152 lines 0 comments Download
M recipe_engine/run.py View 1 2 3 2 chunks +12 lines, -11 lines 0 comments Download
M recipe_engine/step_runner.py View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M recipe_engine/stream.py View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M recipe_engine/unittests/stream_logdog_test.py View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
M recipe_engine/unittests/stream_test.py View 1 chunk +1 line, -1 line 0 comments Download
M recipe_modules/step/api.py View 1 2 3 4 4 chunks +52 lines, -45 lines 0 comments Download
D recipe_modules/step/config.py View 1 chunk +0 lines, -60 lines 0 comments Download
M unittests/repo_test_util.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (8 generated)
dnj
PTAL!
3 years, 6 months ago (2017-06-10 16:38:19 UTC) #2
iannucci
generally lg, but needs tweaks and rebase https://codereview.chromium.org/2934583003/diff/20001/recipe_engine/recipe_api.py File recipe_engine/recipe_api.py (right): https://codereview.chromium.org/2934583003/diff/20001/recipe_engine/recipe_api.py#newcode197 recipe_engine/recipe_api.py:197: return TriggerSpec.create(**trigger_spec) ...
3 years, 6 months ago (2017-06-12 18:20:09 UTC) #3
dnj
comments
3 years, 6 months ago (2017-06-12 18:59:08 UTC) #4
dnj
https://codereview.chromium.org/2934583003/diff/20001/recipe_engine/recipe_api.py File recipe_engine/recipe_api.py (right): https://codereview.chromium.org/2934583003/diff/20001/recipe_engine/recipe_api.py#newcode197 recipe_engine/recipe_api.py:197: return TriggerSpec.create(**trigger_spec) On 2017/06/12 18:20:08, iannucci wrote: > I ...
3 years, 6 months ago (2017-06-12 19:00:03 UTC) #5
dnj
fix test
3 years, 6 months ago (2017-06-12 19:05:19 UTC) #6
iannucci
lgtm https://codereview.chromium.org/2934583003/diff/60001/recipe_modules/step/api.py File recipe_modules/step/api.py (right): https://codereview.chromium.org/2934583003/diff/60001/recipe_modules/step/api.py#newcode129 recipe_modules/step/api.py:129: trigger_specs: a list of trigger specifications do you ...
3 years, 6 months ago (2017-06-12 19:37:58 UTC) #7
dnj
https://codereview.chromium.org/2934583003/diff/60001/recipe_modules/step/api.py File recipe_modules/step/api.py (right): https://codereview.chromium.org/2934583003/diff/60001/recipe_modules/step/api.py#newcode129 recipe_modules/step/api.py:129: trigger_specs: a list of trigger specifications On 2017/06/12 19:37:57, ...
3 years, 6 months ago (2017-06-13 18:28:38 UTC) #8
iannucci
(still lgtm)
3 years, 6 months ago (2017-06-13 18:37:26 UTC) #13
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/2934583003/80001
3 years, 6 months ago (2017-06-13 18:38:58 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 18:42:03 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://github.com/luci/recipes-py/commit/264e3cab40de2ee04e33850810188e20d24...

Powered by Google App Engine
This is Rietveld 408576698