diff options
-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 |