PRESUBMIT.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Copyright 2014 The LibYuv Project Authors. All rights reserved.
  2. #
  3. # Use of this source code is governed by a BSD-style license
  4. # that can be found in the LICENSE file in the root of the source
  5. # tree. An additional intellectual property rights grant can be found
  6. # in the file PATENTS. All contributing project authors may
  7. # be found in the AUTHORS file in the root of the source tree.
  8. import re
  9. import sys
  10. def GetDefaultTryConfigs(bots=None):
  11. """Returns a list of ('bot', set(['tests']), optionally filtered by [bots].
  12. For WebRTC purposes, we always return an empty list of tests, since we want
  13. to run all tests by default on all our trybots.
  14. """
  15. return { 'tryserver.libyuv': dict((bot, []) for bot in bots)}
  16. # pylint: disable=W0613
  17. def GetPreferredTryMasters(project, change):
  18. files = change.LocalPaths()
  19. bots = [
  20. 'win',
  21. 'win_rel',
  22. 'win_x64_rel',
  23. 'win_x64_gn',
  24. 'win_x64_gn_rel',
  25. 'win_clang',
  26. 'win_clang_rel',
  27. 'win_x64_clang_rel',
  28. 'mac',
  29. 'mac_rel',
  30. 'mac_gn',
  31. 'mac_gn_rel',
  32. 'mac_asan',
  33. 'ios',
  34. 'ios_rel',
  35. 'ios_arm64',
  36. 'ios_arm64_rel',
  37. 'linux',
  38. 'linux_rel',
  39. 'linux_gn',
  40. 'linux_gn_rel',
  41. 'linux_memcheck',
  42. 'linux_tsan2',
  43. 'linux_asan',
  44. 'linux_msan',
  45. 'linux_ubsan',
  46. 'linux_ubsan_vptr',
  47. 'android',
  48. 'android_rel',
  49. 'android_clang',
  50. 'android_arm64',
  51. 'android_mips',
  52. 'android_x64',
  53. 'android_x86',
  54. 'android_gn',
  55. 'android_gn_rel',
  56. ]
  57. if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files):
  58. return {}
  59. return GetDefaultTryConfigs(bots)