There is a testing version of the "cros tryjob" command available for submitting tryjobs.
I'm planning to move control of both local and remote tryjobs out of cbuildbot and into a dedicated command. The new command now exists and is ready for testing. After we're all convinced it works, I'll remove the tryjob behavior from the cbuildbot command.
The syntax is similar to, but not identical to cbuildbot tryjobs. The behavior after the tryjob is launched should be identical. One important difference (which mostly only affects TPMs) is that you should never use "--buildbot" with this command. Use "--production" instead.
Please try this out, and let me know about any issues you hit.
cros tryjob --help
usage: cros tryjob [-h]
[--log-level {fatal,critical,error,warning,notice,info,debug}]
[--log_format LOG_FORMAT] [--debug] [--nocolor] [-b BRANCH]
[--hwtest] [--yes] [--production] [--passthrough ...]
[--local | --remote] [-r BUILDROOT] [-g GERRIT_PATCHES]
[-G RIETVELD_PATCHES] [-p LOCAL_PATCHES]
[--committer-email COMMITTER_EMAIL]
[--remote-description REMOTE_DESCRIPTION]
[--version VERSION] [--channel CHANNELS]
build_configs [build_configs ...]
Schedule a tryjob.
positional arguments:
build_configs One or more configs to build.
optional arguments:
-h, --help show this help message and exit
-b BRANCH, --branch BRANCH
The manifest branch to test. The branch to check the
buildroot out to.
--hwtest Enable hwlab testing. Default false, except for
production.
--yes Never prompt to confirm.
--production This is a production build, NOT a test build. Use with
care.
--passthrough ... Arguments to pass to cbuildbot.
Debug options:
--log-level {fatal,critical,error,warning,notice,info,debug}
Set logging level to report at.
--log_format LOG_FORMAT
Set logging format to use.
--debug Alias for `--log-level=debug`. Useful for debugging
bugs/failures.
--nocolor Do not use colorized output (or `export NOCOLOR=true`)
Where:
Where do we run the tryjob?
--local Run the tryjob on your local machine.
--remote Run the tryjob on a remote builder. (default)
-r BUILDROOT, --buildroot BUILDROOT
Root directory to use for the local tryjob. NOT the
current checkout.
Patch:
Which patches should be included with the tryjob?
-g GERRIT_PATCHES, --gerrit-patches GERRIT_PATCHES
Space-separated list of short-form Gerrit Change-Id's
or change numbers to patch. Please prepend '*' to
internal Change-Id's
-G RIETVELD_PATCHES, --rietveld-patches RIETVELD_PATCHES
Space-separated list of short-form Rietveld issue
numbers to patch. If no subdir is specified, the src
directory is used.
-p LOCAL_PATCHES, --local-patches LOCAL_PATCHES
Space-separated list of project branches with patches
to apply. Projects are specified by name. If no branch
is specified the current branch of the project will be
used.
Requestor:
Who is submitting the jobs?
--committer-email COMMITTER_EMAIL
Override default git committer email.
--remote-description REMOTE_DESCRIPTION
Attach an optional description to a --remote run to
make it easier to identify the results when it
finishes
Specialty:
Options only used by specific tryjobs.
--version VERSION Specify the release version for payload regeneration.
Ex: 9799.0.0
--channel CHANNELS Specify a channel for a payloads trybot. Can be
specified multiple times. No valid for non-payloads
configs.
Remote Examples:
cros tryjob -g 123 lumpy-compile-only-pre-cq
cros tryjob -g 123 -g 456 lumpy-compile-only-pre-cq daisy-pre-cq
cros tryjob -g 123 --hwtest daisy-paladin
Local Examples:
cros tryjob --local -g 123 daisy-paladin
cros tryjob --local --buildroot /my/cool/path -g 123 daisy-paladin
Production Examples (danger, can break production if misused):
cros tryjob --production --branch release-R61-9765.B asuka-release
cros tryjob --production --version 9795.0.0 --channel canary lumpy-payloads