cuddly-jelly-27016
02/21/2025, 2:15 PMinput_kwargs (which contains the default value) if the value is set in args, to prevent passing kwargs and args both for same argument, which cause the error described in the issue.
What changes were proposed in this pull request?
How was this patch tested?
Add test test_positional_args_workflow_with_default_value extend from test_positional_args_task for positional arguments with default value set
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
Docs link
Summary by Bito
This PR addresses subworkflow argument handling by preventing simultaneous use of positional arguments and default values. The workflow execution logic has been modified to properly handle input_kwargs when positional arguments are provided. Test coverage has been enhanced to validate subworkflow behavior, including test cases for mixed positional and default arguments scenarios, extra arguments handling, and keyword arguments validation.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 2
flyteorg/flytekitcuddly-jelly-27016
02/22/2025, 6:23 AM