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 recipe_engine.types import freeze | 11 from infra.libs.infra_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 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 def report_culprits(self, culprit_range): | 1265 def report_culprits(self, culprit_range): |
1266 assert culprit_range | 1266 assert culprit_range |
1267 if len(culprit_range) > 1: | 1267 if len(culprit_range) > 1: |
1268 text = 'Suspecting multiple commits' | 1268 text = 'Suspecting multiple commits' |
1269 else: | 1269 else: |
1270 text = 'Suspecting %s' % culprit_range[0][:8] | 1270 text = 'Suspecting %s' % culprit_range[0][:8] |
1271 | 1271 |
1272 step_result = self.m.python.inline(text, '# Empty program') | 1272 step_result = self.m.python.inline(text, '# Empty program') |
1273 for culprit in culprit_range: | 1273 for culprit in culprit_range: |
1274 step_result.presentation.links[culprit[:8]] = COMMIT_TEMPLATE % culprit | 1274 step_result.presentation.links[culprit[:8]] = COMMIT_TEMPLATE % culprit |
OLD | NEW |