From 2b7d53bab31984227425ac96bdd18f17a01bfc98 Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Date: Fri, 29 Mar 2024 09:46:31 -0700 Subject: [PATCH] Skip tests that do not have configured examples (#96) Signed-off-by: Eduardo Apolinario Co-authored-by: Eduardo Apolinario --- boilerplate/flyte/end2end/run-tests.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/boilerplate/flyte/end2end/run-tests.py b/boilerplate/flyte/end2end/run-tests.py index 905f290..f655824 100644 --- a/boilerplate/flyte/end2end/run-tests.py +++ b/boilerplate/flyte/end2end/run-tests.py @@ -75,9 +75,11 @@ def schedule_workflow_groups( workflow_group_item = list( filter(lambda item: item["name"] == wf_group, parsed_manifest) ) - workflows = [] - if workflow_group_item: - workflows = workflow_group_item[0]["examples"] + if not workflow_group_item: + continue + workflows = workflow_group_item[0].get("examples") + if not workflows: + continue executions_by_wfgroup[wf_group] = [ execute_workflow(remote, tag, workflow[0], workflow[1], cluster_pool_name) for workflow in workflows