You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using with_param with a function using Pydantic IO, an extra argument is added with a name matching the incidental argument name used by the script-decorated function, not the parameters from the Pydantic Input type.
- arguments:
parameters:
- name: value # This is actually "input"value: '{{item}}'
Environment
Hera Version: 5.17.1
Python Version: 3.11.8
Argo Version: N/A
Additional context
This is the same root cause as #861, i.e. the code in _get_params_items_from_source, but can't be worked around by avoiding using alternative names.
Add examples reproducing issues argoproj-labs#861 (using with_param with an annotated
input) and argoproj-labs#1234 (using with_param with a Pydantic Input type).
Signed-off-by: Alice Purcell <[email protected]>
Pre-bug-report checklist
1. This bug can be reproduced using pure Argo YAML
If yes, it is more likely to be an Argo bug unrelated to Hera. Please double check before submitting an issue to Hera.
2. I have searched for existing issues
3. This bug occurs in Hera when...
Bug report
Describe the bug
When using
with_param
with a function using Pydantic IO, an extra argument is added with a name matching the incidental argument name used by the script-decorated function, not the parameters from the Pydantic Input type.To Reproduce
Full Hera code to reproduce the bug:
Expected behavior
Environment
Additional context
This is the same root cause as #861, i.e. the code in
_get_params_items_from_source
, but can't be worked around by avoiding using alternative names.hera/src/hera/workflows/_meta_mixins.py
Lines 266 to 288 in a08f744
The text was updated successfully, but these errors were encountered: