Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 1 | #!/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 | """ |
| 11 | This file emits the list of reasons why a particular build needs to be clobbered |
| 12 | (or a list of 'landmines'). |
| 13 | """ |
| 14 | |
| 15 | import os |
| 16 | import sys |
| 17 | |
| 18 | script_dir = os.path.dirname(os.path.realpath(__file__)) |
mbonadei | ad45228 | 2017-01-24 00:01:49 -0800 | [diff] [blame] | 19 | checkout_root = os.path.abspath(os.path.join(script_dir, os.pardir)) |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 20 | sys.path.insert(0, os.path.join(checkout_root, 'build')) |
| 21 | import landmine_utils |
| 22 | |
| 23 | |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 24 | distributor = landmine_utils.distributor |
| 25 | gyp_defines = landmine_utils.gyp_defines |
| 26 | gyp_msvs_version = landmine_utils.gyp_msvs_version |
| 27 | platform = landmine_utils.platform |
| 28 | |
| 29 | |
| 30 | def print_landmines(): |
| 31 | """ |
| 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 Kjellander | 5ddee02 | 2015-10-27 11:59:52 +0100 | [diff] [blame] | 40 | print 'Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)' |
kjellander | 08352ab | 2016-08-31 08:24:03 -0700 | [diff] [blame] | 41 | if platform() == 'android': |
| 42 | print ('Clobber to remove artifacts on Android causing lint errors after ' |
| 43 | 'rolling in https://codereview.webrtc.org/2293863002') |
kjellander | 0c9e567 | 2016-09-28 00:05:26 -0700 | [diff] [blame] | 44 | print ('Clobber to remove old AppRTCDemo artifacts after renaming to ' |
| 45 | 'AppRTCMobile in https://codereview.webrtc.org/2373443005') |
Henrik Kjellander | 0de11aa | 2016-12-22 12:40:56 +0100 | [diff] [blame] | 46 | print ('Clobber to fix Android x86/x64 builds after ' |
| 47 | 'https://codereview.webrtc.org/1414343008/') |
kjellander | 0c9e567 | 2016-09-28 00:05:26 -0700 | [diff] [blame] | 48 | if platform() == 'win': |
| 49 | print 'Clobber to resolve some issues with corrupt .pdb files on bots.' |
Henrik Kjellander | dd7a1cf | 2016-10-12 21:07:02 -0700 | [diff] [blame] | 50 | print 'Clobber due to corrupt .pdb files (after #14623)' |
Henrik Kjellander | 455b512 | 2016-11-29 11:14:35 +0100 | [diff] [blame] | 51 | print 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)' |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 52 | |
| 53 | |
| 54 | def main(): |
| 55 | print_landmines() |
| 56 | return 0 |
| 57 | |
| 58 | |
| 59 | if __name__ == '__main__': |
| 60 | sys.exit(main()) |