-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(sdk): enable dynamic importer metadata #7660
feat(sdk): enable dynamic importer metadata #7660
Conversation
Skipping CI for Draft Pull Request. |
/test all |
/hold The backend does not yet support the |
a41998f
to
a7e839d
Compare
5bcf947
to
87bddc0
Compare
/test-all |
87bddc0
to
d29e2cf
Compare
/test-all |
/test all |
d29e2cf
to
851a50d
Compare
851a50d
to
75cc74d
Compare
/unhold |
elif isinstance(d, list): | ||
return [traverse_dict_and_create_metadata_inputs(el) for el in d] | ||
else: | ||
return d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker for this PR, as I still don't quite follow the practical usage of an importer node when pipeline accepts artifact inputs. But I think there's a bug here in case isinstance(d, str)
, users may embed a PipelineChannel
into a string, e.g.: f'{task1.output}-{name}'
. and I think we are missing that parse-and-find logic here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker for this PR, as I still don't quite follow the practical usage of an importer node when pipeline accepts artifact inputs.
Agreed -- let's discuss offline about where we can raise this consideration.
I think we are missing that parse-and-find logic here
Updated
69c265e
to
6cd08e8
Compare
/retest |
@connor-mccarthy: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
Thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chensun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* support placeholder in metadata dict * add unit tests * add compilation test * fix tests * update compiler test * use 'metadata' as input key * update compiler test and golden snapshot * add int input to compiler test * change constant name * use util function * support f-strings in dynamic import metadata; add and update tests * update method name after rebase * make compile consistent across python versions
Description of your changes:
Enables dynamic metadata (passed from pipeline parameter and other inputs) for importer.
Checklist:
the pull request title convention used in this repository.