blob: 91980844f41ff93fea186c6c3a69bad2b27ea783 [file] [log] [blame]
Henrik Kjellander27576e02015-10-15 12:24:091#!/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
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
23
Michael Achenbach500874e2018-02-16 22:43:1424host_os = landmine_utils.host_os # pylint: disable=invalid-name
Henrik Kjellander27576e02015-10-15 12:24:0925
26
kjellanderc88b5d52017-04-05 13:42:4327def print_landmines(): # pylint: disable=invalid-name
Henrik Kjellander27576e02015-10-15 12:24:0928 """
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.
Henrik Kjellander5ddee022015-10-27 10:59:5237 print 'Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)'
Michael Achenbach500874e2018-02-16 22:43:1438 if host_os() == 'win':
kjellander0c9e5672016-09-28 07:05:2639 print 'Clobber to resolve some issues with corrupt .pdb files on bots.'
Henrik Kjellanderdd7a1cf2016-10-13 04:07:0240 print 'Clobber due to corrupt .pdb files (after #14623)'
Henrik Kjellander455b5122016-11-29 10:14:3541 print 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)'
Henrik Kjellander43d57de2017-03-29 10:49:4642 print ('Clobber due to Win Clang Debug linking errors in '
43 'https://codereview.webrtc.org/2786603002')
mbonadei7a7b3362017-04-24 13:31:3344 print ('Clobber due to Win Debug linking errors in '
45 'https://codereview.webrtc.org/2832063003/')
Michael Achenbach500874e2018-02-16 22:43:1446 if host_os() == 'mac':
Henrik Kjellander47f079902017-02-22 09:17:5847 print 'Clobber due to iOS compile errors (crbug.com/694721)'
Henrik Kjellander50956f32017-02-24 08:18:5548 print 'Clobber to unblock https://codereview.webrtc.org/2709573003'
kjellanderdd460e22017-04-12 19:06:1349 print ('Clobber to fix https://codereview.webrtc.org/2709573003 after '
50 'landing')
oprypin3c5ec8d2017-03-29 11:09:4451 print ('Clobber to fix https://codereview.webrtc.org/2767383005 before'
52 'landing (changing rtc_executable -> rtc_test on iOS)')
oprypin30cbd0b2017-03-30 10:51:1053 print ('Clobber to fix https://codereview.webrtc.org/2767383005 before'
54 'landing (changing rtc_executable -> rtc_test on iOS)')
Henrik Kjellander65a83082017-03-30 19:32:5155 print 'Another landmine for low_bandwidth_audio_test (webrtc:7430)'
Henrik Kjellander27576e02015-10-15 12:24:0956
57
58def main():
59 print_landmines()
60 return 0
61
62
63if __name__ == '__main__':
64 sys.exit(main())