blob: aca1f3d6ed3f3bc3bdd09d7ccdd5b237ba826ad6 [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
kjellander94f4d9e2017-03-09 06:09:33 -080018script_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
kjellander94f4d9e2017-03-09 06:09:33 -080024distributor = landmine_utils.distributor
25gyp_defines = landmine_utils.gyp_defines
26gyp_msvs_version = landmine_utils.gyp_msvs_version
27platform = landmine_utils.platform
Henrik Kjellander27576e02015-10-15 14:24:09 +020028
29
kjellander94f4d9e2017-03-09 06:09:33 -080030def print_landmines():
Henrik Kjellander27576e02015-10-15 14:24:09 +020031 """
32 ALL LANDMINES ARE EMITTED FROM HERE.
33 """
34 # DO NOT add landmines as part of a regular CL. Landmines are a last-effort
35 # bandaid fix if a CL that got landed has a build dependency bug and all bots
36 # need to be cleaned up. If you're writing a new CL that causes build
37 # dependency problems, fix the dependency problems instead of adding a
38 # landmine.
39 # See the Chromium version in src/build/get_landmines.py for usage examples.
Henrik Kjellander5ddee022015-10-27 11:59:52 +010040 print 'Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)'
kjellander08352ab2016-08-31 08:24:03 -070041 if platform() == 'android':
42 print ('Clobber to remove artifacts on Android causing lint errors after '
43 'rolling in https://codereview.webrtc.org/2293863002')
kjellander0c9e5672016-09-28 00:05:26 -070044 print ('Clobber to remove old AppRTCDemo artifacts after renaming to '
45 'AppRTCMobile in https://codereview.webrtc.org/2373443005')
Henrik Kjellander0de11aa2016-12-22 12:40:56 +010046 print ('Clobber to fix Android x86/x64 builds after '
47 'https://codereview.webrtc.org/1414343008/')
kjellander0c9e5672016-09-28 00:05:26 -070048 if platform() == 'win':
49 print 'Clobber to resolve some issues with corrupt .pdb files on bots.'
Henrik Kjellanderdd7a1cf2016-10-12 21:07:02 -070050 print 'Clobber due to corrupt .pdb files (after #14623)'
Henrik Kjellander455b5122016-11-29 11:14:35 +010051 print 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)'
Henrik Kjellander43d57de2017-03-29 12:49:46 +020052 print ('Clobber due to Win Clang Debug linking errors in '
53 'https://codereview.webrtc.org/2786603002')
Henrik Kjellander47f07992017-02-22 10:17:58 +010054 if platform() == 'mac':
55 # platform == 'ios' doesn't work since it assumes GYP_DEFINES is set, which
56 # is no longer the case.
57 print 'Clobber due to iOS compile errors (crbug.com/694721)'
Henrik Kjellander50956f32017-02-24 09:18:55 +010058 print 'Clobber to unblock https://codereview.webrtc.org/2709573003'
kjellander94f4d9e2017-03-09 06:09:33 -080059 print 'Clobber to fix https://codereview.webrtc.org/2709573003 after landing'
Henrik Kjellander27576e02015-10-15 14:24:09 +020060
61
62def main():
63 print_landmines()
64 return 0
65
66
67if __name__ == '__main__':
68 sys.exit(main())