Skip to content

Commit

Permalink
wip: cot_verify: download actions.json artifact from action tasks
Browse files Browse the repository at this point in the history
If an action task's parent is another action task, we'll need to check
it against that parent task's actions.json.

Fixes mozilla-releng#580
  • Loading branch information
jcristau committed Jul 5, 2023
1 parent b49d47d commit 9d50bd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scriptworker/cot/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,12 +807,12 @@ def get_all_artifacts_per_task_id(chain, upstream_artifacts):
"""
all_artifacts_per_task_id = {}
for link in chain.links:
# Download task-graph.json for decision+action task cot verification
# Download task-graph.json and actions.json for decision+action task cot verification
if link.task_type in PARENT_TASK_TYPES:
add_enumerable_item_to_dict(dict_=all_artifacts_per_task_id, key=link.task_id, item="public/task-graph.json")
# Download actions.json for decision+action task cot verification
if link.task_type in DECISION_TASK_TYPES:
add_enumerable_item_to_dict(dict_=all_artifacts_per_task_id, key=link.task_id, item="public/actions.json")
# Download parameters.yml for decision task cot verification
if link.task_type in DECISION_TASK_TYPES:
add_enumerable_item_to_dict(dict_=all_artifacts_per_task_id, key=link.task_id, item="public/parameters.yml")

if upstream_artifacts:
Expand Down

0 comments on commit 9d50bd8

Please sign in to comment.