taskcluster-taskgraph 9.2.0__tar.gz → 10.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {taskcluster-taskgraph-9.2.0/src/taskcluster_taskgraph.egg-info → taskcluster-taskgraph-10.0.0}/PKG-INFO +1 -1
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0/src/taskcluster_taskgraph.egg-info}/PKG-INFO +1 -1
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/__init__.py +1 -1
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/docker_image.py +2 -2
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/run/__init__.py +23 -10
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_run.py +21 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/LICENSE +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/MANIFEST.in +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/README.rst +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/pyproject.toml +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/requirements/base.in +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/requirements/base.txt +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/requirements/dev.in +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/requirements/dev.txt +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/requirements/test.in +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/requirements/test.txt +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/setup.cfg +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/setup.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskcluster_taskgraph.egg-info/SOURCES.txt +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskcluster_taskgraph.egg-info/dependency_links.txt +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskcluster_taskgraph.egg-info/entry_points.txt +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskcluster_taskgraph.egg-info/requires.txt +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskcluster_taskgraph.egg-info/top_level.txt +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/__init__.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/add_new_jobs.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/cancel.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/cancel_all.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/rebuild_cached_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/registry.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/retrigger.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/util.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/config.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/create.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/decision.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/docker.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/filter_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/generator.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/graph.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/loader/__init__.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/loader/default.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/loader/transform.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/main.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/morph.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/optimize/__init__.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/optimize/base.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/optimize/strategies.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/parameters.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/run-task/fetch-content +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/run-task/hgrc +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/run-task/robustcheckout.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/run-task/run-task +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/target_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/task.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/taskgraph.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/__init__.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/base.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/cached_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/chunking.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/code_review.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/fetch.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/from_deps.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/notify.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/run/common.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/run/index_search.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/run/run_task.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/run/toolchain.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/task.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/task_context.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/__init__.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/archive.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/attributes.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/cached_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/copy.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/dependencies.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/docker.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/hash.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/keyed_by.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/parameterization.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/path.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/python_path.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/readonlydict.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/schema.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/set_name.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/shell.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/taskcluster.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/taskgraph.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/templates.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/time.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/treeherder.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/vcs.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/verify.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/workertypes.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/yaml.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_actions_rebuild_cached_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_actions_registry.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_create.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_decision.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_docker.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_generator.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_graph.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_main.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_morph.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_optimize.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_optimize_strategies.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_parameters.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_scripts_fetch_content.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_scripts_run_task.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_target_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_taskgraph.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transform_chunking.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transform_docker_image.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transform_task_context.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_base.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_cached_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_fetch.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_from_deps.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_notify.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_run_run_task.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_run_toolchain.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_task.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_archive.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_attributes.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_cached_tasks.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_copy.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_dependencies.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_docker.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_parameterization.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_path.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_python_path.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_readonlydict.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_schema.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_taskcluster.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_templates.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_time.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_treeherder.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_vcs.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_verify.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_workertypes.py +0 -0
- {taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_yaml.py +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
4
4
|
|
|
5
|
-
__version__ = "
|
|
5
|
+
__version__ = "10.0.0"
|
|
6
6
|
|
|
7
7
|
# Maximum number of dependencies a single task can have
|
|
8
8
|
# https://docs.taskcluster.net/reference/platform/taskcluster-queue/references/api#createTask
|
|
@@ -24,9 +24,9 @@ CONTEXTS_DIR = "docker-contexts"
|
|
|
24
24
|
DIGEST_RE = re.compile("^[0-9a-f]{64}$")
|
|
25
25
|
|
|
26
26
|
IMAGE_BUILDER_IMAGE = (
|
|
27
|
-
"mozillareleases/image_builder:5.
|
|
27
|
+
"mozillareleases/image_builder:5.1.0"
|
|
28
28
|
"@sha256:"
|
|
29
|
-
"
|
|
29
|
+
"7fe70dcedefffffa03237ba5d456d42e0d7461de066db3f7a7c280a104869cd5"
|
|
30
30
|
)
|
|
31
31
|
|
|
32
32
|
transforms = TransformSequence()
|
|
@@ -14,7 +14,7 @@ import copy
|
|
|
14
14
|
import json
|
|
15
15
|
import logging
|
|
16
16
|
|
|
17
|
-
from voluptuous import
|
|
17
|
+
from voluptuous import Exclusive, Extra, Optional, Required
|
|
18
18
|
|
|
19
19
|
from taskgraph.transforms.base import TransformSequence
|
|
20
20
|
from taskgraph.transforms.cached_tasks import order_tasks
|
|
@@ -85,7 +85,6 @@ run_description_schema = Schema(
|
|
|
85
85
|
},
|
|
86
86
|
# A list of artifacts to install from 'fetch' tasks.
|
|
87
87
|
Optional("fetches"): {
|
|
88
|
-
Any("toolchain", "fetch"): [str],
|
|
89
88
|
str: [
|
|
90
89
|
str,
|
|
91
90
|
fetches_schema,
|
|
@@ -252,7 +251,15 @@ def use_fetches(config, tasks):
|
|
|
252
251
|
for kind in sorted(fetches):
|
|
253
252
|
artifacts = fetches[kind]
|
|
254
253
|
if kind in ("fetch", "toolchain"):
|
|
255
|
-
for
|
|
254
|
+
for artifact in sorted(artifacts):
|
|
255
|
+
# Convert name only fetch entries to full fledged ones for
|
|
256
|
+
# easier processing.
|
|
257
|
+
if isinstance(artifact, str):
|
|
258
|
+
artifact = {
|
|
259
|
+
"artifact": artifact,
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
fetch_name = artifact["artifact"]
|
|
256
263
|
label = f"{kind}-{fetch_name}"
|
|
257
264
|
label = aliases.get(label, label)
|
|
258
265
|
if label not in artifact_names:
|
|
@@ -263,15 +270,21 @@ def use_fetches(config, tasks):
|
|
|
263
270
|
env.update(extra_env[label])
|
|
264
271
|
|
|
265
272
|
path = artifact_names[label]
|
|
273
|
+
dest = artifact.get("dest", None)
|
|
274
|
+
extract = artifact.get("extract", True)
|
|
275
|
+
verify_hash = artifact.get("verify-hash", False)
|
|
266
276
|
|
|
267
277
|
dependencies[label] = label
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
278
|
+
fetch = {
|
|
279
|
+
"artifact": path,
|
|
280
|
+
"task": f"<{label}>",
|
|
281
|
+
"extract": extract,
|
|
282
|
+
}
|
|
283
|
+
if dest is not None:
|
|
284
|
+
fetch["dest"] = dest
|
|
285
|
+
if verify_hash:
|
|
286
|
+
fetch["verify-hash"] = verify_hash
|
|
287
|
+
task_fetches.append(fetch)
|
|
275
288
|
else:
|
|
276
289
|
if kind not in dependencies:
|
|
277
290
|
raise Exception(
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Tests for the 'run' transform subsystem.
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
import json
|
|
9
10
|
import os
|
|
10
11
|
from copy import deepcopy
|
|
11
12
|
from pprint import pprint
|
|
@@ -89,6 +90,12 @@ def assert_use_fetches_toolchain_env(task):
|
|
|
89
90
|
assert task["worker"]["env"]["FOO"] == "1"
|
|
90
91
|
|
|
91
92
|
|
|
93
|
+
def assert_use_fetches_toolchain_extract_false(task):
|
|
94
|
+
fetches = json.loads(task["worker"]["env"]["MOZ_FETCHES"]["task-reference"])
|
|
95
|
+
assert len(fetches) == 1
|
|
96
|
+
assert fetches[0]["extract"] is False
|
|
97
|
+
|
|
98
|
+
|
|
92
99
|
@pytest.mark.parametrize(
|
|
93
100
|
"task,kind_dependencies_tasks",
|
|
94
101
|
(
|
|
@@ -107,6 +114,20 @@ def assert_use_fetches_toolchain_env(task):
|
|
|
107
114
|
],
|
|
108
115
|
id="toolchain_env",
|
|
109
116
|
),
|
|
117
|
+
pytest.param(
|
|
118
|
+
{"fetches": {"toolchain": [{"artifact": "foo", "extract": False}]}},
|
|
119
|
+
[
|
|
120
|
+
Task(
|
|
121
|
+
kind="toolchain",
|
|
122
|
+
label="toolchain-foo",
|
|
123
|
+
attributes={
|
|
124
|
+
"toolchain-artifact": "target.whl",
|
|
125
|
+
},
|
|
126
|
+
task={},
|
|
127
|
+
)
|
|
128
|
+
],
|
|
129
|
+
id="toolchain_extract_false",
|
|
130
|
+
),
|
|
110
131
|
),
|
|
111
132
|
)
|
|
112
133
|
def test_use_fetches(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/__init__.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/add_new_jobs.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/cancel.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/cancel_all.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/registry.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/actions/retrigger.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/loader/__init__.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/loader/default.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/loader/transform.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/optimize/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/optimize/strategies.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/run-task/fetch-content
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/run-task/run-task
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/__init__.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/base.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/chunking.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/code_review.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/fetch.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/from_deps.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/notify.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/run/common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/transforms/task.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/attributes.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/cached_tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/dependencies.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/parameterization.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/python_path.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/readonlydict.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/taskcluster.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/taskgraph.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/templates.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/treeherder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/src/taskgraph/util/workertypes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_optimize_strategies.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_scripts_fetch_content.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transform_chunking.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transform_docker_image.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transform_task_context.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_cached_tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_from_deps.py
RENAMED
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_run_run_task.py
RENAMED
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_transforms_run_toolchain.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taskcluster-taskgraph-9.2.0 → taskcluster-taskgraph-10.0.0}/test/test_util_parameterization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|