blob: a452835458de2ff73ae201621d863d937cab9b62 [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.
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 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
23
kjellanderc88b5d52017-04-05 06:42:43 -070024platform = landmine_utils.platform # pylint: disable=invalid-name
Henrik Kjellander27576e02015-10-15 14:24:09 +020025
26
kjellanderc88b5d52017-04-05 06:42:43 -070027def print_landmines(): # pylint: disable=invalid-name
Henrik Kjellander27576e02015-10-15 14:24:09 +020028 """
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 11:59:52 +010037 print 'Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)'
kjellander08352ab2016-08-31 08:24:03 -070038 if platform() == 'android':
39 print ('Clobber to remove artifacts on Android causing lint errors after '
40 'rolling in https://codereview.webrtc.org/2293863002')
kjellander0c9e5672016-09-28 00:05:26 -070041 print ('Clobber to remove old AppRTCDemo artifacts after renaming to '
42 'AppRTCMobile in https://codereview.webrtc.org/2373443005')
Henrik Kjellander0de11aa2016-12-22 12:40:56 +010043 print ('Clobber to fix Android x86/x64 builds after '
44 'https://codereview.webrtc.org/1414343008/')
kjellander0c9e5672016-09-28 00:05:26 -070045 if platform() == 'win':
46 print 'Clobber to resolve some issues with corrupt .pdb files on bots.'
Henrik Kjellanderdd7a1cf2016-10-12 21:07:02 -070047 print 'Clobber due to corrupt .pdb files (after #14623)'
Henrik Kjellander455b5122016-11-29 11:14:35 +010048 print 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)'
Henrik Kjellander43d57de2017-03-29 12:49:46 +020049 print ('Clobber due to Win Clang Debug linking errors in '
50 'https://codereview.webrtc.org/2786603002')
mbonadei7a7b3362017-04-24 06:31:33 -070051 print ('Clobber due to Win Debug linking errors in '
52 'https://codereview.webrtc.org/2832063003/')
Henrik Kjellander47f07992017-02-22 10:17:58 +010053 if platform() == 'mac':
54 # platform == 'ios' doesn't work since it assumes GYP_DEFINES is set, which
55 # is no longer the case.
56 print 'Clobber due to iOS compile errors (crbug.com/694721)'
Henrik Kjellander50956f32017-02-24 09:18:55 +010057 print 'Clobber to unblock https://codereview.webrtc.org/2709573003'
kjellanderdd460e22017-04-12 12:06:13 -070058 print ('Clobber to fix https://codereview.webrtc.org/2709573003 after '
59 'landing')
oprypin3c5ec8d2017-03-29 04:09:44 -070060 print ('Clobber to fix https://codereview.webrtc.org/2767383005 before'
61 'landing (changing rtc_executable -> rtc_test on iOS)')
oprypin30cbd0b2017-03-30 03:51:10 -070062 print ('Clobber to fix https://codereview.webrtc.org/2767383005 before'
63 'landing (changing rtc_executable -> rtc_test on iOS)')
Henrik Kjellander65a83082017-03-30 21:32:51 +020064 print 'Another landmine for low_bandwidth_audio_test (webrtc:7430)'
Henrik Kjellander27576e02015-10-15 14:24:09 +020065
66
67def main():
68 print_landmines()
69 return 0
70
71
72if __name__ == '__main__':
73 sys.exit(main())