/external/chromium-trace/catapult/dashboard/dashboard/ |
D | associate_alerts.py | 53 bug_id = self.request.get('bug_id') 54 if bug_id: 55 self._AssociateAlertsWithBug(bug_id, urlsafe_keys, is_confirmed) 94 def _AssociateAlertsWithBug(self, bug_id, urlsafe_keys, is_confirmed): argument 108 bug_id = int(bug_id) 112 {'error': 'Invalid bug ID "%s".' % str(bug_id)}) 120 warning_msg = self._VerifyAnomaliesOverlap(alert_entities, bug_id) 123 'bug_id': bug_id, 129 a.bug_id = bug_id 132 self.RenderHtml('bug_result.html', {'bug_id': bug_id}) [all …]
|
D | issue_tracker_service.py | 36 def AddBugComment(self, bug_id, comment, status=None, cc_list=None, argument 54 if not bug_id or bug_id < 0: 61 if merge_issue and int(merge_issue) != bug_id: 64 logging.info('Bug %s marked as duplicate of %s', bug_id, merge_issue) 75 return self._MakeCommentRequest(bug_id, body, send_email=send_email) 82 def _MakeCommentRequest(self, bug_id, body, retry=True, send_email=False): argument 97 issueId=bug_id, 108 return self._MakeCommentRequest(bug_id, body, retry=False) 111 logging.warning('Unable to update bug %s with body %s', bug_id, body) 113 logging.error('Error updating bug %s with body %s', bug_id, body) [all …]
|
D | edit_anomalies.py | 56 bug_id = self.request.get('bug_id') 59 if bug_id: 60 self.ChangeBugId(alert_entities, bug_id) 67 def ChangeBugId(self, alert_entities, bug_id): argument 70 if bug_id == 'REMOVE': 71 bug_id = None 74 bug_id = int(bug_id) 77 'error': 'Invalid bug ID %s' % str(bug_id)})) 80 a.bug_id = bug_id 83 self.response.out.write(json.dumps({'bug_id': bug_id}))
|
D | group_report.py | 49 bug_id = self.request.get('bug_id') 53 if bug_id: 54 self._ShowAlertsWithBugId(bug_id) 66 def _ShowAlertsWithBugId(self, bug_id): argument 73 if not _IsInt(bug_id): 74 raise request_handler.InvalidInputError('Invalid bug ID "%s".' % bug_id) 75 bug_id = int(bug_id) 77 anomaly.Anomaly.bug_id == bug_id) 80 stoppage_alert.StoppageAlert.bug_id == bug_id) 82 self._ShowAlerts(anomalies + stoppage_alerts, bug_id) [all …]
|
D | auto_triage.py | 63 bug_id = int(self.request.get('bug_id')) 64 TriageBugs.UpdateRecoveredBugs(bug_id) 97 anomaly.Anomaly.bug_id == None, 127 def UpdateRecoveredBugs(cls, bug_id): argument 130 anomaly.Anomaly.bug_id == bug_id).fetch() 133 bug = ndb.Key('Bug', bug_id).get() 145 cls._CommentOnRecoveredBug(bug_id) 148 def _CommentOnRecoveredBug(cls, bug_id): argument 150 bug = ndb.Key('Bug', bug_id).get() 155 comment = cls._RecoveredBugComment(bug_id) [all …]
|
D | auto_bisect_test.py | 37 bug_id=111, test=test_key, 41 bug_id=111, status='failed', 46 try_job.TryJob.query(try_job.TryJob.bug_id == 111).get()) 51 bug_id=222, status='failed', 56 try_job.TryJob.query(try_job.TryJob.bug_id == 222).get()) 61 bug_id=333, status='failed', 71 bug_id=222, status='failed', 74 bug_id=444, status='started', 77 bug_id=777, status='started', 80 bug_id=555, status=None, [all …]
|
D | auto_bisect.py | 68 elif job.bug_id: 73 if job.bug_id: 77 start_try_job.LogBisectResult(job.bug_id, comment) 93 bisect_job.bug_id, bisect_job.run_count) 107 def StartNewBisectForBug(bug_id): argument 119 bisect_job = _MakeBisectTryJob(bug_id) 133 def _MakeBisectTryJob(bug_id, run_count=0): argument 148 anomalies = anomaly.Anomaly.query(anomaly.Anomaly.bug_id == bug_id).fetch() 177 bug_id=bug_id, 188 bug_id=bug_id, [all …]
|
D | update_bug_with_results.py | 127 job.key.id(), job.bug_id, job.buildbucket_job_id) 221 if job.bug_id < 0: 243 job.bug_id, comment, cc_list=authors_to_cc, merge_issue=merge_issue, 247 % (job.bug_id, comment)) 250 job.bug_id, job.rietveld_issue_id) 253 _MapAnomaliesToMergeIntoBug(merge_issue, job.bug_id) 256 bug = ndb.Key('Bug', job.bug_id).get() 265 layered_cache.SetExternal(commit_cache_key, str(job.bug_id), 268 job.bug_id, commit_cache_key) 283 issue_tracker.AddBugComment(job.bug_id, bug_comment) [all …]
|
D | edit_anomalies_test.py | 39 bug_id=None).put() 44 bug_id=None).put() 49 bug_id=None).put() 58 self.assertIsNone(anomaly_keys[0].get().bug_id) 69 self.assertIsNone(anomaly_keys[0].get().bug_id) 79 self.assertEqual(31337, anomaly_keys[0].get().bug_id) 85 a.bug_id = 12345 92 self.assertIsNone(anomaly_keys[0].get().bug_id) 98 a.bug_id = 12345 108 self.assertEqual(12345, anomaly_keys[0].get().bug_id) [all …]
|
D | file_bug.py | 134 bug_id = service.NewBug( 136 if not bug_id: 140 bug_data.Bug(id=bug_id).put() 142 alert_entity.bug_id = bug_id 145 comment_body = _AdditionalDetails(bug_id, alerts) 146 service.AddBugComment(bug_id, comment_body) 148 template_params = {'bug_id': bug_id} 150 bisect_result = auto_bisect.StartNewBisectForBug(bug_id) 158 def _AdditionalDetails(bug_id, alerts): argument 161 bug_page_url = '%s?bug_id=%s' % (base_url, bug_id)
|
D | auto_triage_test.py | 59 median_before, median_after, bug_id=None): argument 61 if bug_id > 0: 62 bug = ndb.Key('Bug', bug_id).get() 64 bug_data.Bug(id=bug_id).put() 71 bug_id=bug_id, 136 bug_id=-1) 152 bug_id=1234) 160 bug_id = 1234 161 bug_data.Bug(id=bug_id).put() 164 bug = ndb.Key('Bug', bug_id).get()
|
D | update_bug_with_results_test.py | 210 def _AddTryJob(self, bug_id, status, bot, **kwargs): argument 211 job = try_job.TryJob(bug_id=bug_id, status=status, bot=bot, **kwargs) 213 bug_data.Bug(id=bug_id).put() 241 self.assertEqual(11111, pending_jobs[0].bug_id) 243 self.assertEqual(22222, pending_jobs[1].bug_id) 245 self.assertEqual(33333, pending_jobs[2].bug_id) 247 self.assertEqual(44444, pending_jobs[3].bug_id) 265 bug_id=12345, status='started', bot='win_perf', 273 self.assertEqual(12345, pending_jobs[0].bug_id) 399 sheriff=None, bug_id=12345).put() [all …]
|
D | start_try_job.py | 126 bug_id = int(self.request.get('bug_id', -1)) 141 bug_id=bug_id, 155 bug_id=bug_id, 187 bug_id=-1, 251 repeat_count, max_time_minutes, bug_id, use_archive=None, argument 282 bug_id = int(bug_id) 298 'bug_id': str(bug_id), 617 if bisect_job.bug_id: 620 issue_tracker.AddBugComment(bisect_job.bug_id, comment, send_email=False) 684 if not job.bug_id or job.bug_id < 0: [all …]
|
D | associate_alerts_test.py | 78 sheriff=sheriff_key, bug_id=12345).put() 141 self.assertEqual(12345, anomaly_entity.bug_id) 143 self.assertIsNone(anomaly_entity.bug_id) 152 self.assertEqual(123, alert_key.get().bug_id) 165 anomaly.Anomaly.end_revision == 9996).get().bug_id) 168 anomaly.Anomaly.end_revision == 10000).get().bug_id) 182 self.assertIsNone(anomaly_entity.bug_id) 196 self.assertEqual(12345, anomaly_entity.bug_id) 198 self.assertIsNone(anomaly_entity.bug_id)
|
D | alerts.py | 98 anomaly.Anomaly.bug_id == None) 121 stoppage_alert.StoppageAlert.bug_id == None) 138 return [GetAnomalyDict(a, bisect_statuses.get(a.bug_id)) for a in anomalies] 198 'bug_id': alert_entity.bug_id, 205 bug_id_list = {a.bug_id for a in anomalies if a.bug_id > 0}
|
D | buildbucket_job.py | 14 test_command, metric, repeats, timeout_minutes, bug_id, argument 30 self.bug_id = bug_id 60 'bug_id': self.bug_id,
|
D | group_report_test.py | 30 self, revision_ranges, test_key, sheriff_key, bug_id=None): argument 36 test=test_key, bug_id=bug_id, sheriff=sheriff_key, 130 test_keys[0], sheriff_key, bug_id=123) 142 alert.bug_id = 123
|
D | issue_tracker_service_test.py | 78 bug_id = service.NewBug('Bug title', 'body', owner='someone@chromium.org') 80 self.assertEqual(333, bug_id) 85 bug_id = service.NewBug('Bug title', 'body', owner='someone@chromium.org') 87 self.assertIsNone(bug_id)
|
/external/chromium-trace/catapult/dashboard/dashboard/models/ |
D | alert_group_test.py | 48 bug_id=12345, 53 bug_id=12345, 58 bug_id=None, 86 self.assertEqual(12345, anomalies[1].bug_id) 87 self.assertIsNone(anomalies[2].bug_id) 90 anomalies[2].bug_id = 12345 92 self.assertEqual(anomalies[1].bug_id, anomalies[2].bug_id) 101 self.assertEqual(12345, anomalies[1].bug_id) 102 anomalies[1].bug_id = -1 160 new_anomaly.bug_id = -1 [all …]
|
D | alert.py | 25 bug_id = ndb.IntegerProperty(indexed=True) variable in Alert 80 if self.bug_id != original_alert.bug_id: 87 if self.bug_id > 0 and group.bug_id != self.bug_id: 88 group.bug_id = self.bug_id 92 elif self.bug_id < 0 and self.bug_id is not None: 98 elif self.bug_id is None and len(grouped_alerts) == 1: 99 group.bug_id = None
|
D | try_job.py | 29 bug_id = ndb.IntegerProperty() variable in TryJob 76 if self.bug_id: 77 bug_data.SetBisectStatus(self.bug_id, 'started') 82 if self.bug_id: 83 bug_data.SetBisectStatus(self.bug_id, 'failed') 93 if self.bug_id: 94 bug_data.SetBisectStatus(self.bug_id, 'failed') 101 if self.bug_id: 102 bug_data.SetBisectStatus(self.bug_id, 'completed')
|
D | bug_data.py | 50 def SetBisectStatus(bug_id, status): argument 52 if bug_id is None or bug_id < 0: 54 bug = ndb.Key('Bug', int(bug_id)).get() 59 logging.error('Bug %s does not exist.', bug_id)
|
D | alert_group.py | 22 bug_id = ndb.IntegerProperty(indexed=True) variable in AlertGroup 134 if group.bug_id: 135 alert_entity.bug_id = group.bug_id 136 _AddLogForBugAssociate(alert_entity, group.bug_id) 149 def _AddLogForBugAssociate(anomaly_entity, bug_id): argument 157 str(bug_id)) 160 (test_path, bug_url, bug_id))
|
/external/autotest/server/cros/dynamic_suite/ |
D | tools.py | 254 bug_id = keyvals.get(keyval_base + _BUG_ID_KEYVAL) 255 if not bug_id: 257 bug_id = int(bug_id) 260 return bug_id, bug_count
|
D | reporting_unittest.py | 107 bug_id, bug_count = reporting.Reporter().report(self._get_failure()) 109 self.assertEqual(bug_id, self._FAKE_ISSUE_ID) 136 bug_id, bug_count = reporting.Reporter().report(self._get_failure()) 138 self.assertEqual(bug_id, self._FAKE_ISSUE_ID) 175 bug_id, bug_count = reporting.Reporter().report(self._get_failure(), 178 self.assertEqual(bug_id, self._FAKE_ISSUE_ID) 197 bug_id, bug_count = reporting.Reporter().report(bug) 199 self.assertEqual(bug_id, self._FAKE_ISSUE_ID) 214 bug_id, bug_count = reporting.Reporter().report(bug) 216 self.assertEqual(bug_id, self._FAKE_ISSUE_ID)
|