Bug 1695018 - Allow "sparse-profile-prefix" on toolchain tasks. r=taskgraph-reviewers,jmaher
authorRob Lemley <rob@thunderbird.net>
Mon, 12 Apr 2021 18:23:42 +0000
changeset 575510 9a8385c6330df2ce396d379b4fdbfa71ee3d7b91
parent 575508 caadf550854dfca02dfda93c3e1d0ea52930b3b8
child 575511 4d8b6d3a5f02cd110bb91186209f06c3722dbd76
push id38367
push userabutkovits@mozilla.com
push dateTue, 13 Apr 2021 03:56:47 +0000
treeherdermozilla-central@d68cc4d521d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstaskgraph-reviewers, jmaher
bugs1695018
milestone89.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1695018 - Allow "sparse-profile-prefix" on toolchain tasks. r=taskgraph-reviewers,jmaher Differential Revision: https://phabricator.services.mozilla.com/D111321
taskcluster/taskgraph/transforms/job/toolchain.py
--- a/taskcluster/taskgraph/transforms/job/toolchain.py
+++ b/taskcluster/taskgraph/transforms/job/toolchain.py
@@ -41,21 +41,24 @@ toolchain_run_schema = Schema(
         # If not false, tooltool downloads will be enabled via relengAPIProxy
         # for either just public files, or all files.  Not supported on Windows
         Required("tooltool-downloads"): Any(
             False,
             "public",
             "internal",
         ),
         # Sparse profile to give to checkout using `run-task`.  If given,
-        # a filename in `build/sparse-profiles`.  Defaults to
-        # "toolchain-build", i.e., to
-        # `build/sparse-profiles/toolchain-build`.  If `None`, instructs
-        # `run-task` to not use a sparse profile at all.
+        # Defaults to "toolchain-build". The value is relative to
+        # "sparse-profile-prefix", optionally defined below is the path,
+        # defaulting to "build/sparse-profiles".
+        # i.e. `build/sparse-profiles/toolchain-build`.
+        # If `None`, instructs `run-task` to not use a sparse profile at all.
         Required("sparse-profile"): Any(text_type, None),
+        # The relative path to the sparse profile.
+        Optional("sparse-profile-prefix"): text_type,
         # Paths/patterns pointing to files that influence the outcome of a
         # toolchain build.
         Optional("resources"): [text_type],
         # Path to the artifact produced by the toolchain job
         Required("toolchain-artifact"): text_type,
         Optional(
             "toolchain-alias",
             description="An alias that can be used instead of the real toolchain job name in "