Beta and ESR tasks have been running at a higher priority than autoland to optimize shipping time for chemspill releases. For most uplifts this is not needed, and it starves try and autoland of constrained resources, typically the Mac worker pools. Treat beta and ESR as the integration branches they usually are, and only raise their priority when the commit message contains "SHIPPING", which release managers set through the Lando flag added in bug 2064629. Also removes the mozilla-inbound entry, as that branch no longer exists. Differential Revision: https://phabricator.services.mozilla.com/D320027
9.5 KiB
Parameters
Task-graph generation takes a collection of parameters as input, in the form of a JSON or YAML file.
During decision-task processing, some of these parameters are supplied on the
command line or by environment variables. The decision task helpfully produces
a full parameters file as one of its output artifacts. The other mach taskgraph commands can take this file as input. This can be very helpful
when working on a change to the task graph.
When experimenting with local runs of the task-graph generation, it is always
best to find a recent decision task's parameters.yml file, and modify that
file if necessary, rather than starting from scratch. This ensures you have a
complete set of parameters.
The properties of the parameters object are described here, divided roughly by topic.
Push Information
android_perftest_backstop-
Whether or not this push is a "backstop" push for android performance tests. That is a push where all android performance tests should run to ensure regressions aren't accidentally missed.
backstop-
Whether or not this push is a "backstop" push. That is a push where all builds and tests should run to ensure regressions aren't accidentally missed.
base_repository-
The repository from which to do an initial clone, utilizing any available caching.
head_repository-
The repository containing the changeset to be built. This may differ from
base_repositoryin cases wherebase_repositoryis likely to be cached and only a few additional commits are needed fromhead_repository. base_rev-
The previous revision before
head_revgot merged into. This can be a short revision string. head_rev-
The revision to check out; this can be a short revision string
head_git_repository-
Optionally, the git repository containing
head_git_revwhen it's in a Mercurial repository. head_git_rev-
Optionally, the git commit corresponding to the head_rev when it's in a Mercurial repository.
head_git_ref-
Optionally, the git ref associated with
head_git_rev. base_ref-
Reference where
head_revgot merged into. It is usually a branch or a tag. head_ref-
For Mercurial repositories, this is the same as
head_rev. For git repositories, which do not allow pulling explicit revisions, this gives the symbolic ref containinghead_revthat should be pulled fromhead_repository. head_tag-
The tag attached to the revision, if any.
files_changed-
The list of all files added or modified by the push.
owner-
Email address indicating the person who made the push. Note that this value may be forged and must not be relied on for authentication.
pushlog_id-
The ID from the
hg.mozilla.orgpushlog pushdate-
The timestamp of the push to the repository that triggered this decision task. Expressed as an integer seconds since the UNIX epoch.
hg_branch-
The mercurial branch where the revision lives in.
build_date-
The timestamp of the build date. Defaults to
pushdateand falls back to present time of taskgraph invocation. Expressed as an integer seconds since the UNIX epoch. moz_build_date-
A formatted timestamp of
build_date. Expressed as a string with the following format: %Y%m%d%H%M%S repository_type-
The type of repository, either
hgorgit. tasks_for-
The
tasks_forvalue used to generate the decision task. pull_request_number-
The GitHub pull request number, if any.
dontbuild-
Set (to
true) when the commit message requested that no tasks run on this push. shipping-
Set (to
true) when the commit message containsSHIPPING, indicating the push is intended to be shipped. This can be used to alter properties of tasks, such as their priority.
Tree Information
project-
Another name for what may otherwise be called tree or branch or repository. This is the unqualified name, such as
mozilla-centralorcedar. level-
The SCM level associated with this tree. This dictates the names of resources used in the generated tasks, and those tasks will fail if it is incorrect.
Try Configuration
try_mode-
The mode in which a try push is operating. This can be one of:
"try_task_config"- Used to configure the taskgraph."try_auto"- Used to make try pushes behave more like a push onautoland."try_select"- Used bymach tryto build a list of tasks locally.None- Not a try push ormach try release.
try_task_config-
The contents of the
try_task_config.jsonfile, or{}iftry_modeis nottry_task_config.
Test Configuration
test_manifest_loader-
The test manifest loader to use as defined in
taskgraph.util.chunking.manifest_loaders.
Target Set
The "target set" is the set of task labels which must be included in a task graph. The task graph generation process will include any tasks required by those in the target set, recursively. In a decision task, this set can be specified programmatically using one of a variety of methods (e.g., parsing try syntax or reading a project-specific configuration file).
enable_always_target-
Can either be a boolean or a list of kinds.
When
True, any task with thealways_targetattribute will be included in thetarget_task_graphregardless of whether they were filtered out by thetarget_tasks_methodor not. Because they are not part of thetarget_set, they will still be eligible for optimization when theoptimize_target_tasksparameter isFalse.When specified as a list of kinds, only tasks with a matching kind will be eligible for addition to the graph.
filters-
List of filter functions (from
taskcluster/gecko_taskgraph/filter_tasks.py) to apply. This is usually defined internally, as filters are typically global. target_tasks_method-
The method to use to determine the target task set. This is the suffix of one of the functions in
taskcluster/gecko_taskgraph/target_tasks.py. release_history-
History of recent releases by platform and locale, used when generating partial updates for nightly releases. Suitable contents can be generated with
mach release-history, which will print to the console by default.
Optimization
optimize_strategies-
A python path of the form
<module>:<object>containing a dictionary of optimization strategies to use, overwriting the defaults. optimize_target_tasks-
If true, then target tasks are eligible for optimization.
do_not_optimize-
Specify tasks to not optimize out of the graph. This is a list of labels. Any tasks in the graph matching one of the labels will not be optimized out of the graph.
existing_tasks-
Specify tasks to optimize out of the graph. This is a dictionary of label to taskId. Any tasks in the graph matching one of the labels will use the previously-run taskId rather than submitting a new task.
Release Promotion
build_number-
Specify the release promotion build number.
version-
Specify the version for release tasks.
app_version-
Specify the application version for release tasks. For releases, this is often a less specific version number than
version. next_version-
Specify the next version for version bump tasks.
release_type-
The type of release being promoted. One of "nightly", "beta", "esr115", "esr140", "esr153" or "release".
release_eta-
The time and date when a release is scheduled to live. This value is passed to Balrog.
release_enable_partner_repack-
Boolean which controls repacking vanilla Firefox builds for partners.
release_enable_partner_attribution-
Boolean which controls adding attribution to vanilla Firefox builds for partners.
release_enable_emefree-
Boolean which controls repacking vanilla Firefox builds into EME-free builds.
release_partners-
List of partners to repack or attribute if a subset of the whole config. A null value defaults to all.
release_partner_config-
Configuration for partner repacks & attribution, as well as EME-free repacks.
release_partner_build_number-
The build number for partner repacks. We sometimes have multiple partner build numbers per release build number; this parameter lets us bump them independently. Defaults to 1.
release_product-
The product that is being released.
partial_versions-
A list of previous versions that partial updates should be generated for, in the form of X.YbuildN, eg: ["138.0.1build1", "137.0build2"].
Repository Merge Day
merge_config-
Merge config describes the repository merge behaviour, using an alias to cover which set of file replacements and version increments are required, along with overrides for the source and target repository URIs.
source_repo-
The clone/push URI of the source repository, such as https://hg.mozilla.org/mozilla-central
target_repo-
The clone/push URI of the target repository, such as https://hg.mozilla.org/releases/mozilla-beta
source_branch-
The firefoxtree alias of the source branch, such as 'central', 'beta'
target_branch-
The firefoxtree alias of the target branch, such as 'beta', 'release'
force-dry-run-
Don't push any results to target repositories.
Code Review
phabricator_diff-
The code review process needs to know the Phabricator Differential diff that started the analysis. This parameter must start with
PHID-DIFF-
Local configuration
target-kinds-
Generate only the given kinds and their kind-dependencies. This is used for local inspection of the graph and is not supported at run-time.