blob: b80a360f7cafdc03b899b695086f70318b58e661 [file] [log] [blame]
Takuto Ikuta9345bee2021-11-26 21:06:40 +09001#!/usr/bin/env python3
Henrik Kjellander27576e02015-10-15 14:24:09 +02002# 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
Takuto Ikuta9345bee2021-11-26 21:06:40 +090014from __future__ import absolute_import
15from __future__ import print_function
16
Henrik Kjellander27576e02015-10-15 14:24:09 +020017import os
18import sys
19
kjellanderc88b5d52017-04-05 06:42:43 -070020SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
21CHECKOUT_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir))
22sys.path.insert(0, os.path.join(CHECKOUT_ROOT, 'build'))
Henrik Kjellander27576e02015-10-15 14:24:09 +020023import landmine_utils
24
Michael Achenbach500874e2018-02-16 14:43:14 -080025host_os = landmine_utils.host_os # pylint: disable=invalid-name
Henrik Kjellander27576e02015-10-15 14:24:09 +020026
27
kjellanderc88b5d52017-04-05 06:42:43 -070028def print_landmines(): # pylint: disable=invalid-name
Mirko Bonadei8cc66952020-10-30 10:13:45 +010029 """
Henrik Kjellander27576e02015-10-15 14:24:09 +020030 ALL LANDMINES ARE EMITTED FROM HERE.
31 """
Mirko Bonadei8cc66952020-10-30 10:13:45 +010032 # DO NOT add landmines as part of a regular CL. Landmines are a last-effort
Takuto Ikuta9345bee2021-11-26 21:06:40 +090033 # bandaid fix if a CL that got landed has a build dependency bug and all
34 # bots need to be cleaned up. If you're writing a new CL that causes build
Mirko Bonadei8cc66952020-10-30 10:13:45 +010035 # dependency problems, fix the dependency problems instead of adding a
36 # landmine.
37 # See the Chromium version in src/build/get_landmines.py for usage examples.
Takuto Ikuta9345bee2021-11-26 21:06:40 +090038 print('Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)')
Mirko Bonadei8cc66952020-10-30 10:13:45 +010039 if host_os() == 'win':
Takuto Ikuta9345bee2021-11-26 21:06:40 +090040 print('Clobber to resolve some issues with corrupt .pdb files on bots.')
41 print('Clobber due to corrupt .pdb files (after #14623)')
42 print(
43 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)')
Mirko Bonadei8cc66952020-10-30 10:13:45 +010044 print('Clobber due to Win Clang Debug linking errors in '
45 'https://codereview.webrtc.org/2786603002')
46 print('Clobber due to Win Debug linking errors in '
47 'https://codereview.webrtc.org/2832063003/')
Takuto Ikuta9345bee2021-11-26 21:06:40 +090048 print('Clobber win x86 bots (issues with isolated files).')
Mirko Bonadei8cc66952020-10-30 10:13:45 +010049 if host_os() == 'mac':
Takuto Ikuta9345bee2021-11-26 21:06:40 +090050 print('Clobber due to iOS compile errors (crbug.com/694721)')
51 print('Clobber to unblock https://codereview.webrtc.org/2709573003')
Mirko Bonadei8cc66952020-10-30 10:13:45 +010052 print('Clobber to fix https://codereview.webrtc.org/2709573003 after '
53 'landing')
54 print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
55 'landing (changing rtc_executable -> rtc_test on iOS)')
56 print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
57 'landing (changing rtc_executable -> rtc_test on iOS)')
Takuto Ikuta9345bee2021-11-26 21:06:40 +090058 print('Another landmine for low_bandwidth_audio_test (webrtc:7430)')
59 print('Clobber to change neteq_rtpplay type to executable')
60 print('Clobber to remove .xctest files.')
61 print('Clobber to remove .xctest files (take 2).')
62 print('Switching rtc_executable to rtc_test')
Henrik Kjellander27576e02015-10-15 14:24:09 +020063
64
65def main():
Mirko Bonadei8cc66952020-10-30 10:13:45 +010066 print_landmines()
67 return 0
Henrik Kjellander27576e02015-10-15 14:24:09 +020068
69
70if __name__ == '__main__':
Mirko Bonadei8cc66952020-10-30 10:13:45 +010071 sys.exit(main())