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

Side by Side Diff: recipe_modules/json/example.expected/basic.json

Issue 2768883004: json: Improve error handling and adding ability to limit log output.
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "echo", 4 "echo",
5 "[1, 2, 3]" 5 "[1, 2, 3]"
6 ], 6 ],
7 "name": "echo1", 7 "name": "echo1",
8 "stdout": "/path/to/tmp/json", 8 "stdout": "/path/to/tmp/json",
9 "~followup_annotations": [ 9 "~followup_annotations": [
10 "@@@STEP_LOG_LINE@json.output@[@@@", 10 "@@@STEP_LOG_LINE@json.output@[@@@",
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 }, 121 },
122 { 122 {
123 "cmd": [ 123 "cmd": [
124 "python", 124 "python",
125 "RECIPE[recipe_engine::json:example].resources/cool_script.py", 125 "RECIPE[recipe_engine::json:example].resources/cool_script.py",
126 "{\"here is some total\ngarbage", 126 "{\"here is some total\ngarbage",
127 "/path/to/tmp/json" 127 "/path/to/tmp/json"
128 ], 128 ],
129 "name": "invalid json", 129 "name": "invalid json",
130 "~followup_annotations": [ 130 "~followup_annotations": [
131 "@@@STEP_LOG_LINE@json.output (invalid)@{\"here is some total@@@", 131 "@@@STEP_LOG_LINE@json.output (exception)@input was invalid@@@",
132 "@@@STEP_LOG_LINE@json.output (invalid)@garbage@@@",
133 "@@@STEP_LOG_END@json.output (invalid)@@@",
134 "@@@STEP_LOG_LINE@json.output (exception)@Invalid control character at: li ne 1 column 21 (char 20)@@@", 132 "@@@STEP_LOG_LINE@json.output (exception)@Invalid control character at: li ne 1 column 21 (char 20)@@@",
135 "@@@STEP_LOG_END@json.output (exception)@@@" 133 "@@@STEP_LOG_END@json.output (exception)@@@",
134 "@@@STEP_LOG_LINE@json.output@{\"here is some total@@@",
135 "@@@STEP_LOG_LINE@json.output@garbage@@@",
136 "@@@STEP_LOG_END@json.output@@@"
136 ] 137 ]
137 }, 138 },
138 { 139 {
140 "cmd": [
141 "python",
142 "RECIPE[recipe_engine::json:example].resources/cool_script.py",
143 "",
144 "/path/to/tmp/json"
145 ],
146 "name": "empty json",
147 "~followup_annotations": [
148 "@@@STEP_LOG_LINE@json.output (exception)@input was empty@@@",
149 "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@ @@",
150 "@@@STEP_LOG_END@json.output (exception)@@@",
151 "@@@STEP_LOG_END@json.output@@@"
152 ]
153 },
154 {
155 "cmd": [
156 "python",
157 "RECIPE[recipe_engine::json:example].resources/cool_script.py",
158 "/path/to/tmp/json"
159 ],
160 "name": "None json",
161 "~followup_annotations": [
162 "@@@STEP_LOG_LINE@json.output (exception)@input was empty@@@",
163 "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@ @@",
164 "@@@STEP_LOG_END@json.output (exception)@@@",
165 "@@@STEP_LOG_END@json.output@@@"
166 ]
167 },
168 {
139 "name": "$result", 169 "name": "$result",
140 "recipe_result": null, 170 "recipe_result": null,
141 "status_code": 0 171 "status_code": 0
142 } 172 }
143 ] 173 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698