-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make LakeFS distribution of USD Libs and AYON USD Resolver optional #72
Make LakeFS distribution of USD Libs and AYON USD Resolver optional #72
Conversation
+ Remove the experimental checkbox, which is now the "enable" button on the LakeFS distribution section. + Cleanup setting titles/docstrings
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.
its capable of downloading and installing a resolver and the usd libs.
tested on hou20.5 almalinux9
idk where it comes from.
but the lakeFs keys are in the addon ? i believe they should not ?
aaaaand the addon points at the Houdini branch of lakeFs not the v0.2.0
That's likely because you had previously configured this "version" of the addon and there hasn't been a version bump since.. so your server still applies those same settings. I have not changed any of the defaults or settings values. |
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.
I would remove any mention of lakeFS from the UI and the keys completely. The distribution mechanism is irrelevant for the admin and users. We're configuring whether they will get AYON USD binaries or not, that's it.
Changing the keys would mean backwards incompatibility with settings. Which is fine of course - but just checking if you're ok with that? @mkolar |
@mkolar Here's a backwards compatible change: The server URI and repository URI are very related to LakeFs - would you like me to remove Also, the only backwards incompatible change I'd need to make then is to change the settings key |
While not trying to wreak havoc on the settings, wouldn't be better to have:
That way you communicate that LakeFS is just one of the possible distribution methods (we might then add more or remove some), would be good to have LakeFS and URL mutually exclusive to simplify things. |
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Wait, what? That is currently for URL based distributions? I'm at loss maybe at what those settings do. Should we maybe do a call tomorrow to discuss? |
i just want to say i cant help but feel like we are about to over complicate this thing again. the PR is doing a few more things that its title says already maybe we should write an Issue for the Rest of the changes. |
@BigRoy
|
I agree - this PR is currently a much needed improvement and backwards compatible. I'd be happy to merge this and follow up with another that restructures it to be backwards incompatible (e.g. refactoring the And same goes for the file pinning - I feel like it's not critical since it can be called just fine without the resolver in use (as far as I know?) |
jap the pinning file env variable is not used elsewhere, it would just not be used. |
i must say i would avoid this for now. the auth tool that connects with Ayon Cloud is not done and it might be more important to make it easy to use now than to have every feature in. the PR is named make it optional after all. |
…ttings backwards incompatible)
…s://github.com/ynput/ayon-usd into enhancement/binary_distribution_behind_toggles # Conflicts: # client/ayon_usd/addon.py # client/ayon_usd/hooks/pre_resolver_init.py
The keys are changed and the labels too. And it still works for me. |
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.
generally works.
test Almalinux 9 houdini20.5
but this function still is not cached even tho it behaves like it is.
this was marked before, i think we should remove the cache or make it cached.
ayon-usd/client/ayon_usd/config.py
Line 11 in e3158a6
def get_global_lake_instance(settings=None): |
Thanks @Lypsolon - I agree we should fix that. I'd like to do that in a follow up PR if you're ok. I'm worried that caching it may suddenly introduce other issues like maybe the lakectl instance facing timeouts from it lingering around long enough or whatever. If you could approve this, then I'll merge and set up a follow up PR. |
sounds good i already approved it so lets merge it. |
Stale review - if new comments come up we can resolve them later in a follow up PR
Changelog Description
Make LakeFS distribution of USD Libs and AYON USD Resolver optional.
Additional info
Fixes #71
TODO
Testing notes:
Deploy new USD addon package
Launcher and applications should run fine without USD libs and resolver.
Then, Enable the LakeFS distribution in settings:
ayon+settings://usd/lakefs/enabled
When enabled, it should behave like before and check for latest USD libs and resolvers + download and configure them accordingly for usage in the applications.