/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 | 44 def AddBugComment(self, bug_id, comment, status=None, cc_list=None, argument 61 if not bug_id or bug_id < 0: 68 if merge_issue and int(merge_issue) != bug_id: 71 logging.info('Bug %s marked as duplicate of %s', bug_id, merge_issue) 82 return self._MakeCommentRequest(bug_id, body) 89 def _MakeCommentRequest(self, bug_id, body, retry=True): argument 103 issueId=bug_id, 114 return self._MakeCommentRequest(bug_id, body, retry=False) 117 logging.warning('Unable to update bug %s with body %s', bug_id, body) 119 logging.error('Error updating bug %s with body %s', bug_id, body) [all …]
|
D | group_report.py | 50 bug_id = self.request.get('bug_id') 54 if bug_id: 55 self._ShowAlertsWithBugId(bug_id) 67 def _ShowAlertsWithBugId(self, bug_id): argument 74 if not _IsInt(bug_id): 75 raise request_handler.InvalidInputError('Invalid bug ID "%s".' % bug_id) 76 bug_id = int(bug_id) 78 anomaly.Anomaly.bug_id == bug_id) 81 stoppage_alert.StoppageAlert.bug_id == bug_id) 83 self._ShowAlerts(anomalies + stoppage_alerts, bug_id) [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 | auto_triage.py | 63 bug_id = int(self.request.get('bug_id')) 64 TriageBugs.UpdateRecoveredBugs(bug_id) 94 anomaly.Anomaly.bug_id == None, 122 def UpdateRecoveredBugs(cls, bug_id): argument 125 anomaly.Anomaly.bug_id == bug_id).fetch() 128 bug = ndb.Key('Bug', bug_id).get() 140 cls._CommentOnRecoveredBug(bug_id) 143 def _CommentOnRecoveredBug(cls, bug_id): argument 145 bug = ndb.Key('Bug', bug_id).get() 150 comment = cls._RecoveredBugComment(bug_id) [all …]
|
D | auto_bisect_test.py | 43 bug_id=111, test=test_key, 47 bug_id=111, status='failed', 52 try_job.TryJob.query(try_job.TryJob.bug_id == 111).get()) 57 bug_id=222, status='failed', 62 try_job.TryJob.query(try_job.TryJob.bug_id == 222).get()) 67 bug_id=333, status='failed', 77 bug_id=222, status='failed', 80 bug_id=444, status='started', 83 bug_id=777, status='started', 86 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) 108 def StartNewBisectForBug(bug_id): argument 120 bisect_job = _MakeBisectTryJob(bug_id) 134 def _MakeBisectTryJob(bug_id, run_count=0): argument 149 anomalies = anomaly.Anomaly.query(anomaly.Anomaly.bug_id == bug_id).fetch() 180 bug_id=bug_id, 192 bug_id=bug_id, [all …]
|
D | update_bug_with_results.py | 158 if job.bug_id < 0: 180 job.bug_id, comment, cc_list=authors_to_cc, merge_issue=merge_issue, 184 % (job.bug_id, comment)) 187 job.bug_id, job.rietveld_issue_id) 190 _MapAnomaliesToMergeIntoBug(merge_issue, job.bug_id) 193 bug = ndb.Key('Bug', job.bug_id).get() 202 layered_cache.SetExternal(commit_cache_key, str(job.bug_id), 205 job.bug_id, commit_cache_key) 223 anomaly.Anomaly.bug_id == int(source_bug_id)) 226 anomaly_entity.bug_id = int(dest_bug_id) [all …]
|
D | edit_anomalies_test.py | 37 bug_id=None).put() 42 bug_id=None).put() 47 bug_id=None).put() 56 self.assertIsNone(anomaly_keys[0].get().bug_id) 66 self.assertIsNone(anomaly_keys[0].get().bug_id) 76 self.assertEqual(31337, anomaly_keys[0].get().bug_id) 82 a.bug_id = 12345 89 self.assertIsNone(anomaly_keys[0].get().bug_id) 95 a.bug_id = 12345 105 self.assertEqual(12345, anomaly_keys[0].get().bug_id) [all …]
|
D | file_bug.py | 135 bug_id = service.NewBug( 137 if not bug_id: 141 bug_data.Bug(id=bug_id).put() 143 alert_entity.bug_id = bug_id 146 comment_body = _AdditionalDetails(bug_id, alerts) 147 service.AddBugComment(bug_id, comment_body) 149 template_params = {'bug_id': bug_id} 151 bisect_result = auto_bisect.StartNewBisectForBug(bug_id) 159 def _AdditionalDetails(bug_id, alerts): argument 162 bug_page_url = '%s?bug_id=%s' % (base_url, bug_id)
|
D | auto_triage_test.py | 56 median_before, median_after, bug_id=None): argument 58 if bug_id > 0: 59 bug = ndb.Key('Bug', bug_id).get() 61 bug_data.Bug(id=bug_id).put() 68 bug_id=bug_id, 133 bug_id=-1) 151 bug_id=1234) 159 bug_id = 1234 160 bug_data.Bug(id=bug_id).put() 163 bug = ndb.Key('Bug', bug_id).get()
|
D | start_try_job.py | 117 bug_id = int(self.request.get('bug_id', -1)) 133 bug_id=bug_id, 148 bug_id=bug_id, 181 bug_id=-1, 247 repeat_count, max_time_minutes, bug_id, use_archive=None, argument 281 bug_id = int(bug_id) 297 'bug_id': str(bug_id), 627 bug_id = bisect_job.bug_id 646 subject = 'Perf bisect for bug %s on behalf of %s' % (bug_id, email) 671 if bug_id and bug_id > 0: [all …]
|
D | update_bug_with_results_test.py | 174 def _AddTryJob(self, bug_id, status, bot, **kwargs): argument 175 job = try_job.TryJob(bug_id=bug_id, status=status, bot=bot, **kwargs) 177 bug_data.Bug(id=bug_id).put() 202 self.assertEqual(11111, pending_jobs[0].bug_id) 204 self.assertEqual(22222, pending_jobs[1].bug_id) 206 self.assertEqual(33333, pending_jobs[2].bug_id) 208 self.assertEqual(44444, pending_jobs[3].bug_id) 220 bug_id=12345, status='started', bot='win_perf', 228 self.assertEqual(12345, pending_jobs[0].bug_id) 339 sheriff=None, bug_id=12345).put() [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 31 self.bug_id = bug_id 61 'bug_id': self.bug_id,
|
D | group_report_test.py | 31 self, revision_ranges, test_key, sheriff_key, bug_id=None): argument 37 test=test_key, bug_id=bug_id, sheriff=sheriff_key, 131 test_keys[0], sheriff_key, bug_id=123) 143 alert.bug_id = 123 157 self._AddAnomalyEntities([(150, 250)], test_key, sheriff_key, bug_id=123)
|
D | issue_tracker_service_test.py | 76 bug_id = service.NewBug('Bug title', 'body', owner='someone@chromium.org') 78 self.assertEqual(333, bug_id) 83 bug_id = service.NewBug('Bug title', 'body', owner='someone@chromium.org') 85 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 | 24 bug_id = ndb.IntegerProperty(indexed=True) variable in Alert 79 if self.bug_id != original_alert.bug_id: 86 if self.bug_id > 0 and group.bug_id != self.bug_id: 87 group.bug_id = self.bug_id 91 elif self.bug_id < 0 and self.bug_id is not None: 97 elif self.bug_id is None and len(grouped_alerts) == 1: 98 group.bug_id = None
|
D | try_job.py | 27 bug_id = ndb.IntegerProperty() variable in TryJob 75 if self.bug_id: 76 bug_data.SetBisectStatus(self.bug_id, 'started') 81 if self.bug_id: 82 bug_data.SetBisectStatus(self.bug_id, 'failed') 89 if self.bug_id: 90 bug_data.SetBisectStatus(self.bug_id, 'failed') 96 if self.bug_id: 97 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)
|