2013-08-21 06:44:58 +04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# Copyright 2013 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
"""
|
|
|
|
This file emits the list of reasons why a particular build needs to be clobbered
|
|
|
|
(or a list of 'landmines').
|
|
|
|
"""
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
import landmine_utils
|
|
|
|
|
|
|
|
|
|
|
|
distributor = landmine_utils.distributor
|
|
|
|
gyp_defines = landmine_utils.gyp_defines
|
|
|
|
gyp_msvs_version = landmine_utils.gyp_msvs_version
|
|
|
|
platform = landmine_utils.platform
|
|
|
|
|
|
|
|
|
2014-08-14 18:03:30 +04:00
|
|
|
def print_landmines():
|
2013-08-21 06:44:58 +04:00
|
|
|
"""
|
|
|
|
ALL LANDMINES ARE EMITTED FROM HERE.
|
|
|
|
"""
|
2015-03-23 21:57:55 +03:00
|
|
|
# DO NOT add landmines as part of a regular CL. Landmines are a last-effort
|
|
|
|
# bandaid fix if a CL that got landed has a build dependency bug and all bots
|
|
|
|
# need to be cleaned up. If you're writing a new CL that causes build
|
|
|
|
# dependency problems, fix the dependency problems instead of adding a
|
|
|
|
# landmine.
|
2017-06-30 04:25:11 +03:00
|
|
|
#
|
|
|
|
# Before adding or changing a landmine consider the consequences of doing so.
|
|
|
|
# Doing so will wipe out every output directory on every Chrome developer's
|
|
|
|
# machine. This can be particularly problematic on Windows where the directory
|
|
|
|
# deletion may well fail (locked files, command prompt in the directory,
|
|
|
|
# etc.), and generated .sln and .vcxproj files will be deleted.
|
|
|
|
#
|
|
|
|
# This output directory deletion will be repeated when going back and forth
|
|
|
|
# across the change that added the landmine, adding to the cost. There are
|
|
|
|
# usually less troublesome alternatives.
|
2015-03-23 21:57:55 +03:00
|
|
|
|
2016-07-30 03:35:24 +03:00
|
|
|
if distributor() == 'goma' and platform() == 'win32':
|
2013-08-21 06:44:58 +04:00
|
|
|
print 'Need to clobber winja goma due to backend cwd cache fix.'
|
|
|
|
if platform() == 'android':
|
2015-01-15 10:09:50 +03:00
|
|
|
print 'Clobber: to handle new way of suppressing findbugs failures.'
|
2015-02-13 02:36:28 +03:00
|
|
|
print 'Clobber to fix gyp not rename package name (crbug.com/457038)'
|
2016-09-27 04:52:41 +03:00
|
|
|
print 'Clobber to recalculate reversed dependency (crbug.com/639042)'
|
2016-07-30 03:35:24 +03:00
|
|
|
if platform() == 'win':
|
2013-08-21 06:44:58 +04:00
|
|
|
print 'Compile on cc_unittests fails due to symbols removed in r185063.'
|
2016-07-30 03:35:24 +03:00
|
|
|
if platform() == 'linux':
|
2013-08-21 06:44:58 +04:00
|
|
|
print 'Builders switching from make to ninja will clobber on this.'
|
|
|
|
if platform() == 'mac':
|
|
|
|
print 'Switching from bundle to unbundled dylib (issue 14743002).'
|
2013-12-17 01:48:08 +04:00
|
|
|
if platform() in ('win', 'mac'):
|
|
|
|
print ('Improper dependency for create_nmf.py broke in r240802, '
|
|
|
|
'fixed in r240860.')
|
2017-03-09 21:49:37 +03:00
|
|
|
if platform() == 'win':
|
2016-12-08 08:58:07 +03:00
|
|
|
print 'Switch to VS2015 Update 3, 14393 SDK'
|
2013-08-21 06:44:58 +04:00
|
|
|
print 'Need to clobber everything due to an IDL change in r154579 (blink)'
|
2014-06-06 15:25:13 +04:00
|
|
|
print 'Need to clobber everything due to gen file moves in r175513 (Blink)'
|
2014-02-13 19:53:08 +04:00
|
|
|
if (platform() != 'ios'):
|
|
|
|
print 'Clobber to get rid of obselete test plugin after r248358'
|
2014-06-04 18:26:03 +04:00
|
|
|
print 'Clobber to rebuild GN files for V8'
|
2015-01-19 20:18:33 +03:00
|
|
|
print 'Clobber to get rid of stale generated mojom.h files'
|
2014-07-03 03:11:11 +04:00
|
|
|
print 'Need to clobber everything due to build_nexe change in nacl r13424'
|
2014-08-02 02:08:49 +04:00
|
|
|
print '[chromium-dev] PSA: clobber build needed for IDR_INSPECTOR_* compil...'
|
2014-08-06 03:21:53 +04:00
|
|
|
print 'blink_resources.grd changed: crbug.com/400860'
|
2014-09-03 03:42:42 +04:00
|
|
|
print 'ninja dependency cycle: crbug.com/408192'
|
2014-11-06 05:17:57 +03:00
|
|
|
print 'Clobber to fix missing NaCl gyp dependencies (crbug.com/427427).'
|
2014-11-26 08:04:55 +03:00
|
|
|
print 'Another clobber for missing NaCl gyp deps (crbug.com/427427).'
|
2014-12-24 01:54:10 +03:00
|
|
|
print 'Clobber to fix GN not picking up increased ID range (crbug.com/444902)'
|
2015-02-18 23:10:55 +03:00
|
|
|
print 'Remove NaCl toolchains from the output dir (crbug.com/456902)'
|
2015-05-10 03:15:21 +03:00
|
|
|
if platform() == 'ios':
|
|
|
|
print 'Clobber iOS to workaround Xcode deps bug (crbug.com/485435)'
|
2015-07-14 23:27:55 +03:00
|
|
|
if platform() == 'win':
|
|
|
|
print 'Clobber to delete stale generated files (crbug.com/510086)'
|
2015-08-25 21:44:01 +03:00
|
|
|
if platform() == 'android' and gyp_defines().get('target_arch') == 'arm64':
|
|
|
|
print 'Clobber to support new location/infra for chrome_sync_shell_apk'
|
2015-09-02 03:19:54 +03:00
|
|
|
if platform() == 'mac':
|
|
|
|
print 'Clobber to get rid of evil libsqlite3.dylib (crbug.com/526208)'
|
2016-06-16 22:26:08 +03:00
|
|
|
if platform() == 'mac':
|
|
|
|
print 'Clobber to remove libsystem.dylib. See crbug.com/620075'
|
2017-01-11 12:25:44 +03:00
|
|
|
if platform() == 'mac':
|
|
|
|
print 'Clobber to get past mojo gen build error (crbug.com/679607)'
|
2017-03-24 19:36:42 +03:00
|
|
|
if platform() == 'win':
|
|
|
|
print 'Clobber Windows to fix strange PCH-not-rebuilt errors.'
|
2017-06-23 12:58:48 +03:00
|
|
|
print 'CLobber all to fix GN breakage (crbug.com/736215)'
|
2013-08-21 06:44:58 +04:00
|
|
|
|
|
|
|
def main():
|
2014-08-14 18:03:30 +04:00
|
|
|
print_landmines()
|
2013-08-21 06:44:58 +04:00
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
sys.exit(main())
|