/external/chromium-trace/catapult/dashboard/dashboard/models/ |
D | sheriff_test.py | 8 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 …]
|
D | alert_group.py | 151 sheriff = anomaly_entity.test.get().sheriff 152 if not sheriff: 155 sheriff = sheriff.string_id() 162 logger = quick_logger.QuickLogger('auto_triage', sheriff, formatter)
|
D | graph_data.py | 67 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:
|
D | stoppage_alert_test.py | 10 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/ |
D | edit_sheriffs_test.py | 19 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 …]
|
D | list_monitored_tests.py | 24 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,
|
D | email_template.py | 185 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()
|
D | dump_graph_json.py | 74 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)
|
D | auto_triage_test.py | 18 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 …]
|
D | stats_test.py | 19 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 …]
|
D | alerts_test.py | 17 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()
|
D | find_anomalies.py | 54 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,
|
D | email_summary_test.py | 17 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(
|
D | bench_find_anomalies_test.py | 20 from dashboard.models import sheriff 38 self.sheriff = sheriff.Sheriff( 55 sheriff_entity = self.sheriff.get() 91 sheriff=self.sheriff).put()
|
D | main.py | 40 sheriff = ndb.Key('Sheriff', sheriff_name) 42 anomalies = _GetRecentAnomalies(days, sheriff) 58 def _GetRecentAnomalies(days, sheriff): argument 71 anomaly.Anomaly.sheriff == sheriff)
|
D | email_sheriff.py | 14 def EmailSheriff(sheriff, test, anomaly): argument 22 receivers = email_template.GetSheriffEmails(sheriff) 24 logging.warn('No email address for %s', sheriff)
|
D | dump_graph_json_test.py | 18 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()
|
D | find_anomalies_test.py | 16 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(
|
D | email_summary.py | 15 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,
|
D | send_stoppage_alert_emails.py | 15 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,
|
D | edit_sheriffs.py | 10 from dashboard.models import sheriff 27 request, response, sheriff.Sheriff) 42 for entity in sheriff.Sheriff.query()}
|
D | associate_alerts_test.py | 20 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()
|
D | alerts.py | 16 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/ |
D | admin-tasks.md | 41 ### 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/ |
D | index.md | 6 * [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
|