Skip to content

feat(yaml): adds a hera version of the example.yaml template from workflows#13

Merged
Matt-Carre merged 2 commits into
mainfrom
example-template
Jul 16, 2026
Merged

feat(yaml): adds a hera version of the example.yaml template from workflows#13
Matt-Carre merged 2 commits into
mainfrom
example-template

Conversation

@Matt-Carre

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b0bb15c) to head (db733b6).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #13   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           22        22           
=========================================
  Hits            22        22           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Matt-Carre
Matt-Carre requested a review from davehadley July 16, 2026 10:30
kind: Workflow
metadata:
generateName: hera-example-
namespace: ks10000-3

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: best to avoid surfacing ks10000 developer test namespaces in user facing documentation if possible

valueFrom:
path: /tmp/parameters.json
script:
image: python:3.10

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: python:3.10 is almost end of life. user facing examples should have more up to date version if possible

- name: install-dependencies
script:
image: python:3.10
source: |-

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment for the future, not for this PR: I know that you are doing this because you are re-implementing the example template that does this. I think that if this repo is going to model best user practices for Analysis Platform using pythonistas, we want to encourage building dependencies into the container itself. Installing dependencies in workflow steps is bad practice.

from hera.workflows.archive import NoneArchiveStrategy

global_config.host = "https://argo-workflows.staging.workflows.diamond.ac.uk/"
global_config.token = ""

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is supposed to be the Bearer token to let hera submit to Argo Workflows server? how is a user intended to use this?

from hera.workflows import models as m
from hera.workflows.archive import NoneArchiveStrategy

global_config.host = "https://argo-workflows.staging.workflows.diamond.ac.uk/"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment for future direction: This submits directly via the Argo Workflows server.
It would be better if we have a model where users submit via the graph.

@@ -0,0 +1,215 @@
apiVersion: argoproj.io/v1alpha1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that a generated Workflow yaml (i.e. not a ClusterWorkflowTemplate) is committed to the repo?

@Matt-Carre
Matt-Carre merged commit 4223a5e into main Jul 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants