From 9d50bd893cabb0fed0661fb8e1b4cd8a094f9aba Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Wed, 5 Jul 2023 11:00:55 +0200 Subject: [PATCH] wip: cot_verify: download actions.json artifact from action tasks If an action task's parent is another action task, we'll need to check it against that parent task's actions.json. Fixes #580 --- src/scriptworker/cot/verify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scriptworker/cot/verify.py b/src/scriptworker/cot/verify.py index 67db1b7d..5936360e 100644 --- a/src/scriptworker/cot/verify.py +++ b/src/scriptworker/cot/verify.py @@ -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: