cuddly-jelly-27016
02/13/2025, 10:41 PMimport my_module, print(my_module.var)
• Imports where function or class itself is imported. e.g from my_module import var
• If user defined class is used, we recursively hash all the methods.
• If an external library is used (as determined by site-packages), we stop the recursive search and don't hash that external functions contents
How was this patch tested?
Since get_version is already tested in #2912, we just ensure that the correct callables are extracted for hashing. We set up a mock package and make sure all of the above conditions are satisfied.
Will eventually separate tests out so failures can be more easily diagnosed.
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
flyteorg/flytekitcuddly-jelly-27016
02/13/2025, 10:41 PM