diff options
author | Ravi Mistry <rmistry@google.com> | 2018-06-19 13:48:18 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-19 20:11:38 +0000 |
commit | 386d9cf40278bb026ebfbbc6077144c2d8ed4dd2 (patch) | |
tree | 0cbbbfd22b545b620f513f6db6f4dccff2f3fbf0 | |
parent | c9b6dda8042dcdd478a3218474fcd1656bb87076 (diff) |
Make infra failure message in Android compile bot more descriptive
Bug: skia:
Change-Id: I473b3f9a42dc9a65e0912263cc5ff8c204bfae6b
Reviewed-on: https://skia-review.googlesource.com/135784
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
-rw-r--r-- | infra/bots/android_compile/trigger_wait_ac_task.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/infra/bots/android_compile/trigger_wait_ac_task.py b/infra/bots/android_compile/trigger_wait_ac_task.py index 6d5bd84721..d4f8137c3c 100644 --- a/infra/bots/android_compile/trigger_wait_ac_task.py +++ b/infra/bots/android_compile/trigger_wait_ac_task.py @@ -25,6 +25,17 @@ GCE_WEBHOOK_SALT_METADATA_URI = ( POLLING_FREQUENCY_SECS = 60 # 1 minute. DEADLINE_SECS = 60 * 60 # 60 minutes. +INFRA_FAILURE_ERROR_MSG = ( + '\n\n' + 'Your run failed due to infra failures. ' + 'It could be due to any of the following:\n\n' + '* Need to rebase\n\n' + '* Failure when running "python -c from gn import gn_to_bp"\n\n' + '* Problem with syncing Android repository.\n\n' + 'See go/skia-android-framework-compile-bot-cloud-logs-errors for the ' + 'compile server\'s logs.' +) + class AndroidCompileException(Exception): pass @@ -116,9 +127,7 @@ def TriggerAndWait(options): 'Did not get a JSON response from %s: %s' % (get_url, e)) if ret["infra_failure"]: - raise AndroidCompileException( - 'Your run failed due to infra failures. It could be due to needing ' - 'to rebase or something else.') + raise AndroidCompileException(INFRA_FAILURE_ERROR_MSG) if ret["done"]: print |