Home
last modified time | relevance | path

Searched refs:sheriff (Results 1 – 25 of 55) sorted by relevance

123

/external/chromium-trace/catapult/dashboard/dashboard/models/
Dsheriff_test.py8 from dashboard.models import sheriff
14 with self.assertRaises(sheriff.ValidationError):
15 sheriff.Sheriff(url='oops')
17 with self.assertRaises(sheriff.ValidationError):
18 sheriff.Sheriff(url='x.com')
19 with self.assertRaises(sheriff.ValidationError):
20 sheriff.Sheriff(url='http://x.com')
24 sheriff.Sheriff(url='http://x.com/')
29 with self.assertRaises(sheriff.ValidationError):
30 sheriff.Sheriff(email='oops')
[all …]
Dalert_group.py151 sheriff = anomaly_entity.test.get().sheriff
152 if not sheriff:
155 sheriff = sheriff.string_id()
162 logger = quick_logger.QuickLogger('auto_triage', sheriff, formatter)
Dgraph_data.py67 from dashboard.models import sheriff as sheriff_module
121 sheriff = ndb.KeyProperty(kind=sheriff_module.Sheriff, indexed=True) variable in Test
264 self.sheriff = None
268 self.sheriff = sheriff_entity.key
269 if self.sheriff:
276 if self.sheriff:
Dstoppage_alert_test.py10 from dashboard.models import sheriff
19 sheriff.Sheriff(id='Foo', patterns=['*/*/*/*']).put()
32 self.assertEqual(test.sheriff, alert.sheriff)
/external/chromium-trace/catapult/dashboard/dashboard/
Dedit_sheriffs_test.py19 from dashboard.models import sheriff
49 sheriff.Sheriff(
63 sheriffs = sheriff.Sheriff.query().fetch()
84 sheriff_entity = sheriff.Sheriff.query().fetch()[0]
97 self.assertEqual(sheriff_entity.key, aaa.sheriff)
98 self.assertEqual(sheriff_entity.key, bbb.sheriff)
99 self.assertIsNone(ccc.sheriff)
100 self.assertIsNone(ddd.sheriff)
111 sheriff_entity = sheriff.Sheriff.query().fetch()[0]
121 self.assertIsNone(aaa.sheriff)
[all …]
Dlist_monitored_tests.py24 sheriff = self.request.get('get-sheriffed-by')
25 if not sheriff:
28 self.response.out.write(json.dumps(_ListMonitoredTests(sheriff)))
33 sheriff = ndb.Key('Sheriff', sheriff_name)
35 graph_data.Test.sheriff == sheriff,
Demail_template.py185 def GetSheriffEmails(sheriff): argument
199 receivers = [sheriff.email] if sheriff.email else []
200 sheriff_on_duty = _GetSheriffOnDutyEmail(sheriff)
206 def _GetSheriffOnDutyEmail(sheriff): argument
215 if not sheriff.url:
217 response = urlfetch.fetch(sheriff.url)
220 sheriff.url, sheriff.key.string_id())
225 sheriff.url, response.content)
280 sheriff_name = alert.sheriff.string_id()
Ddump_graph_json.py74 sheriff_keys = {alert.sheriff for alert in alerts}
75 sheriffs = [sheriff.get() for sheriff in sheriff_keys]
99 sheriff = ndb.Key('Sheriff', sheriff_name).get()
100 if not sheriff:
104 anomalies = self._FetchAnomalies(sheriff, num_anomalies)
117 entities.append(sheriff)
152 def _FetchAnomalies(self, sheriff, num_anomalies): argument
155 anomaly.Anomaly.sheriff == sheriff.key)
Dauto_triage_test.py18 from dashboard.models import sheriff
46 test.sheriff = sheriff_key
69 sheriff=sheriff_key).put()
72 sheriff_key = sheriff.Sheriff(email='a@google.com', id='sheriff_key').put()
85 sheriff_key = sheriff.Sheriff(email='a@google.com', id='sheriff_key').put()
98 sheriff_key = sheriff.Sheriff(email='a@google.com', id='sheriff_key').put()
111 sheriff_key = sheriff.Sheriff(email='a@google.com', id='sheriff_key').put()
124 sheriff_key = sheriff.Sheriff(email='a@google.com', id='sheriff_key').put()
142 sheriff_key = sheriff.Sheriff(email='a@google.com', id='sheriff_key').put()
171 sheriff_key = sheriff.Sheriff(email='a@google.com', id='sheriff_key').put()
[all …]
Dstats_test.py19 from dashboard.models import sheriff
61 sheriff.Sheriff(
88 correct_sheriff = sheriff.Sheriff(
90 wrong_sheriff = sheriff.Sheriff(
101 sheriff=correct_sheriff,
109 sheriff=correct_sheriff,
117 sheriff=wrong_sheriff,
125 sheriff=correct_sheriff,
131 sheriff=correct_sheriff,
138 sheriff=correct_sheriff,
[all …]
Dalerts_test.py17 from dashboard.models import sheriff
34 sheriff_key = sheriff.Sheriff(
62 sheriff=sheriff_key)
74 bug_id=bug_id, sheriff=sheriff_key)
87 sheriff=sheriff_key)
156 sheriff2_key = sheriff.Sheriff(
163 anomaly_entity.sheriff = sheriff2_key
176 sheriff.Sheriff(id='Sheriff', patterns=['M/b/*/*']).put()
189 sheriff.Sheriff(id='Sheriff', patterns=['M/b/*/*']).put()
206 sheriff.Sheriff(id='Foo', internal_only=True).put()
Dfind_anomalies.py54 sheriff = _GetSheriffForTest(test)
55 if not sheriff:
82 not sheriff.summarize):
83 email_sheriff.EmailSheriff(sheriff, test, anomaly_entity)
201 if test.sheriff:
202 return test.sheriff.get()
252 sheriff=test.sheriff,
Demail_summary_test.py17 from dashboard.models import sheriff
45 timestamp=anomaly_time, sheriff=sheriff_key).put()
49 sheriff_key = sheriff.Sheriff(
64 sheriff_key = sheriff.Sheriff(
79 sheriff_key = sheriff.Sheriff(
93 sheriff_key = sheriff.Sheriff(
107 sheriff1 = sheriff.Sheriff(
109 sheriff2 = sheriff.Sheriff(
Dbench_find_anomalies_test.py20 from dashboard.models import sheriff
38 self.sheriff = sheriff.Sheriff(
55 sheriff_entity = self.sheriff.get()
91 sheriff=self.sheriff).put()
Dmain.py40 sheriff = ndb.Key('Sheriff', sheriff_name)
42 anomalies = _GetRecentAnomalies(days, sheriff)
58 def _GetRecentAnomalies(days, sheriff): argument
71 anomaly.Anomaly.sheriff == sheriff)
Demail_sheriff.py14 def EmailSheriff(sheriff, test, anomaly): argument
22 receivers = email_template.GetSheriffEmails(sheriff)
24 logging.warn('No email address for %s', sheriff)
Ddump_graph_json_test.py18 from dashboard.models import sheriff
101 sheriff_key = sheriff.Sheriff(email='example@google.com').put()
102 anomaly.Anomaly(sheriff=sheriff_key, test=test_key).put()
126 chromium_sheriff = sheriff.Sheriff(
128 qa_sheriff = sheriff.Sheriff(
130 anomaly.Anomaly(sheriff=chromium_sheriff, test=test_key_foo).put()
131 anomaly.Anomaly(sheriff=qa_sheriff, test=test_key_bar).put()
Dfind_anomalies_test.py16 from dashboard.models import sheriff
129 sheriff.Sheriff(
159 a.sheriff.string_id() == sheriff_name and
198 sheriff.Sheriff(
226 sheriff.Sheriff(
245 sheriff.Sheriff(
282 sheriff.Sheriff(
307 sheriff.Sheriff(
309 sheriff.Sheriff(
327 sheriff.Sheriff(
Demail_summary.py15 from dashboard.models import sheriff
37 sheriffs_to_email_query = sheriff.Sheriff.query(
38 sheriff.Sheriff.summarize == True)
68 anomaly.Anomaly.sheriff == sheriff_entity.key,
Dsend_stoppage_alert_emails.py15 from dashboard.models import sheriff
71 sheriffs_to_email_query = sheriff.Sheriff.query(
72 sheriff.Sheriff.stoppage_alert_delay > 0)
102 stoppage_alert.StoppageAlert.sheriff == sheriff_entity.key,
Dedit_sheriffs.py10 from dashboard.models import sheriff
27 request, response, sheriff.Sheriff)
42 for entity in sheriff.Sheriff.query()}
Dassociate_alerts_test.py20 from dashboard.models import sheriff
36 return sheriff.Sheriff(
64 sheriff=sheriff_key).put()
71 sheriff=sheriff_key).put()
78 sheriff=sheriff_key, bug_id=12345).put()
Dalerts.py16 from dashboard.models import sheriff
90 anomaly.Anomaly.sheriff == sheriff_key)
117 stoppage_alert.StoppageAlert.sheriff == sheriff_key)
131 sheriff_keys = sheriff.Sheriff.query().fetch(keys_only=True)
/external/chromium-trace/catapult/dashboard/docs/
Dadmin-tasks.md41 ### Editing sheriff rotations
43 You can view, create and edit sheriff rotations
46 #### Adding a new sheriff
48 It’s fine to add a new sheriff rotation any time a team wants alerts
49 to go to a new email address. It’s fine to make a temporary sheriff
53 - **Name**: This is the name of the sheriff
56 - **Rotation URL**: Some sheriff rotations have a URL for specifying
57 the email of the sheriff. For example, the Chromium Perf Sheriff URL
58 …is [http://chromium-build.appspot.com/p/chromium/sheriff\_perf.js](http://chromium-build.appspot.c…
59 Most sheriff rotations don’t have a URL, and if not it’s fine to leave
[all …]
/external/skia/site/dev/sheriffing/
Dindex.md6 * [What does a sheriff do?](#what_is_a_sheriff)
12 * [How to swap sheriff shifts](#how_to_swap)
23 What does a sheriff do?
26 A sheriff keeps an eye on the tree, DEPS rolls, Gold tool and the Perf tool.
28 Below is a brief summary of what the sheriff does for each task:
46 * The sheriff's duty here is to make sure that when developers introduce new images or new perf reg…
52 …he tree green and then open; if a simple revert can fix the problem, the sheriff <b>should revert …
59 …kia-tree-status web app](https://skia-tree-status.appspot.com/sheriff). The current sheriff is hig…
60 … banner on the top of the [status page](https://status.skia.org) also displays the current sheriff.
64 How to swap sheriff shifts

123