Thanks to visit codestin.com
Credit goes to webrtc.googlesource.com

blob: aa4edbefb01bdd532ed3280a216c3587fffe5592 [file] [log] [blame]
Christoffer Jansson4e8a7732022-02-08 08:01:121#!/usr/bin/env vpython3
2
Henrik Kjellander27576e02015-10-15 12:24:093# 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 12:24:0910"""
Mirko Bonadeice69c732024-09-17 07:49:0111This file emits the list of reasons why a particular build needs to
12be clobbered (or a list of 'landmines').
Henrik Kjellander27576e02015-10-15 12:24:0913"""
14
15import os
16import sys
17
kjellanderc88b5d52017-04-05 13:42:4318SCRIPT_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 12:24:0921import landmine_utils
22
Michael Achenbach500874e2018-02-16 22:43:1423host_os = landmine_utils.host_os # pylint: disable=invalid-name
Henrik Kjellander27576e02015-10-15 12:24:0924
25
Mirko Bonadeice69c732024-09-17 07:49:0126# pylint: disable=line-too-long
kjellanderc88b5d52017-04-05 13:42:4327def print_landmines(): # pylint: disable=invalid-name
Mirko Bonadeice69c732024-09-17 07:49:0128 """
Henrik Kjellander27576e02015-10-15 12:24:0929 ALL LANDMINES ARE EMITTED FROM HERE.
30 """
Mirko Bonadeice69c732024-09-17 07:49:0131 # 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
33 # bots 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(
40 '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)')
44 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/')
48 print('Clobber win x86 bots (issues with isolated files).')
49 print('Clobber because of libc++ issue')
50 print('Clobber because of libc++ issue - take 2')
51 print('Clobber because of libc++ issue - take 3')
52 print('Clobber because of libc++ issue - take 4 (crbug.com/1337238)')
53 print('Clobber because of libc++ issue - take 5 (crbug.com/1337238)')
54 print('Clobber because of libc++ issue - take 6 (crbug.com/1337238)')
55 print('Clobber because b/367066321')
56 if host_os() == 'mac':
57 print('Clobber due to iOS compile errors (crbug.com/694721)')
58 print('Clobber to unblock https://codereview.webrtc.org/2709573003')
59 print('Clobber to fix https://codereview.webrtc.org/2709573003 after '
60 'landing')
61 print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
62 'landing (changing rtc_executable -> rtc_test on iOS)')
63 print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
64 'landing (changing rtc_executable -> rtc_test on iOS)')
65 print('Another landmine for low_bandwidth_audio_test (webrtc:7430)')
66 print('Clobber to change neteq_rtpplay type to executable')
67 print('Clobber to remove .xctest files.')
68 print('Clobber to remove .xctest files (take 2).')
69 print('Switching rtc_executable to rtc_test')
Christoffer Dewerinc90a23b2025-02-14 09:19:3370 print('Lets clobber iOS due to signing issue b/396118151')
Jeremy Leconte3726ee02025-02-18 19:16:0771 print('Lets clobber iOS due to signing issue b/396118151 (2nd try)')
Jeremy Leconte8d5b3442024-12-09 13:23:0472 if host_os() == 'android':
73 print('Clobber due to Android "compile confirm no-op" errors.')
Henrik Kjellander27576e02015-10-15 12:24:0974
75
76def main():
Mirko Bonadeice69c732024-09-17 07:49:0177 print_landmines()
78 return 0
Henrik Kjellander27576e02015-10-15 12:24:0979
80
81if __name__ == '__main__':
Mirko Bonadeice69c732024-09-17 07:49:0182 sys.exit(main())