-
Notifications
You must be signed in to change notification settings - Fork 310
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
Attempt to use more specific transformer when executing remote entities #3111
Conversation
Signed-off-by: Yee Hing Tong <[email protected]>
Code Review Agent Run Status
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3111 +/- ##
==========================================
- Coverage 80.01% 76.11% -3.90%
==========================================
Files 318 204 -114
Lines 27075 21636 -5439
Branches 2779 2792 +13
==========================================
- Hits 21663 16469 -5194
+ Misses 4647 4344 -303
- Partials 765 823 +58 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yee Hing Tong <[email protected]>
Code Review Agent Run #e0c471Actionable Suggestions - 1
Review Details
|
Changelist by BitoThis pull request implements the following key changes.
|
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Code Review Agent Run #2f3b74Actionable Suggestions - 2
Review Details
|
Signed-off-by: Yee Hing Tong <[email protected]>
Code Review Agent Run #e0383aActionable Suggestions - 1
Review Details
|
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.
one tiny comment, otherwise LGTM. Thank you!
Signed-off-by: Yee Hing Tong <[email protected]>
Code Review Agent Run #b17d18Actionable Suggestions - 0Review Details
|
Signed-off-by: Yee Hing Tong <[email protected]>
Code Review Agent Run #67094dActionable Suggestions - 2
Additional Suggestions - 1
Review Details
|
Tracking issue
flyteorg/flyte#6156
Why are the changes needed?
Please see issue. When FlyteRemote tries to execute a fetched task, it doesn't have any Python types, it only has the Flyte types. This PR attempts to try to use the
type()
of the python value first, before resorting to guessing. The python type is valid, if the Flyte type inferred by the transformer associated with that python type, matches the literal type of the flyte entity.What changes were proposed in this pull request?
Add a better guess.
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
Summary by Bito
This PR enhances Flytekit's remote entity execution through type engine optimization and strict type checking. The implementation introduces type_match_checking.py and type_engine.py modules, consolidating type operations with improved error handling. Key changes include renaming 'better_guess_type_hint' to 'strict_type_hint_matching', adding detailed error logging, and implementing a fallback mechanism for type guessing. These modifications support various types (enums, unions, collections) while ensuring more precise type validation.Unit tests added: True
Estimated effort to review (1-5, lower is better): 2