Skip to content

test: add Hermes workflow integration tests refs #958#969

Merged
lior-antonov merged 3 commits into
masterfrom
issue958
Jul 21, 2026
Merged

test: add Hermes workflow integration tests refs #958#969
lior-antonov merged 3 commits into
masterfrom
issue958

Conversation

@ilayfalach

Copy link
Copy Markdown
Collaborator

Summary

  • Added hera/tests/test_hermes_workflow.py with 4 @pytest.mark.integration tests covering single-node, linear chain, branching, and error-propagation Hermes workflows
  • Tests run Luigi workflows via python -m luigi --local-scheduler, skipped automatically when Hermes is not installed

Test plan

  • With Hermes on PYTHONPATH: pytest hera/tests/test_hermes_workflow.py -v — 4 passed
  • Without Hermes: all 4 tests skip cleanly

Closes #958

🤖 Generated with Claude Code

Ilay Falach and others added 2 commits June 30, 2026 11:29
Adds TestSimpleHermesWorkflow with 4 tests verifying a single-node
RunPythonCode workflow builds and runs to completion via the local Luigi
scheduler (no dispatch_id required). Tests are auto-skipped when hermes
or luigi are not importable.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Mark TestSimpleHermesWorkflow with @pytest.mark.integration — it runs
actual Luigi workflows in subprocesses and requires hermes + luigi.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ilayfalach ilayfalach mentioned this pull request Jun 30, 2026
… check

Addresses review feedback (#958): Luigi can exit 0 even when a task
fails, so the return-code check alone isn't sufficient. Folds the
stderr-summary assertion into test_single_node_workflow_completes and
removes test_luigi_reports_success, which duplicated the same run.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ilayfalach

Copy link
Copy Markdown
Collaborator Author

Pushed 8bde6d1 addressing both comments:

  • Folded the stderr "this progress looks :)" check into test_single_node_workflow_completes (rc==0 alone can pass even when Luigi fails a task).
  • Removed test_luigi_reports_success since it was now a duplicate of the same run.

@lior-antonov
lior-antonov merged commit 08bc6b9 into master Jul 21, 2026
1 check passed
@lior-antonov
lior-antonov deleted the issue958 branch July 21, 2026 06:26
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.

hermes tests

2 participants