1*d9f75844SAndroid Build Coastguard Worker#!/usr/bin/env vpython3 2*d9f75844SAndroid Build Coastguard Worker 3*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 4*d9f75844SAndroid Build Coastguard Worker# 5*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license 6*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source 7*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found 8*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS. All contributing project authors may 9*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree. 10*d9f75844SAndroid Build Coastguard Worker""" 11*d9f75844SAndroid Build Coastguard WorkerThis file emits the list of reasons why a particular build needs to be clobbered 12*d9f75844SAndroid Build Coastguard Worker(or a list of 'landmines'). 13*d9f75844SAndroid Build Coastguard Worker""" 14*d9f75844SAndroid Build Coastguard Worker 15*d9f75844SAndroid Build Coastguard Workerimport os 16*d9f75844SAndroid Build Coastguard Workerimport sys 17*d9f75844SAndroid Build Coastguard Worker 18*d9f75844SAndroid Build Coastguard WorkerSCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) 19*d9f75844SAndroid Build Coastguard WorkerCHECKOUT_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir)) 20*d9f75844SAndroid Build Coastguard Workersys.path.insert(0, os.path.join(CHECKOUT_ROOT, 'build')) 21*d9f75844SAndroid Build Coastguard Workerimport landmine_utils 22*d9f75844SAndroid Build Coastguard Worker 23*d9f75844SAndroid Build Coastguard Workerhost_os = landmine_utils.host_os # pylint: disable=invalid-name 24*d9f75844SAndroid Build Coastguard Worker 25*d9f75844SAndroid Build Coastguard Worker 26*d9f75844SAndroid Build Coastguard Workerdef print_landmines(): # pylint: disable=invalid-name 27*d9f75844SAndroid Build Coastguard Worker """ 28*d9f75844SAndroid Build Coastguard Worker ALL LANDMINES ARE EMITTED FROM HERE. 29*d9f75844SAndroid Build Coastguard Worker """ 30*d9f75844SAndroid Build Coastguard Worker # DO NOT add landmines as part of a regular CL. Landmines are a last-effort 31*d9f75844SAndroid Build Coastguard Worker # bandaid fix if a CL that got landed has a build dependency bug and all 32*d9f75844SAndroid Build Coastguard Worker # bots need to be cleaned up. If you're writing a new CL that causes build 33*d9f75844SAndroid Build Coastguard Worker # dependency problems, fix the dependency problems instead of adding a 34*d9f75844SAndroid Build Coastguard Worker # landmine. 35*d9f75844SAndroid Build Coastguard Worker # See the Chromium version in src/build/get_landmines.py for usage examples. 36*d9f75844SAndroid Build Coastguard Worker print('Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)') 37*d9f75844SAndroid Build Coastguard Worker if host_os() == 'win': 38*d9f75844SAndroid Build Coastguard Worker print('Clobber to resolve some issues with corrupt .pdb files on bots.') 39*d9f75844SAndroid Build Coastguard Worker print('Clobber due to corrupt .pdb files (after #14623)') 40*d9f75844SAndroid Build Coastguard Worker print('Clobber due to Win 64-bit Debug linking error (crbug.com/668961)') 41*d9f75844SAndroid Build Coastguard Worker print('Clobber due to Win Clang Debug linking errors in ' 42*d9f75844SAndroid Build Coastguard Worker 'https://codereview.webrtc.org/2786603002') 43*d9f75844SAndroid Build Coastguard Worker print('Clobber due to Win Debug linking errors in ' 44*d9f75844SAndroid Build Coastguard Worker 'https://codereview.webrtc.org/2832063003/') 45*d9f75844SAndroid Build Coastguard Worker print('Clobber win x86 bots (issues with isolated files).') 46*d9f75844SAndroid Build Coastguard Worker print('Clobber because of libc++ issue') 47*d9f75844SAndroid Build Coastguard Worker print('Clobber because of libc++ issue - take 2') 48*d9f75844SAndroid Build Coastguard Worker print('Clobber because of libc++ issue - take 3') 49*d9f75844SAndroid Build Coastguard Worker print('Clobber because of libc++ issue - take 4 (crbug.com/1337238)') 50*d9f75844SAndroid Build Coastguard Worker print('Clobber because of libc++ issue - take 5 (crbug.com/1337238)') 51*d9f75844SAndroid Build Coastguard Worker print('Clobber because of libc++ issue - take 6 (crbug.com/1337238)') 52*d9f75844SAndroid Build Coastguard Worker if host_os() == 'mac': 53*d9f75844SAndroid Build Coastguard Worker print('Clobber due to iOS compile errors (crbug.com/694721)') 54*d9f75844SAndroid Build Coastguard Worker print('Clobber to unblock https://codereview.webrtc.org/2709573003') 55*d9f75844SAndroid Build Coastguard Worker print('Clobber to fix https://codereview.webrtc.org/2709573003 after ' 56*d9f75844SAndroid Build Coastguard Worker 'landing') 57*d9f75844SAndroid Build Coastguard Worker print('Clobber to fix https://codereview.webrtc.org/2767383005 before' 58*d9f75844SAndroid Build Coastguard Worker 'landing (changing rtc_executable -> rtc_test on iOS)') 59*d9f75844SAndroid Build Coastguard Worker print('Clobber to fix https://codereview.webrtc.org/2767383005 before' 60*d9f75844SAndroid Build Coastguard Worker 'landing (changing rtc_executable -> rtc_test on iOS)') 61*d9f75844SAndroid Build Coastguard Worker print('Another landmine for low_bandwidth_audio_test (webrtc:7430)') 62*d9f75844SAndroid Build Coastguard Worker print('Clobber to change neteq_rtpplay type to executable') 63*d9f75844SAndroid Build Coastguard Worker print('Clobber to remove .xctest files.') 64*d9f75844SAndroid Build Coastguard Worker print('Clobber to remove .xctest files (take 2).') 65*d9f75844SAndroid Build Coastguard Worker print('Switching rtc_executable to rtc_test') 66*d9f75844SAndroid Build Coastguard Worker 67*d9f75844SAndroid Build Coastguard Worker 68*d9f75844SAndroid Build Coastguard Workerdef main(): 69*d9f75844SAndroid Build Coastguard Worker print_landmines() 70*d9f75844SAndroid Build Coastguard Worker return 0 71*d9f75844SAndroid Build Coastguard Worker 72*d9f75844SAndroid Build Coastguard Worker 73*d9f75844SAndroid Build Coastguard Workerif __name__ == '__main__': 74*d9f75844SAndroid Build Coastguard Worker sys.exit(main()) 75