summaryrefslogtreecommitdiff
path: root/cbuildbot/stages/report_stages.py
diff options
context:
space:
mode:
authorYu-Ju Hong <yjhong@chromium.org>2014-08-18 12:46:45 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-08-22 00:57:01 +0000
commit24ff7db9159329d09c1126137dbe0184790f77a1 (patch)
tree2976e35cc1fc64c4e2a75941822bfc182dbe00e7 /cbuildbot/stages/report_stages.py
parent720e5283feafd2c95ec92ad3fb66be8459d70f41 (diff)
downloadchromite-24ff7db9159329d09c1126137dbe0184790f77a1.tar.gz
Send CQ alert emails to the tree sheriffs
This CL enables sending alert emails to the tree sheriffs. As part of the process, functions that retrieve sheriff's email address are moved to tree_status.py. BUG=None TEST=`cbuildbot/run_tests` Change-Id: Ib166d7d6e6e40bb9c7df1955d4e3c0a7d1f6a470 Reviewed-on: https://chromium-review.googlesource.com/212883 Tested-by: Yu-Ju Hong <yjhong@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org> Commit-Queue: Yu-Ju Hong <yjhong@chromium.org>
Diffstat (limited to 'cbuildbot/stages/report_stages.py')
-rw-r--r--cbuildbot/stages/report_stages.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cbuildbot/stages/report_stages.py b/cbuildbot/stages/report_stages.py
index 580355b39..e41d67178 100644
--- a/cbuildbot/stages/report_stages.py
+++ b/cbuildbot/stages/report_stages.py
@@ -9,10 +9,11 @@ import os
import sys
from chromite.cbuildbot import commands
+from chromite.cbuildbot import constants
from chromite.cbuildbot import failures_lib
from chromite.cbuildbot import metadata_lib
from chromite.cbuildbot import results_lib
-from chromite.cbuildbot import constants
+from chromite.cbuildbot import tree_status
from chromite.cbuildbot.stages import completion_stages
from chromite.cbuildbot.stages import generic_stages
from chromite.cbuildbot.stages import sync_stages
@@ -177,7 +178,7 @@ class ReportStage(generic_stages.BuilderStage,
if not self._run.debug:
alerts.SendEmail('%s health alert' % builder_run.config.name,
- builder_run.config.health_alert_recipients,
+ tree_status.GetHealthAlertRecipients(builder_run),
message=self._HealthAlertMessage(-streak_value),
smtp_server=constants.GOLO_SMTP_SERVER,
extra_fields={'X-cbuildbot-alert': 'cq-health'})