Skip to content

Commit

Permalink
Taskgraph 7.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Dec 20, 2023
1 parent 54e05e8 commit 084cd68
Show file tree
Hide file tree
Showing 44 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ tasks:
features:
taskclusterProxy: true

image: mozillareleases/taskgraph:decision-5483484ad45a3d27a0f5bd05f1c87d90e08df67a3713605d812b851a8a5bd854@sha256:ef132cc5741539f846a85bbe0cebc3c9ead30b8f24c1da46c55363f2170c3993
image: mozillareleases/taskgraph:decision-5483484ad45a3d27a0f5bd05f1c87d90e08df67a3713605d812b851a8a5bd854@sha256:2dd667994aa13fccdcdcede85c570a5eb4a5247e42875a9e95a135ef774ee469
maxRunTime: 1800

command:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- translations_taskgraph.transforms.from_datasets:per_dataset
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- translations_taskgraph.transforms.from_datasets:per_dataset
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- translations_taskgraph.transforms.from_datasets:mono
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.from_deps
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- taskgraph.transforms.from_deps
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- taskgraph.transforms.from_deps
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- translations_taskgraph.transforms.from_datasets:per_dataset
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ transforms:
- translations_taskgraph.transforms.from_datasets:per_dataset
- translations_taskgraph.transforms.worker_env
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ transforms:
- translations_taskgraph.transforms.worker_env
- taskgraph.transforms.from_deps
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ transforms:
- taskgraph.transforms.task_context
- translations_taskgraph.transforms.cast_to
- taskgraph.transforms.chunking
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ transforms:
- taskgraph.transforms.task_context
- translations_taskgraph.transforms.cast_to
- taskgraph.transforms.chunking
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- translations_taskgraph.transforms.fetch:transforms
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- taskgraph.transforms.task:transforms

task-defaults:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ transforms:
- translations_taskgraph.transforms.marian_args:transforms
- translations_taskgraph.transforms.worker_env
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- translations_taskgraph.transforms.find_upstreams:by_locales
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- translations_taskgraph.transforms.find_upstreams:by_locales
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- taskgraph.transforms.task_context
- translations_taskgraph.transforms.find_upstreams:mono
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader: taskgraph.loader.transform:loader
transforms:
- translations_taskgraph.transforms.worker_env
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- taskgraph.transforms.task:transforms

task-defaults:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kind-dependencies:
- fetch

transforms:
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ transforms:
- translations_taskgraph.transforms.marian_args:transforms
- translations_taskgraph.transforms.worker_env
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ transforms:
- translations_taskgraph.transforms.marian_args:transforms
- translations_taskgraph.transforms.worker_env
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ transforms:
- taskgraph.transforms.task_context
- translations_taskgraph.transforms.cast_to
- taskgraph.transforms.chunking
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader: taskgraph.loader.transform:loader

transforms:
- taskgraph.transforms.task_context
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ transforms:
- translations_taskgraph.transforms.cast_to
- taskgraph.transforms.chunking
- taskgraph.transforms.from_deps
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ transforms:
- translations_taskgraph.transforms.cast_to
- taskgraph.transforms.chunking
- taskgraph.transforms.from_deps
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ transforms:
- taskgraph.transforms.task_context
- translations_taskgraph.transforms.cast_to
- taskgraph.transforms.chunking
- taskgraph.transforms.job:transforms
- taskgraph.transforms.run:transforms
- translations_taskgraph.transforms.cached_tasks:transforms
- taskgraph.transforms.task:transforms

Expand Down
4 changes: 2 additions & 2 deletions taskcluster/translations_taskgraph/target_tasks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from taskgraph.target_tasks import _target_task
from taskgraph.target_tasks import register_target_task


@_target_task("train-target-tasks")
@register_target_task("train-target-tasks")
def train_target_tasks(full_task_graph, parameters, graph_config):
training_config = parameters["training_config"]
stage = training_config["target-stage"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from taskgraph import files_changed
from taskgraph.transforms.base import TransformSequence

KIND_DIR = Path(__file__).parent.parent.parent / "ci"
KIND_DIR = Path(__file__).parent.parent.parent / "kinds"

# Kinds are slightly special - there are some kinds that don't affect the pipeline,
# and changing them shouldn't force the pipeline to run.
Expand Down

0 comments on commit 084cd68

Please sign in to comment.