OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 """Top-level presubmit script for Blink. | 5 """Top-level presubmit script for Blink. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into gcl. | 8 for more details about the presubmit API built into gcl. |
9 """ | 9 """ |
10 | 10 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 results.extend(_CheckForDangerousTestFunctions(input_api, output_api)) | 329 results.extend(_CheckForDangerousTestFunctions(input_api, output_api)) |
330 results.extend(_CheckForInvalidPreferenceError(input_api, output_api)) | 330 results.extend(_CheckForInvalidPreferenceError(input_api, output_api)) |
331 return results | 331 return results |
332 | 332 |
333 | 333 |
334 def CheckChangeOnCommit(input_api, output_api): | 334 def CheckChangeOnCommit(input_api, output_api): |
335 results = [] | 335 results = [] |
336 results.extend(_CommonChecks(input_api, output_api)) | 336 results.extend(_CommonChecks(input_api, output_api)) |
337 results.extend(input_api.canned_checks.CheckTreeIsOpen( | 337 results.extend(input_api.canned_checks.CheckTreeIsOpen( |
338 input_api, output_api, | 338 input_api, output_api, |
339 json_url='http://blink-status.appspot.com/current?format=json')) | 339 json_url='http://chromium-status.appspot.com/current?format=json')) |
340 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 340 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
341 input_api, output_api)) | 341 input_api, output_api)) |
342 results.extend(_CheckSubversionConfig(input_api, output_api)) | 342 results.extend(_CheckSubversionConfig(input_api, output_api)) |
343 return results | 343 return results |
344 | 344 |
345 | 345 |
346 def GetPreferredTryMasters(project, change): | 346 def GetPreferredTryMasters(project, change): |
347 import json | 347 import json |
348 import os.path | 348 import os.path |
349 import platform | 349 import platform |
(...skipping 11 matching lines...) Expand all Loading... |
361 for master in masters: | 361 for master in masters: |
362 try_config.setdefault(master, {}) | 362 try_config.setdefault(master, {}) |
363 for builder in masters[master]: | 363 for builder in masters[master]: |
364 # Do not trigger presubmit builders, since they're likely to fail | 364 # Do not trigger presubmit builders, since they're likely to fail |
365 # (e.g. OWNERS checks before finished code review), and we're | 365 # (e.g. OWNERS checks before finished code review), and we're |
366 # running local presubmit anyway. | 366 # running local presubmit anyway. |
367 if 'presubmit' not in builder: | 367 if 'presubmit' not in builder: |
368 try_config[master][builder] = ['defaulttests'] | 368 try_config[master][builder] = ['defaulttests'] |
369 | 369 |
370 return try_config | 370 return try_config |
OLD | NEW |