Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: trychange.py

Issue 9428047: Improve trychange.py documentation. No logic change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Better doc Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Client-side script to send a try job to the try server. It communicates to 6 """Client-side script to send a try job to the try server. It communicates to
7 the try server by either writting to a svn repository or by directly connecting 7 the try server by either writting to a svn repository or by directly connecting
8 to the server by HTTP. 8 to the server by HTTP.
9 """ 9 """
10 10
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 group.add_option("--patchset", type='int', 528 group.add_option("--patchset", type='int',
529 help="Update rietveld issue try job status. This is " 529 help="Update rietveld issue try job status. This is "
530 "optional if --issue is used, In that case, the " 530 "optional if --issue is used, In that case, the "
531 "latest patchset will be used.") 531 "latest patchset will be used.")
532 group.add_option("--dry_run", action='store_true', 532 group.add_option("--dry_run", action='store_true',
533 help="Don't send the try job. This implies --verbose, so " 533 help="Don't send the try job. This implies --verbose, so "
534 "it will print the diff.") 534 "it will print the diff.")
535 parser.add_option_group(group) 535 parser.add_option_group(group)
536 536
537 group = optparse.OptionGroup(parser, "Try job options") 537 group = optparse.OptionGroup(parser, "Try job options")
538 group.add_option("-b", "--bot", action="append", 538 group.add_option(
539 help="Only use specifics build slaves, ex: " 539 "-b", "--bot", action="append",
540 "'--bot win,layout_mac'; see the try " 540 help=("IMPORTANT: specify ONE builder per --bot flag. Use it multiple "
541 "server waterfall for the slave's name") 541 "times to specify multiple builders. ex: "
542 "'-bwin_rel:ui_tests,webkit_unit_tests -bwin_layout'. See "
543 "the try server waterfall for the builders name and the tests "
544 "available. Can also be used to specify gtest_filter, e.g. "
545 "-bwin_rel:base_unittests:ValuesTest.*Value"))
Nico 2012/10/15 23:24:09 Why this change? The lhs doc permitted "win,layout
Peter Mayo 2012/10/15 23:41:41 This leads to paths that are too hard to communica
542 group.add_option("-B", "--print_bots", action="store_true", 546 group.add_option("-B", "--print_bots", action="store_true",
543 help="Print bots we would use (e.g. from PRESUBMIT.py)" 547 help="Print bots we would use (e.g. from PRESUBMIT.py)"
544 " and exit. Do not send patch. Like --dry_run" 548 " and exit. Do not send patch. Like --dry_run"
545 " but less verbose.") 549 " but less verbose.")
546 group.add_option("-r", "--revision", 550 group.add_option("-r", "--revision",
547 help="Revision to use for the try job; default: the " 551 help="Revision to use for the try job; default: the "
548 "revision will be determined by the try server; see " 552 "revision will be determined by the try server; see "
549 "its waterfall for more info") 553 "its waterfall for more info")
550 group.add_option("-c", "--clobber", action="store_true", 554 group.add_option("-c", "--clobber", action="store_true",
551 help="Force a clobber before building; e.g. don't do an " 555 help="Force a clobber before building; e.g. don't do an "
552 "incremental build") 556 "incremental build")
553 # TODO(maruel): help="Select a specific configuration, usually 'debug' or " 557 # TODO(maruel): help="Select a specific configuration, usually 'debug' or "
554 # "'release'" 558 # "'release'"
555 group.add_option("--target", help=optparse.SUPPRESS_HELP) 559 group.add_option("--target", help=optparse.SUPPRESS_HELP)
556 560
557 group.add_option("--project", 561 group.add_option("--project",
558 help="Override which project to use. Projects are defined " 562 help="Override which project to use. Projects are defined "
559 "server-side to define what default bot set to use") 563 "server-side to define what default bot set to use")
560 564
561 group.add_option("-t", "--testfilter", action="append", default=[], 565 group.add_option(
562 help="Add a gtest_filter to a test. Use multiple times to " 566 "-t", "--testfilter", action="append", default=[],
563 "specify filters for different tests. (i.e. " 567 help=("Apply a testfilter to all the selected builders. Unless the "
564 "--testfilter base_unittests:ThreadTest.* " 568 "builders configurations are similar, use multiple "
565 "--testfilter ui_tests) If you specify any testfilters " 569 "--bot <builder>:<test> arguments."))
566 "the test results will not be reported in rietveld and "
567 "only tests with filters will run.")
568 570
569 parser.add_option_group(group) 571 parser.add_option_group(group)
570 572
571 group = optparse.OptionGroup(parser, "Patch to run") 573 group = optparse.OptionGroup(parser, "Patch to run")
572 group.add_option("-f", "--file", default=[], dest="files", 574 group.add_option("-f", "--file", default=[], dest="files",
573 metavar="FILE", action="append", 575 metavar="FILE", action="append",
574 help="Use many times to list the files to include in the " 576 help="Use many times to list the files to include in the "
575 "try, relative to the repository root") 577 "try, relative to the repository root")
576 group.add_option("--diff", 578 group.add_option("--diff",
577 help="File containing the diff to try") 579 help="File containing the diff to try")
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 return 1 824 return 1
823 except (gclient_utils.Error, subprocess2.CalledProcessError), e: 825 except (gclient_utils.Error, subprocess2.CalledProcessError), e:
824 print >> sys.stderr, e 826 print >> sys.stderr, e
825 return 1 827 return 1
826 return 0 828 return 0
827 829
828 830
829 if __name__ == "__main__": 831 if __name__ == "__main__":
830 fix_encoding.fix_encoding() 832 fix_encoding.fix_encoding()
831 sys.exit(TryChange(None, None, False)) 833 sys.exit(TryChange(None, None, False))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698