| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Closes tree if configured masters have failed tree-closing steps. | 6 """Closes tree if configured masters have failed tree-closing steps. |
| 7 | 7 |
| 8 Given a list of masters, gatekeeper_ng will get a list of the latest builds from | 8 Given a list of masters, gatekeeper_ng will get a list of the latest builds from |
| 9 the specified masters. It then checks if any tree-closing steps have failed, and | 9 the specified masters. It then checks if any tree-closing steps have failed, and |
| 10 if so closes the tree and emails appropriate parties. Configuration for which | 10 if so closes the tree and emails appropriate parties. Configuration for which |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 parser.add_option('--build-db', default='build_db.json', | 660 parser.add_option('--build-db', default='build_db.json', |
| 661 help='records the last-seen build for each builder') | 661 help='records the last-seen build for each builder') |
| 662 parser.add_option('--clear-build-db', action='store_true', | 662 parser.add_option('--clear-build-db', action='store_true', |
| 663 help='reset build_db to be empty') | 663 help='reset build_db to be empty') |
| 664 parser.add_option('--sync-build-db', action='store_true', | 664 parser.add_option('--sync-build-db', action='store_true', |
| 665 help='don\'t process any builds, but update build_db ' | 665 help='don\'t process any builds, but update build_db ' |
| 666 'to the latest build numbers') | 666 'to the latest build numbers') |
| 667 parser.add_option('--skip-build-db-update', action='store_true', | 667 parser.add_option('--skip-build-db-update', action='store_true', |
| 668 help='don\' write to the build_db, overridden by sync and' | 668 help='don\' write to the build_db, overridden by sync and' |
| 669 ' clear db options') | 669 ' clear db options') |
| 670 parser.add_option('--password-file', default='.chromium_status_password', | 670 parser.add_option('--password-file', default='.status_password', |
| 671 help='password file to update chromium-status') | 671 help='password file to update chromium-status') |
| 672 parser.add_option('-s', '--set-status', action='store_true', | 672 parser.add_option('-s', '--set-status', action='store_true', |
| 673 help='close the tree by connecting to chromium-status') | 673 help='close the tree by connecting to chromium-status') |
| 674 parser.add_option('--open-tree', action='store_true', | 674 parser.add_option('--open-tree', action='store_true', |
| 675 help='open the tree by connecting to chromium-status') | 675 help='open the tree by connecting to chromium-status') |
| 676 parser.add_option('--status-url', | 676 parser.add_option('--status-url', |
| 677 default='https://chromium-status.appspot.com', | 677 default='https://chromium-status.appspot.com', |
| 678 help='URL for root of the status app') | 678 help='URL for root of the status app') |
| 679 parser.add_option('--track-revisions', action='store_true', | 679 parser.add_option('--track-revisions', action='store_true', |
| 680 help='only close on increasing revisions') | 680 help='only close on increasing revisions') |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 | 845 |
| 846 if not options.skip_build_db_update: | 846 if not options.skip_build_db_update: |
| 847 build_scan_db.save_build_db(build_db, gatekeeper_config, | 847 build_scan_db.save_build_db(build_db, gatekeeper_config, |
| 848 options.build_db) | 848 options.build_db) |
| 849 | 849 |
| 850 return 0 | 850 return 0 |
| 851 | 851 |
| 852 | 852 |
| 853 if __name__ == '__main__': | 853 if __name__ == '__main__': |
| 854 sys.exit(main()) | 854 sys.exit(main()) |
| OLD | NEW |