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

Issue 2750793002: [json] improve output to get leak_to and better logging. (Closed)

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

Description

[json] improve output to get leak_to and better logging. This adds the 'leak_to' parameter to json.output, and also makes it so that when logging is enabled and the json is invalid, the raw data is written to the json log instead (for easier debugging). R=dnj@chromium.org, phajdan.jr@chromium.org, tikuta@chromium.org, vadimsh@chromium.org BUG= Review-Url: https://codereview.chromium.org/2750793002 Committed: https://github.com/luci/recipes-py/commit/9fdd6d725d8d04125d43ce2be4f5e4b123f705be

Patch Set 1 #

Total comments: 2

Patch Set 2 : update comment #

Total comments: 2

Patch Set 3 : add exception #

Patch Set 4 : add test assertion #

Patch Set 5 : fixit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -28 lines) Patch
M recipe_modules/json/api.py View 1 2 4 chunks +33 lines, -20 lines 0 comments Download
M recipe_modules/json/example.py View 1 2 3 4 1 chunk +33 lines, -7 lines 0 comments Download
M recipe_modules/json/example.expected/basic.json View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A recipe_modules/json/example.resources/cool_script.py View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M recipe_modules/json/test_api.py View 1 chunk +14 lines, -0 lines 0 comments Download
M recipe_modules/raw_io/api.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (8 generated)
iannucci
3 years, 9 months ago (2017-03-14 09:46:08 UTC) #1
tikuta1
https://codereview.chromium.org/2750793002/diff/1/recipe_modules/json/api.py File recipe_modules/json/api.py (right): https://codereview.chromium.org/2750793002/diff/1/recipe_modules/json/api.py#newcode18 recipe_modules/json/api.py:18: temporary file (e.g. /tmp/tmp4lp1qM) which will exist only for ...
3 years, 9 months ago (2017-03-14 09:55:32 UTC) #3
iannucci
Is this comment more useful? https://codereview.chromium.org/2750793002/diff/1/recipe_modules/json/api.py File recipe_modules/json/api.py (right): https://codereview.chromium.org/2750793002/diff/1/recipe_modules/json/api.py#newcode18 recipe_modules/json/api.py:18: temporary file (e.g. /tmp/tmp4lp1qM) ...
3 years, 9 months ago (2017-03-14 10:02:01 UTC) #4
Paweł Hajdan Jr.
LGTM w/ optional suggestion. https://codereview.chromium.org/2750793002/diff/20001/recipe_modules/json/api.py File recipe_modules/json/api.py (right): https://codereview.chromium.org/2750793002/diff/20001/recipe_modules/json/api.py#newcode65 recipe_modules/json/api.py:65: presentation.logs[self.label + ' (invalid)'] = ...
3 years, 9 months ago (2017-03-14 12:56:14 UTC) #5
iannucci
https://codereview.chromium.org/2750793002/diff/20001/recipe_modules/json/api.py File recipe_modules/json/api.py (right): https://codereview.chromium.org/2750793002/diff/20001/recipe_modules/json/api.py#newcode65 recipe_modules/json/api.py:65: presentation.logs[self.label + ' (invalid)'] = raw_data.splitlines() On 2017/03/14 12:56:14, ...
3 years, 9 months ago (2017-03-14 17:34:53 UTC) #6
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/2750793002/60001
3 years, 9 months ago (2017-03-14 17:47:18 UTC) #9
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/34e6c01abe274e10)
3 years, 9 months ago (2017-03-14 17:53:47 UTC) #11
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/2750793002/80001
3 years, 9 months ago (2017-03-14 18:58:37 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 19:01:59 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://github.com/luci/recipes-py/commit/9fdd6d725d8d04125d43ce2be4f5e4b123f...

Powered by Google App Engine
This is Rietveld 408576698