blob: e3e0ce21649e7d739909b60936930ea788a017ed [file] [log] [blame]
[email protected]ec069f72013-08-21 02:44:581#!/usr/bin/env python
2# Copyright 2013 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""
7This file emits the list of reasons why a particular build needs to be clobbered
8(or a list of 'landmines').
9"""
10
[email protected]ec069f72013-08-21 02:44:5811import sys
12
13import landmine_utils
14
15
Michael Achenbachd76f98f2018-02-16 22:40:0116host_os = landmine_utils.host_os
[email protected]ec069f72013-08-21 02:44:5817
18
[email protected]9372bec2014-08-14 14:03:3019def print_landmines():
[email protected]ec069f72013-08-21 02:44:5820 """
21 ALL LANDMINES ARE EMITTED FROM HERE.
[email protected]ec069f72013-08-21 02:44:5822 """
thakis37066a52015-03-23 18:57:5523 # DO NOT add landmines as part of a regular CL. Landmines are a last-effort
24 # bandaid fix if a CL that got landed has a build dependency bug and all bots
25 # need to be cleaned up. If you're writing a new CL that causes build
26 # dependency problems, fix the dependency problems instead of adding a
27 # landmine.
brucedawsona1ed2e02017-06-30 01:25:1128 #
29 # Before adding or changing a landmine consider the consequences of doing so.
30 # Doing so will wipe out every output directory on every Chrome developer's
31 # machine. This can be particularly problematic on Windows where the directory
32 # deletion may well fail (locked files, command prompt in the directory,
33 # etc.), and generated .sln and .vcxproj files will be deleted.
34 #
35 # This output directory deletion will be repeated when going back and forth
36 # across the change that added the landmine, adding to the cost. There are
37 # usually less troublesome alternatives.
thakis37066a52015-03-23 18:57:5538
Michael Achenbachd76f98f2018-02-16 22:40:0139 if host_os() == 'win':
[email protected]ec069f72013-08-21 02:44:5840 print 'Compile on cc_unittests fails due to symbols removed in r185063.'
Michael Achenbachd76f98f2018-02-16 22:40:0141 if host_os() == 'linux':
[email protected]ec069f72013-08-21 02:44:5842 print 'Builders switching from make to ninja will clobber on this.'
Michael Achenbachd76f98f2018-02-16 22:40:0143 if host_os() == 'mac':
[email protected]ec069f72013-08-21 02:44:5844 print 'Switching from bundle to unbundled dylib (issue 14743002).'
Michael Achenbachd76f98f2018-02-16 22:40:0145 if host_os() in ('win', 'mac'):
[email protected]03d73c0d2013-12-16 21:48:0846 print ('Improper dependency for create_nmf.py broke in r240802, '
47 'fixed in r240860.')
Michael Achenbachd76f98f2018-02-16 22:40:0148 if host_os() == 'win':
scottmgb77dd492016-12-08 05:58:0749 print 'Switch to VS2015 Update 3, 14393 SDK'
[email protected]ec069f72013-08-21 02:44:5850 print 'Need to clobber everything due to an IDL change in r154579 (blink)'
[email protected]267e9a142014-06-06 11:25:1351 print 'Need to clobber everything due to gen file moves in r175513 (Blink)'
Michael Achenbachd76f98f2018-02-16 22:40:0152 print 'Clobber to get rid of obselete test plugin after r248358'
53 print 'Clobber to rebuild GN files for V8'
blundell70fb547672015-01-19 17:18:3354 print 'Clobber to get rid of stale generated mojom.h files'
[email protected]9b385892014-07-02 23:11:1155 print 'Need to clobber everything due to build_nexe change in nacl r13424'
[email protected]74e19312014-08-01 22:08:4956 print '[chromium-dev] PSA: clobber build needed for IDR_INSPECTOR_* compil...'
[email protected]c11618062014-08-05 23:21:5357 print 'blink_resources.grd changed: crbug.com/400860'
Nico Weber9f49a7a2014-09-02 23:42:4258 print 'ninja dependency cycle: crbug.com/408192'
petrcermak7652da6d2014-11-06 02:17:5759 print 'Clobber to fix missing NaCl gyp dependencies (crbug.com/427427).'
dchengf8836042014-11-26 05:04:5560 print 'Another clobber for missing NaCl gyp deps (crbug.com/427427).'
Daniel Chengd1a85ae2014-12-23 22:54:1061 print 'Clobber to fix GN not picking up increased ID range (crbug.com/444902)'
ncbray4453c50a2015-02-18 20:10:5562 print 'Remove NaCl toolchains from the output dir (crbug.com/456902)'
Michael Achenbachd76f98f2018-02-16 22:40:0163 if host_os() == 'win':
luqui7434b002015-07-14 20:27:5564 print 'Clobber to delete stale generated files (crbug.com/510086)'
Michael Achenbachd76f98f2018-02-16 22:40:0165 if host_os() == 'mac':
luquic3c801e2015-09-02 00:19:5466 print 'Clobber to get rid of evil libsqlite3.dylib (crbug.com/526208)'
Michael Achenbachd76f98f2018-02-16 22:40:0167 if host_os() == 'mac':
bpastene9b4f0622016-06-16 19:26:0868 print 'Clobber to remove libsystem.dylib. See crbug.com/620075'
Michael Achenbachd76f98f2018-02-16 22:40:0169 if host_os() == 'mac':
Philip Jägenstedt117c52b02017-01-11 09:25:4470 print 'Clobber to get past mojo gen build error (crbug.com/679607)'
Michael Achenbachd76f98f2018-02-16 22:40:0171 if host_os() == 'win':
brettwf78cc272017-03-24 16:36:4272 print 'Clobber Windows to fix strange PCH-not-rebuilt errors.'
Andrii Shyshkalova84d39a2017-06-23 09:58:4873 print 'CLobber all to fix GN breakage (crbug.com/736215)'
[email protected]ec069f72013-08-21 02:44:5874
75def main():
[email protected]9372bec2014-08-14 14:03:3076 print_landmines()
[email protected]ec069f72013-08-21 02:44:5877 return 0
78
79
80if __name__ == '__main__':
81 sys.exit(main())