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