| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import collections | 5 import collections |
| 6 import datetime | 6 import datetime |
| 7 import math | 7 import math |
| 8 import re | 8 import re |
| 9 import urllib | 9 import urllib |
| 10 | 10 |
| 11 from infra.libs.infra_types import freeze | 11 from recipe_engine.types import freeze |
| 12 from recipe_engine import recipe_api | 12 from recipe_engine import recipe_api |
| 13 from . import bisection | 13 from . import bisection |
| 14 from . import builders | 14 from . import builders |
| 15 | 15 |
| 16 | 16 |
| 17 COMMIT_TEMPLATE = 'https://chromium.googlesource.com/v8/v8/+/%s' | 17 COMMIT_TEMPLATE = 'https://chromium.googlesource.com/v8/v8/+/%s' |
| 18 | 18 |
| 19 # Regular expressions for v8 branch names. | 19 # Regular expressions for v8 branch names. |
| 20 RELEASE_BRANCH_RE = re.compile(r'^\d+\.\d+$') | 20 RELEASE_BRANCH_RE = re.compile(r'^\d+\.\d+$') |
| 21 ROLL_BRANCH_RE = re.compile(r'^\d+\.\d+\.\d+$') | 21 ROLL_BRANCH_RE = re.compile(r'^\d+\.\d+\.\d+$') |
| (...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 def report_culprits(self, culprit_range): | 1258 def report_culprits(self, culprit_range): |
| 1259 assert culprit_range | 1259 assert culprit_range |
| 1260 if len(culprit_range) > 1: | 1260 if len(culprit_range) > 1: |
| 1261 text = 'Suspecting multiple commits' | 1261 text = 'Suspecting multiple commits' |
| 1262 else: | 1262 else: |
| 1263 text = 'Suspecting %s' % culprit_range[0][:8] | 1263 text = 'Suspecting %s' % culprit_range[0][:8] |
| 1264 | 1264 |
| 1265 step_result = self.m.python.inline(text, '# Empty program') | 1265 step_result = self.m.python.inline(text, '# Empty program') |
| 1266 for culprit in culprit_range: | 1266 for culprit in culprit_range: |
| 1267 step_result.presentation.links[culprit[:8]] = COMMIT_TEMPLATE % culprit | 1267 step_result.presentation.links[culprit[:8]] = COMMIT_TEMPLATE % culprit |
| OLD | NEW |