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

Issue 1773273003: Make output placeholders like json.output index-able by name. (Closed)

Created:
4 years, 9 months ago by stgao
Modified:
4 years, 9 months ago
Reviewers:
iannucci, martiniss
CC:
chanli, chromium-reviews, infra-reviews+recipes-py_chromium.org, jam, Sharu Jiang, lijeffrey
Base URL:
https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Target Ref:
refs/heads/master
Project:
recipes-py
Visibility:
Public.

Description

Make output placeholders like json.output index-able by name. Use case: in compile step, currently goma dumps its server status to a json.output, while we wanted to dump some info from ninja into another json.output. (Please refer to patchset 2 in https://codereview.chromium.org/1766873002/) We could take the current approach of referring to the results in a positional list. However, this is not explicit, error-prone and might cause complexity when many json.outputs are added in the same step. Alternatively, the approach in this CL is to make output placeholders like json.outputs index-able by names, which is more convenient and less error-prone. BUG=593198 Committed: https://github.com/luci/recipes-py/commit/13a5e85f41041a66bf717521312d63f6bfc899e4

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address comments. #

Patch Set 3 : Rebase uppon https://codereview.chromium.org/1785543004/ #

Total comments: 6

Patch Set 4 : Address comments. #

Total comments: 14

Patch Set 5 : Address comments. #

Total comments: 2

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -99 lines) Patch
M recipe_engine/recipe_test_api.py View 1 2 3 4 12 chunks +49 lines, -48 lines 0 comments Download
M recipe_engine/step_runner.py View 1 2 3 4 3 chunks +36 lines, -8 lines 0 comments Download
M recipe_engine/util.py View 1 2 3 4 3 chunks +12 lines, -6 lines 0 comments Download
M recipe_modules/json/api.py View 1 2 3 4 chunks +8 lines, -7 lines 0 comments Download
M recipe_modules/json/example.py View 1 2 3 4 3 chunks +7 lines, -5 lines 0 comments Download
M recipe_modules/json/example.expected/basic.json View 1 2 3 1 chunk +12 lines, -6 lines 0 comments Download
M recipe_modules/json/test_api.py View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M recipe_modules/raw_io/api.py View 1 2 3 4 5 chunks +8 lines, -8 lines 0 comments Download
M recipe_modules/raw_io/example.py View 1 2 3 4 2 chunks +29 lines, -1 line 0 comments Download
M recipe_modules/raw_io/example.expected/basic.json View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M recipe_modules/raw_io/test_api.py View 1 2 3 1 chunk +7 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
stgao
Hi forks, would you mind a review?
4 years, 9 months ago (2016-03-10 01:08:44 UTC) #7
martiniss
Robbie are you familiar with this code? I haven't really looked at it, but can ...
4 years, 9 months ago (2016-03-10 02:02:30 UTC) #8
iannucci
really really cool :) I like it a lot. Added some comments. https://codereview.chromium.org/1773273003/diff/20001/recipe_engine/recipe_test_api.py File recipe_engine/recipe_test_api.py ...
4 years, 9 months ago (2016-03-10 03:17:42 UTC) #9
stgao
Comments are addressed. https://codereview.chromium.org/1773273003/diff/20001/recipe_engine/recipe_test_api.py File recipe_engine/recipe_test_api.py (right): https://codereview.chromium.org/1773273003/diff/20001/recipe_engine/recipe_test_api.py#newcode20 recipe_engine/recipe_test_api.py:20: overwrite - whether to over write ...
4 years, 9 months ago (2016-03-10 20:34:23 UTC) #11
stgao
This CL is now rebased upon the split of Placeholder into input and output ones ...
4 years, 9 months ago (2016-03-11 23:40:25 UTC) #13
iannucci
https://chromiumcodereview.appspot.com/1773273003/diff/80001/recipe_engine/recipe_test_api.py File recipe_engine/recipe_test_api.py (right): https://chromiumcodereview.appspot.com/1773273003/diff/80001/recipe_engine/recipe_test_api.py#newcode26 recipe_engine/recipe_test_api.py:26: assert allow_merge, '2+ test data has the same key ...
4 years, 9 months ago (2016-03-12 03:43:55 UTC) #14
stgao
Comments are addressed. PTAL :) The corresponding change to recipes/recipe_modules are in: build/ : https://codereview.chromium.org/1820073003/ ...
4 years, 9 months ago (2016-03-22 05:58:04 UTC) #17
iannucci
lgtm https://chromiumcodereview.appspot.com/1773273003/diff/130001/recipe_engine/recipe_test_api.py File recipe_engine/recipe_test_api.py (right): https://chromiumcodereview.appspot.com/1773273003/diff/130001/recipe_engine/recipe_test_api.py#newcode30 recipe_engine/recipe_test_api.py:30: dest_dict[k] = v I don't think this needs ...
4 years, 9 months ago (2016-03-22 22:54:25 UTC) #20
stgao
Comments are addressed. https://chromiumcodereview.appspot.com/1773273003/diff/130001/recipe_engine/recipe_test_api.py File recipe_engine/recipe_test_api.py (right): https://chromiumcodereview.appspot.com/1773273003/diff/130001/recipe_engine/recipe_test_api.py#newcode30 recipe_engine/recipe_test_api.py:30: dest_dict[k] = v On 2016/03/22 22:54:24, ...
4 years, 9 months ago (2016-03-22 23:40:25 UTC) #21
iannucci
lgtm https://codereview.chromium.org/1773273003/diff/230001/recipe_engine/util.py File recipe_engine/util.py (right): https://codereview.chromium.org/1773273003/diff/230001/recipe_engine/util.py#newcode60 recipe_engine/util.py:60: return "%s.%s" % self.namespaces "%s.%s[DEFAULT]" ?
4 years, 9 months ago (2016-03-23 18:50:13 UTC) #26
stgao
https://codereview.chromium.org/1773273003/diff/230001/recipe_engine/util.py File recipe_engine/util.py (right): https://codereview.chromium.org/1773273003/diff/230001/recipe_engine/util.py#newcode60 recipe_engine/util.py:60: return "%s.%s" % self.namespaces On 2016/03/23 18:50:13, iannucci wrote: ...
4 years, 9 months ago (2016-03-23 19:01:44 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1773273003/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1773273003/250001
4 years, 9 months ago (2016-03-23 19:01:54 UTC) #30
commit-bot: I haz the power
4 years, 9 months ago (2016-03-23 19:03:38 UTC) #32
Message was sent while issue was closed.
Committed patchset #6 (id:250001) as
https://github.com/luci/recipes-py/commit/13a5e85f41041a66bf717521312d63f6bfc...

Powered by Google App Engine
This is Rietveld 408576698