• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3#
4# Use of this source code is governed by a BSD-style license
5# that can be found in the LICENSE file in the root of the source
6# tree. An additional intellectual property rights grant can be found
7# in the file PATENTS.  All contributing project authors may
8# be found in the AUTHORS file in the root of the source tree.
9
10"""
11This file emits the list of reasons why a particular build needs to be clobbered
12(or a list of 'landmines').
13"""
14
15import os
16import sys
17
18SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
19CHECKOUT_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir))
20sys.path.insert(0, os.path.join(CHECKOUT_ROOT, 'build'))
21import landmine_utils
22
23
24host_os = landmine_utils.host_os  # pylint: disable=invalid-name
25
26
27def print_landmines():  # pylint: disable=invalid-name
28  """
29  ALL LANDMINES ARE EMITTED FROM HERE.
30  """
31  # DO NOT add landmines as part of a regular CL. Landmines are a last-effort
32  # bandaid fix if a CL that got landed has a build dependency bug and all bots
33  # need to be cleaned up. If you're writing a new CL that causes build
34  # dependency problems, fix the dependency problems instead of adding a
35  # landmine.
36  # See the Chromium version in src/build/get_landmines.py for usage examples.
37  print 'Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)'
38  if host_os() == 'win':
39    print 'Clobber to resolve some issues with corrupt .pdb files on bots.'
40    print 'Clobber due to corrupt .pdb files (after #14623)'
41    print 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)'
42    print ('Clobber due to Win Clang Debug linking errors in '
43           'https://codereview.webrtc.org/2786603002')
44    print ('Clobber due to Win Debug linking errors in '
45           'https://codereview.webrtc.org/2832063003/')
46    print 'Clobber win x86 bots (issues with isolated files).'
47  if host_os() == 'mac':
48    print 'Clobber due to iOS compile errors (crbug.com/694721)'
49    print 'Clobber to unblock https://codereview.webrtc.org/2709573003'
50    print ('Clobber to fix https://codereview.webrtc.org/2709573003 after '
51           'landing')
52    print ('Clobber to fix https://codereview.webrtc.org/2767383005 before'
53           'landing (changing rtc_executable -> rtc_test on iOS)')
54    print ('Clobber to fix https://codereview.webrtc.org/2767383005 before'
55           'landing (changing rtc_executable -> rtc_test on iOS)')
56    print 'Another landmine for low_bandwidth_audio_test (webrtc:7430)'
57    print 'Clobber to change neteq_rtpplay type to executable'
58
59
60def main():
61  print_landmines()
62  return 0
63
64
65if __name__ == '__main__':
66  sys.exit(main())
67