2022-04-04 10:17:32 +00:00
|
|
|
#!/usr/bin/env python3
|
2014-07-22 15:06:18 +00:00
|
|
|
# Copyright 2014 the V8 project 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').
|
|
|
|
"""
|
|
|
|
|
2019-02-25 20:59:53 +00:00
|
|
|
import os
|
2014-07-22 15:06:18 +00:00
|
|
|
import sys
|
|
|
|
|
2019-02-25 20:59:53 +00:00
|
|
|
sys.path.insert(0, os.path.abspath(
|
|
|
|
os.path.join(os.path.dirname(__file__), '..', 'build')))
|
|
|
|
|
|
|
|
import get_landmines as build_get_landmines
|
|
|
|
|
2018-01-29 11:55:58 +00:00
|
|
|
|
|
|
|
def print_landmines(): # pylint: disable=invalid-name
|
2014-07-22 15:06:18 +00:00
|
|
|
"""
|
|
|
|
ALL LANDMINES ARE EMITTED FROM HERE.
|
|
|
|
"""
|
2018-01-29 11:55:58 +00: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.
|
|
|
|
# See the Chromium version in src/build/get_landmines.py for usage examples.
|
2019-02-19 08:28:26 +00:00
|
|
|
print('Need to clobber after ICU52 roll.')
|
|
|
|
print('Landmines test.')
|
|
|
|
print('Activating MSVS 2013.')
|
|
|
|
print('Revert activation of MSVS 2013.')
|
|
|
|
print('Activating MSVS 2013 again.')
|
|
|
|
print('Clobber after ICU roll.')
|
|
|
|
print('Moar clobbering...')
|
|
|
|
print('Remove build/android.gypi')
|
|
|
|
print('Cleanup after windows ninja switch attempt.')
|
|
|
|
print('Switching to pinned msvs toolchain.')
|
|
|
|
print('Clobbering to hopefully resolve problem with mksnapshot')
|
|
|
|
print('Clobber after ICU roll.')
|
|
|
|
print('Clobber after Android NDK update.')
|
|
|
|
print('Clober to fix windows build problems.')
|
|
|
|
print('Clober again to fix windows build problems.')
|
|
|
|
print('Clobber to possibly resolve failure on win-32 bot.')
|
|
|
|
print('Clobber for http://crbug.com/668958.')
|
2019-06-06 21:44:42 +00:00
|
|
|
print('Clobber to possibly resolve build failure on Misc V8 Linux gcc.')
|
2019-02-25 20:59:53 +00:00
|
|
|
build_get_landmines.print_landmines()
|
2014-07-22 15:06:18 +00:00
|
|
|
return 0
|
|
|
|
|
|
|
|
|
2018-01-29 11:55:58 +00:00
|
|
|
def main():
|
|
|
|
print_landmines()
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
2014-07-22 15:06:18 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
sys.exit(main())
|