blob: 1f2aaeef9954c093743f3ef7fa0321a5f9f819a1 [file] [log] [blame]
Christoffer Jansson4e8a7732022-02-08 09:01:12 +01001#!/usr/bin/env vpython3
2
Henrik Kjellander27576e02015-10-15 14:24:09 +02003# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
4#
5# Use of this source code is governed by a BSD-style license
6# that can be found in the LICENSE file in the root of the source
7# tree. An additional intellectual property rights grant can be found
8# in the file PATENTS. All contributing project authors may
9# be found in the AUTHORS file in the root of the source tree.
Henrik Kjellander27576e02015-10-15 14:24:09 +020010"""
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
kjellanderc88b5d52017-04-05 06:42:43 -070018SCRIPT_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'))
Henrik Kjellander27576e02015-10-15 14:24:09 +020021import landmine_utils
22
Michael Achenbach500874e2018-02-16 14:43:14 -080023host_os = landmine_utils.host_os # pylint: disable=invalid-name
Henrik Kjellander27576e02015-10-15 14:24:09 +020024
25
kjellanderc88b5d52017-04-05 06:42:43 -070026def print_landmines(): # pylint: disable=invalid-name
Christoffer Jansson4e8a7732022-02-08 09:01:12 +010027 """
Henrik Kjellander27576e02015-10-15 14:24:09 +020028 ALL LANDMINES ARE EMITTED FROM HERE.
29 """
Christoffer Jansson4e8a7732022-02-08 09:01:12 +010030 # DO NOT add landmines as part of a regular CL. Landmines are a last-effort
31 # bandaid fix if a CL that got landed has a build dependency bug and all
32 # bots need to be cleaned up. If you're writing a new CL that causes build
33 # dependency problems, fix the dependency problems instead of adding a
34 # landmine.
35 # See the Chromium version in src/build/get_landmines.py for usage examples.
36 print('Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)')
37 if host_os() == 'win':
38 print('Clobber to resolve some issues with corrupt .pdb files on bots.')
39 print('Clobber due to corrupt .pdb files (after #14623)')
40 print('Clobber due to Win 64-bit Debug linking error (crbug.com/668961)')
41 print('Clobber due to Win Clang Debug linking errors in '
42 'https://codereview.webrtc.org/2786603002')
43 print('Clobber due to Win Debug linking errors in '
44 'https://codereview.webrtc.org/2832063003/')
45 print('Clobber win x86 bots (issues with isolated files).')
Artem Titov9f242252022-06-17 12:26:46 +020046 print('Clobber because of libc++ issue')
Mirko Bonadei5ed127e2022-07-19 13:01:54 +020047 print('Clobber because of libc++ issue - take 2')
Mirko Bonadei2a0e9462022-09-07 09:04:32 +000048 print('Clobber because of libc++ issue - take 3')
Mirko Bonadei09472fd2022-09-12 09:38:06 +000049 print('Clobber because of libc++ issue - take 4 (crbug.com/1337238)')
Mirko Bonadei39f216b2022-09-13 13:23:27 +000050 print('Clobber because of libc++ issue - take 5 (crbug.com/1337238)')
Christoffer Jansson4e8a7732022-02-08 09:01:12 +010051 if host_os() == 'mac':
52 print('Clobber due to iOS compile errors (crbug.com/694721)')
53 print('Clobber to unblock https://codereview.webrtc.org/2709573003')
54 print('Clobber to fix https://codereview.webrtc.org/2709573003 after '
55 'landing')
56 print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
57 'landing (changing rtc_executable -> rtc_test on iOS)')
58 print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
59 'landing (changing rtc_executable -> rtc_test on iOS)')
60 print('Another landmine for low_bandwidth_audio_test (webrtc:7430)')
61 print('Clobber to change neteq_rtpplay type to executable')
62 print('Clobber to remove .xctest files.')
63 print('Clobber to remove .xctest files (take 2).')
64 print('Switching rtc_executable to rtc_test')
Henrik Kjellander27576e02015-10-15 14:24:09 +020065
66
67def main():
Christoffer Jansson4e8a7732022-02-08 09:01:12 +010068 print_landmines()
69 return 0
Henrik Kjellander27576e02015-10-15 14:24:09 +020070
71
72if __name__ == '__main__':
Christoffer Jansson4e8a7732022-02-08 09:01:12 +010073 sys.exit(main())