Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add V4 examples and make on_exit handlers take Templates not just str #650

Merged
merged 18 commits into from
May 28, 2023

Conversation

flaviuvadan
Copy link
Collaborator

Pull Request Checklist

Description of PR

Currently, the Hera v4 examples are mostly missing. This PR adds numerous examples from V4 and also fixes a few tiny bugs that were identified:

  • add support for templates to the on_exit field of workflows

flaviuvadan and others added 14 commits April 30, 2023 21:23
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
# Conflicts:
#	src/hera/workflows/_mixins.py
* Fixes comparison with map-reduce across versions in CI

Signed-off-by: Elliot Gunton <egunton@bloomberg.net>
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
@flaviuvadan flaviuvadan added type:enhancement A general enhancement semver:minor A change requiring a minor version bump labels May 28, 2023
@codecov
Copy link

codecov bot commented May 28, 2023

Codecov Report

Merging #650 (d4785f9) into main (9a91185) will increase coverage by 1.4%.
The diff coverage is 78.5%.

@@           Coverage Diff           @@
##            main    #650     +/-   ##
=======================================
+ Coverage   73.0%   74.4%   +1.4%     
=======================================
  Files         43      43             
  Lines       3029    3053     +24     
  Branches     580     585      +5     
=======================================
+ Hits        2212    2274     +62     
+ Misses       657     615     -42     
- Partials     160     164      +4     
Impacted Files Coverage Δ
src/hera/workflows/steps.py 79.1% <ø> (ø)
src/hera/workflows/task.py 80.1% <ø> (+6.9%) ⬆️
src/hera/workflows/workflow_template.py 46.3% <ø> (ø)
src/hera/workflows/workflow.py 74.5% <62.5%> (-1.1%) ⬇️
src/hera/workflows/_mixins.py 75.1% <100.0%> (+1.9%) ⬆️
src/hera/workflows/_unparse.py 52.4% <100.0%> (+4.1%) ⬆️
src/hera/workflows/volume.py 67.9% <100.0%> (+0.1%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
<!-- Thank you for submitting a PR to Hera! 🚀 -->

**Pull Request Checklist**
- [ ] Fixes #<!--issue number goes here-->
- [ ] Tests added
- [x] Documentation/examples added
- [ ] [Good commit messages](https://cbea.ms/git-commit/) and/or PR
title
<!-- Also remember to sign off commits or the DCO check will fail on
your PR! -->

**Description of PR**
<!-- If not linked to an issue, please describe your changes here -->

Hera does not have all the upstream examples. This PR adds more

<!-- Piece of cake! ✨🍰✨ -->

---------

Signed-off-by: Flaviu Vadan <flaviuvadan@gmail.com>
Co-authored-by: Sambhav Kothari <skothari44@bloomberg.net>
@sambhav sambhav enabled auto-merge (squash) May 28, 2023 18:45
@sambhav sambhav merged commit d0f117f into main May 28, 2023
@sambhav sambhav deleted the fv/more-v4-examples branch May 28, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add missing metrics and sidecar example to hera 5
3 participants