Index: scripts/slave/recipes/bisect_test/example_bisect_results.expected/failed_test.json |
diff --git a/scripts/slave/recipes/bisect_test/example_bisect_results.expected/failed_test.json b/scripts/slave/recipes/bisect_test/example_bisect_results.expected/failed_test.json |
index 8387d7ec30205030e67a86b54c4b0193fec74f1d..fc3751abfa1d6613433010f33e7be5cbda2c0886 100644 |
--- a/scripts/slave/recipes/bisect_test/example_bisect_results.expected/failed_test.json |
+++ b/scripts/slave/recipes/bisect_test/example_bisect_results.expected/failed_test.json |
@@ -173,19 +173,32 @@ |
}, |
{ |
"cmd": [ |
+ "cat", |
+ "{\"bad_revision\": \"deadbeef\", \"bisect_bot\": \"linux_perf_tester\", \"bug_id\": \"\", \"buildbot_log_url\": \"\", \"change\": null, \"command\": \"src/tools/perf/run_benchmark -v --browser=release smoothness.tough_scrolling_cases\", \"culprit_data\": null, \"fail_reason\": null, \"good_revision\": \"c001c0de\", \"metric\": \"mean_input_event_latency/mean_input_event_latency\", \"revision_data\": [], \"score\": 0, \"status\": \"failed\", \"try_job_id\": null, \"warnings\": [\"This is a demo warning\"]}" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "Results", |
+ "stdout": "/path/to/tmp/json", |
+ "~followup_annotations": [ |
+ "@@@STEP_LOG_LINE@json.output (invalid)@null@@@", |
+ "@@@STEP_LOG_END@json.output (invalid)@@@" |
+ ] |
+ }, |
+ { |
+ "cmd": [ |
"python", |
"-u", |
- "\nimport shutil\nimport sys\nshutil.copyfileobj(open(sys.argv[1]), sys.stdout)\n", |
- "---bisect results start here---\n\n===== BISECT JOB RESULTS =====\nStatus: Negative: Failed to bisect.\n\nTest Command: src/tools/perf/run_benchmark -v --browser=release smoothness.tough_scrolling_cases\nTest Metric: mean_input_event_latency/mean_input_event_latency\nRelative Change: None\nScore: None\nRetested CL with revert: Not Implemented.\n\n\n===== WARNINGS =====\nThe following warnings were raised by the bisect job:\n\n * This is a demo warning\n\n\n===== TESTED REVISIONS =====\nDepot Revision Mean Value Std. Dev. Num Values Good? \n\n\n\n| O O | Visit http://www.chromium.org/developers/speed-infra/perf-bug-faq\n| X | for more information addressing perf regression bugs. For feedback,\n| / \\ | file a bug with label Cr-Tests-AutoBisect. Thank you!" |
+ "RECIPE_MODULE[perf_dashboard]/resources/post_json.py" |
], |
"cwd": "[SLAVE_BUILD]", |
- "name": "Results", |
+ "name": "Post bisect results", |
+ "stdin": "{\"data\": {\"bad_revision\": \"deadbeef\", \"bisect_bot\": \"linux_perf_tester\", \"bug_id\": \"\", \"buildbot_log_url\": \"\", \"change\": null, \"command\": \"src/tools/perf/run_benchmark -v --browser=release smoothness.tough_scrolling_cases\", \"culprit_data\": null, \"fail_reason\": null, \"good_revision\": \"c001c0de\", \"metric\": \"mean_input_event_latency/mean_input_event_latency\", \"revision_data\": [], \"score\": 0, \"status\": \"failed\", \"try_job_id\": null, \"warnings\": [\"This is a demo warning\"]}, \"url\": \"https://chromeperf.appspot.com/post_bisect_results\"}", |
+ "stdout": "/path/to/tmp/json", |
"~followup_annotations": [ |
- "@@@STEP_LOG_LINE@python.inline@@@@", |
- "@@@STEP_LOG_LINE@python.inline@import shutil@@@", |
- "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
- "@@@STEP_LOG_LINE@python.inline@shutil.copyfileobj(open(sys.argv[1]), sys.stdout)@@@", |
- "@@@STEP_LOG_END@python.inline@@@" |
+ "@@@STEP_LOG_LINE@json.output@{@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"status_code\": 200@@@", |
+ "@@@STEP_LOG_LINE@json.output@}@@@", |
+ "@@@STEP_LOG_END@json.output@@@" |
] |
}, |
{ |