Commit d2c82a25 authored by hinoka's avatar hinoka Committed by Commit bot

Bot_update recipe output: Add 'Try Rebasing' to patch failure output

I still see confusion around patch failures.  This should clearify things.

BUG=

Review-Url: https://codereview.chromium.org/2231953002
parent 7c3841ab
...@@ -276,7 +276,7 @@ class BotUpdateApi(recipe_api.RecipeApi): ...@@ -276,7 +276,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
# This is download failure, hence an infra failure. # This is download failure, hence an infra failure.
# Sadly, python.failing_step doesn't support kwargs. # Sadly, python.failing_step doesn't support kwargs.
self.m.python.inline( self.m.python.inline(
'Patch failure', 'Patch failure - Try Rebasing',
('import sys;' ('import sys;'
'print "Patch download failed. See bot_update step for' 'print "Patch download failed. See bot_update step for'
' details";sys.exit(1)'), ' details";sys.exit(1)'),
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
"-u", "-u",
"import sys;print \"Patch download failed. See bot_update step for details\";sys.exit(1)" "import sys;print \"Patch download failed. See bot_update step for details\";sys.exit(1)"
], ],
"name": "Patch failure", "name": "Patch failure - Try Rebasing",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
"@@@STEP_LOG_LINE@python.inline@import sys;print \"Patch download failed. See bot_update step for details\";sys.exit(1)@@@", "@@@STEP_LOG_LINE@python.inline@import sys;print \"Patch download failed. See bot_update step for details\";sys.exit(1)@@@",
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
}, },
{ {
"name": "$result", "name": "$result",
"reason": "Infra Failure: Step('Patch failure') returned 1", "reason": "Infra Failure: Step('Patch failure - Try Rebasing') returned 1",
"recipe_result": null, "recipe_result": null,
"status_code": 1 "status_code": 1
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment