blob: 764f053f2ab40246c746a1261b2d03c7bd77bfde [file] [log] [blame]
Henrik Kjellander27576e02015-10-15 14:24:09 +02001#!/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.
Henrik Kjellander27576e02015-10-15 14:24:09 +02009"""
10This file emits the list of reasons why a particular build needs to be clobbered
11(or a list of 'landmines').
12"""
13
14import os
15import sys
16
kjellanderc88b5d52017-04-05 06:42:43 -070017SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
18CHECKOUT_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir))
19sys.path.insert(0, os.path.join(CHECKOUT_ROOT, 'build'))
Henrik Kjellander27576e02015-10-15 14:24:09 +020020import landmine_utils
21
Michael Achenbach500874e2018-02-16 14:43:14 -080022host_os = landmine_utils.host_os # pylint: disable=invalid-name
Henrik Kjellander27576e02015-10-15 14:24:09 +020023
24
kjellanderc88b5d52017-04-05 06:42:43 -070025def print_landmines(): # pylint: disable=invalid-name
Mirko Bonadei8cc66952020-10-30 10:13:45 +010026 """
Henrik Kjellander27576e02015-10-15 14:24:09 +020027 ALL LANDMINES ARE EMITTED FROM HERE.
28 """
Mirko Bonadei8cc66952020-10-30 10:13:45 +010029 # DO NOT add landmines as part of a regular CL. Landmines are a last-effort
30 # bandaid fix if a CL that got landed has a build dependency bug and all bots
31 # need to be cleaned up. If you're writing a new CL that causes build
32 # dependency problems, fix the dependency problems instead of adding a
33 # landmine.
34 # See the Chromium version in src/build/get_landmines.py for usage examples.
35 print 'Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)'
36 if host_os() == 'win':
37 print 'Clobber to resolve some issues with corrupt .pdb files on bots.'
38 print 'Clobber due to corrupt .pdb files (after #14623)'
39 print 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)'
40 print('Clobber due to Win Clang Debug linking errors in '
41 'https://codereview.webrtc.org/2786603002')
42 print('Clobber due to Win Debug linking errors in '
43 'https://codereview.webrtc.org/2832063003/')
44 print 'Clobber win x86 bots (issues with isolated files).'
45 if host_os() == 'mac':
46 print 'Clobber due to iOS compile errors (crbug.com/694721)'
47 print 'Clobber to unblock https://codereview.webrtc.org/2709573003'
48 print('Clobber to fix https://codereview.webrtc.org/2709573003 after '
49 'landing')
50 print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
51 'landing (changing rtc_executable -> rtc_test on iOS)')
52 print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
53 'landing (changing rtc_executable -> rtc_test on iOS)')
54 print 'Another landmine for low_bandwidth_audio_test (webrtc:7430)'
55 print 'Clobber to change neteq_rtpplay type to executable'
56 print 'Clobber to remove .xctest files.'
57 print 'Clobber to remove .xctest files (take 2).'
Andrey Logvin1a5f36b2021-04-28 13:52:38 +000058 print 'Switching rtc_executable to rtc_test'
Henrik Kjellander27576e02015-10-15 14:24:09 +020059
60
61def main():
Mirko Bonadei8cc66952020-10-30 10:13:45 +010062 print_landmines()
63 return 0
Henrik Kjellander27576e02015-10-15 14:24:09 +020064
65
66if __name__ == '__main__':
Mirko Bonadei8cc66952020-10-30 10:13:45 +010067 sys.exit(main())