Takuto Ikuta | 9345bee | 2021-11-26 21:06:40 +0900 | [diff] [blame^] | 1 | #!/usr/bin/env python3 |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 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. |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 9 | """ |
| 10 | This file emits the list of reasons why a particular build needs to be clobbered |
| 11 | (or a list of 'landmines'). |
| 12 | """ |
| 13 | |
Takuto Ikuta | 9345bee | 2021-11-26 21:06:40 +0900 | [diff] [blame^] | 14 | from __future__ import absolute_import |
| 15 | from __future__ import print_function |
| 16 | |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 17 | import os |
| 18 | import sys |
| 19 | |
kjellander | c88b5d5 | 2017-04-05 06:42:43 -0700 | [diff] [blame] | 20 | SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) |
| 21 | CHECKOUT_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir)) |
| 22 | sys.path.insert(0, os.path.join(CHECKOUT_ROOT, 'build')) |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 23 | import landmine_utils |
| 24 | |
Michael Achenbach | 500874e | 2018-02-16 14:43:14 -0800 | [diff] [blame] | 25 | host_os = landmine_utils.host_os # pylint: disable=invalid-name |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 26 | |
| 27 | |
kjellander | c88b5d5 | 2017-04-05 06:42:43 -0700 | [diff] [blame] | 28 | def print_landmines(): # pylint: disable=invalid-name |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 29 | """ |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 30 | ALL LANDMINES ARE EMITTED FROM HERE. |
| 31 | """ |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 32 | # DO NOT add landmines as part of a regular CL. Landmines are a last-effort |
Takuto Ikuta | 9345bee | 2021-11-26 21:06:40 +0900 | [diff] [blame^] | 33 | # bandaid fix if a CL that got landed has a build dependency bug and all |
| 34 | # bots need to be cleaned up. If you're writing a new CL that causes build |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 35 | # dependency problems, fix the dependency problems instead of adding a |
| 36 | # landmine. |
| 37 | # See the Chromium version in src/build/get_landmines.py for usage examples. |
Takuto Ikuta | 9345bee | 2021-11-26 21:06:40 +0900 | [diff] [blame^] | 38 | print('Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)') |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 39 | if host_os() == 'win': |
Takuto Ikuta | 9345bee | 2021-11-26 21:06:40 +0900 | [diff] [blame^] | 40 | print('Clobber to resolve some issues with corrupt .pdb files on bots.') |
| 41 | print('Clobber due to corrupt .pdb files (after #14623)') |
| 42 | print( |
| 43 | 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)') |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 44 | print('Clobber due to Win Clang Debug linking errors in ' |
| 45 | 'https://codereview.webrtc.org/2786603002') |
| 46 | print('Clobber due to Win Debug linking errors in ' |
| 47 | 'https://codereview.webrtc.org/2832063003/') |
Takuto Ikuta | 9345bee | 2021-11-26 21:06:40 +0900 | [diff] [blame^] | 48 | print('Clobber win x86 bots (issues with isolated files).') |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 49 | if host_os() == 'mac': |
Takuto Ikuta | 9345bee | 2021-11-26 21:06:40 +0900 | [diff] [blame^] | 50 | print('Clobber due to iOS compile errors (crbug.com/694721)') |
| 51 | print('Clobber to unblock https://codereview.webrtc.org/2709573003') |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 52 | print('Clobber to fix https://codereview.webrtc.org/2709573003 after ' |
| 53 | 'landing') |
| 54 | print('Clobber to fix https://codereview.webrtc.org/2767383005 before' |
| 55 | 'landing (changing rtc_executable -> rtc_test on iOS)') |
| 56 | print('Clobber to fix https://codereview.webrtc.org/2767383005 before' |
| 57 | 'landing (changing rtc_executable -> rtc_test on iOS)') |
Takuto Ikuta | 9345bee | 2021-11-26 21:06:40 +0900 | [diff] [blame^] | 58 | print('Another landmine for low_bandwidth_audio_test (webrtc:7430)') |
| 59 | print('Clobber to change neteq_rtpplay type to executable') |
| 60 | print('Clobber to remove .xctest files.') |
| 61 | print('Clobber to remove .xctest files (take 2).') |
| 62 | print('Switching rtc_executable to rtc_test') |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 63 | |
| 64 | |
| 65 | def main(): |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 66 | print_landmines() |
| 67 | return 0 |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 68 | |
| 69 | |
| 70 | if __name__ == '__main__': |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 71 | sys.exit(main()) |