Closed Bug 1384729 Opened 2 years ago Closed 2 years ago

Move actions directory into taskgraph directory


(Taskcluster :: Services, defect)

Not set


(Not tracked)



(Reporter: bstack, Assigned: bstack)




(1 file)

This will allow us to make use of more utility functions and will be cleaner in general.
Duplicate of this bug: 1381874
Comment on attachment 8890982 [details]
Bug 1384729 - Move actions into taskgraph dir

Looks good, just a little bit to split up, if it's not too hard.

::: taskcluster/taskgraph/actions/
(Diff revision 2)
> +# -*- coding: utf-8 -*-
> +
> +# This Source Code Form is subject to the terms of the Mozilla Public
> +# License, v. 2.0. If a copy of the MPL was not distributed with this
> +# file, You can obtain one at

Please add the `from __future__` stuff too, and in the other files that didn't have headers.

::: taskcluster/taskgraph/actions/
(Diff revision 2)
>  def add_new_jobs_action(parameters, input, task_group_id, task_id, task):
> -    full_task_graph = get_artifact(task_id, "public/full-task-graph.json")
> +    decision_task_id = find_decision_task(parameters)
> +
> +    full_task_graph = get_artifact(decision_task_id, "public/full-task-graph.json")
>      _, full_task_graph = TaskGraph.from_json(full_task_graph)
> -    label_to_taskid = get_artifact(task_id, "public/label-to-taskid.json")
> +    label_to_taskid = get_artifact(decision_task_id, "public/label-to-taskid.json")

I think this fix is correcting an assumption that task_id was the decision task?  That should probably be its own commit.

::: taskcluster/taskgraph/actions/
(Diff revision 2)
>      the action callback in testing mode, without actually creating tasks.
>      """
>      cb = get_callbacks().get(callback, None)
>      if not cb:
> -        raise Exception('Unknown callback: {}'.format(callback))
> +        raise Exception('Unknown callback: {}. Known callbacks: {}'.format(
> +            callback, get_callbacks().keys()))

This might be best in its own commit too..
Attachment #8890982 - Flags: review?(dustin) → review+
Pushed by
Move actions into taskgraph dir r=dustin
Backout by
Backed out changeset 9368bd804513 for bustage: pattern 'actions/**' in 'taskcluster/' corresponds to no files in the tree. r=backout on a CLOSED TREE
Backout by
Backed out changeset 9368bd804513 for build failures in a=backout CLOSED TREE
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Component: Integration → Services
You need to log in before you can comment on or make changes to this bug.